General
Server Side SDKs
Core API
- Companies
- Invite Links
- Sync
- Passthrough
- Real Time
- Webhooks
Unified API
- Accounting
- Payments
- Ecommerce
- Customers
- Orders
- Products
- Balances
- Company Info
- Fulfillments
- Inventories
- Transactions
- CRM
Customers
Create Customer
Create a customer.
POST
/
ecommerce
/
customers
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 Customers Data Model is designed to streamline the management and retrieval of customer-related information across various accounting platforms.
Authorizations
Body
application/json
Response
200
application/json
The response is of type object
.
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"
}
Assistant
Responses are generated using AI and may contain mistakes.