cURL
curl --request POST \ --url https://api.rootfi.dev/v3/ecommerce/products \ --header 'Content-Type: application/json' \ --header 'api_key: <api-key>' \ --data ' { "company_id": 123, "data": [ { "name": "John Doe", "description": "John Doe", "status": "ACTIVE", "created_at": "2024-01-22T05:07:31.465Z", "updated_at": "2024-01-22T05:07:31.000Z" } ] } '
{ "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", "description": "John Doe", "status": "ACTIVE", "created_at": "2024-01-22T05:07:31.465Z", "updated_at": "2024-01-22T05:07:31.000Z" } }
Create a product.
The ID of the company in the accounting platform
The data of the products endpoint
Show child attributes
The name of the product
The description of the product
The status of the product
ACTIVE
ARCHIVED
UNKNOWN
The date the product was created
The date the product was updated
Run the request asynchronously
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"
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 sync id of the request