curl --request POST \
--url https://api.rootfi.dev/v3/ecommerce/customers \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 1089,
"data": [
{
"name": "John Doe",
"email": "",
"phone": "1234567890",
"currency_id": "1234567890",
"status": "ACTIVE",
"updated_at": "2024-01-22T05:07:31.465Z",
"created_at": "2024-01-22T05:07:31.465Z",
"address": {
"rootfi_id": 278264,
"platform_id": "CONTACTS_1af68894-ea9f-ee11-be36-7c1e520f50bc_ADDRESS",
"street": "123 Main Street",
"locality": "Main Street",
"city": "New York",
"state": "New York",
"pincode": "123456",
"country": "USA"
}
}
]
}
'{
"data": [
{
"rootfi_id": 157,
"rootfi_deleted_at": null,
"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_1",
"platform_unique_id": "123456",
"name": "John Doe",
"email": "",
"phone": "1234567890",
"currency_id": "1234567890",
"status": "ACTIVE",
"updated_at": "2024-01-22T05:07:31.465Z",
"created_at": "2024-01-22T05:07:31.465Z",
"address": {
"rootfi_id": 278264,
"platform_id": "CONTACTS_1af68894-ea9f-ee11-be36-7c1e520f50bc_ADDRESS",
"street": "123 Main Street",
"locality": "Main Street",
"city": "New York",
"state": "New York",
"pincode": "123456",
"country": "USA"
}
}
],
"sync_id": "1234567890"
}Create a customer.
curl --request POST \
--url https://api.rootfi.dev/v3/ecommerce/customers \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 1089,
"data": [
{
"name": "John Doe",
"email": "",
"phone": "1234567890",
"currency_id": "1234567890",
"status": "ACTIVE",
"updated_at": "2024-01-22T05:07:31.465Z",
"created_at": "2024-01-22T05:07:31.465Z",
"address": {
"rootfi_id": 278264,
"platform_id": "CONTACTS_1af68894-ea9f-ee11-be36-7c1e520f50bc_ADDRESS",
"street": "123 Main Street",
"locality": "Main Street",
"city": "New York",
"state": "New York",
"pincode": "123456",
"country": "USA"
}
}
]
}
'{
"data": [
{
"rootfi_id": 157,
"rootfi_deleted_at": null,
"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_1",
"platform_unique_id": "123456",
"name": "John Doe",
"email": "",
"phone": "1234567890",
"currency_id": "1234567890",
"status": "ACTIVE",
"updated_at": "2024-01-22T05:07:31.465Z",
"created_at": "2024-01-22T05:07:31.465Z",
"address": {
"rootfi_id": 278264,
"platform_id": "CONTACTS_1af68894-ea9f-ee11-be36-7c1e520f50bc_ADDRESS",
"street": "123 Main Street",
"locality": "Main Street",
"city": "New York",
"state": "New York",
"pincode": "123456",
"country": "USA"
}
}
],
"sync_id": "1234567890"
}The ID of the company in the accounting platform
The data of the customer endpoint
Show child attributes
The name of the customer
The email of the customer
The phone of the customer
The currency of the customer
The status of the customer
ACTIVE, ARCHIVED, UNKNOWN The updated_at of the customer
The created_at of the customer
The address of the customer
Show child attributes
The RootFi ID of the customer
The platform ID of the customer
The street of the address
The locality of the address
The city of the address
The state of the address
The pincode of the address
The country of the address
Run the request asynchronously
The data of the customer endpoint
Show child attributes
The unique ID we assign for that data's information
157
The date at which RootFi first synced this data
"2024-01-22T05:07:31.465Z"
The latest date at which RootFi updated this data
"2024-01-22T05:07:31.000Z"
The ID of the company in the accounting platform
1089
An unique custom RootFi ID made from platform's unique_id.
"123456"
The date at which the data was deleted in the accounting platform
The ID of the data in the accounting platform.
A JSON containing fields that you can directly get from the accounting platform.
The hash of the data
The name of the customer
The email of the customer
The phone of the customer
The currency of the customer
The status of the customer
ACTIVE, ARCHIVED, UNKNOWN The updated_at of the customer
The created_at of the customer
The address of the customer
Show child attributes
The RootFi ID of the customer
The platform ID of the customer
The street of the address
The locality of the address
The city of the address
The state of the address
The pincode of the address
The country of the address
The sync id of the request