Skip to main content
GET
/
ecommerce
/
customers
Get All Customers
curl --request GET \
  --url https://api.rootfi.dev/v3/ecommerce/customers \
  --header 'api_key: <api-key>'
{
  "data": [
    {
      "rootfi_id": 157,
      "rootfi_created_at": "2024-01-22T05:07:31.465Z",
      "rootfi_updated_at": "2024-01-22T05:07:31.000Z",
      "rootfi_company_id": 1089,
      "platform_id": "123456",
      "rootfi_deleted_at": "2023-11-07T05:31:56Z",
      "platform_unique_id": "<string>",
      "raw_data": {},
      "data_hash": "<string>",
      "name": "<string>",
      "email": "<string>",
      "phone": "<string>",
      "currency_id": "<string>",
      "status": "ACTIVE",
      "updated_at": "<string>",
      "created_at": "<string>",
      "address": {
        "rootfi_id": 123,
        "platform_id": "<string>",
        "street": "<string>",
        "locality": "<string>",
        "city": "<string>",
        "state": "<string>",
        "pincode": "<string>",
        "country": "<string>"
      }
    }
  ],
  "prev": "<string>",
  "next": "<string>",
  "total_count": 123
}
The Customers Data Model is designed to streamline the management and retrieval of account-related information across various ecommerce platforms.

Authorizations

api_key
string
header
required

Query Parameters

limit
integer | null

The number of customers you want to retrieve

next
string | null

The next page of objects to retrieve

prev
string | null

The previous page of objects to retrieve

select
string | null

Comma separated fields to select. Supported values are raw_data, data_hash

rootfi_updated_at[gte]
string | null

Filter by rootfi_updated_at Greater than or Equal To.

rootfi_company_id[eq]
integer | null

Filter by rootfi_company_id. You can filter by any field using this syntax field_name[operator]

include_deleted_records
string | null

Include deleted records. By default, deleted records are not included. Supported values are true and false

return_count
string | null

Return the count of the objects. Supported values are true and false

sort[rootfi_created_at]
enum<string> | null

Sort by rootfi_created_at

Available options:
ASC,
DESC
sort[rootfi_updated_at]
enum<string> | null

Sort by rootfi_updated_at

Available options:
ASC,
DESC

Response

The data of the customers endpoint.

data
ecommerceCustomerObject · object[]
required
prev
string | null

The previous page of objects to retrieve

next
string | null

The next page of objects to retrieve

total_count
integer | null

The total count of the objects