curl --request PUT \
--url https://api.rootfi.dev/v4/ecommerce/orders/{id} \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"data": [
{
"customer_id": "<string>",
"currency_id": "<string>",
"order_number": "<string>",
"status": "pending",
"payment_status": "pending",
"fulfillment_status": "unfulfilled",
"total_amount": 123,
"total_discount": 123,
"total_tax": 123,
"shipping_amount": 123,
"created_at": "<string>",
"updated_at": "<string>",
"line_items": [
{
"rootfi_id": 123,
"item_id": "<string>",
"variant_id": "<string>",
"name": "<string>",
"description": "<string>",
"quantity": 123,
"unit_amount": 123,
"tax_amount": 123,
"discount_amount": 123,
"total_amount": 123
}
],
"addresses": [
{
"rootfi_id": 123,
"platform_id": "<string>",
"type": "billing",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"fulfillments": [
{
"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>",
"order_id": "<string>",
"name": "<string>",
"status": "pending",
"shipment_status": "label_printed",
"estimated_delivery_date": "<string>",
"actual_delivery_date": "<string>",
"weight": 123,
"weight_unit": "<string>",
"addresses": [
{
"rootfi_id": 123,
"platform_id": "<string>",
"type": "billing",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"line_items": [
{
"rootfi_id": 123,
"line_item_id": "<string>",
"quantity": 123
}
],
"tracking_info": {
"number": "<string>",
"company": "<string>",
"url": "<string>",
"status": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
],
"transactions": [
{
"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>",
"type": "PAYMENT",
"order_id": "<string>",
"contact_id": "<string>",
"currency_id": "<string>",
"amount": 123,
"status": "DRAFT",
"payment_method_type": "CARD",
"gateway": "<string>",
"gateway_transaction_id": "<string>",
"original_transaction_id": "<string>",
"description": "<string>",
"reason": "CUSTOMER_REQUEST",
"created_at": "<string>",
"updated_at": "<string>"
}
]
}
]
}
'{
"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>",
"customer_id": "<string>",
"currency_id": "<string>",
"order_number": "<string>",
"status": "pending",
"payment_status": "pending",
"fulfillment_status": "unfulfilled",
"total_amount": 123,
"total_discount": 123,
"total_tax": 123,
"shipping_amount": 123,
"created_at": "<string>",
"updated_at": "<string>",
"line_items": [
{
"rootfi_id": 123,
"item_id": "<string>",
"variant_id": "<string>",
"name": "<string>",
"description": "<string>",
"quantity": 123,
"unit_amount": 123,
"tax_amount": 123,
"discount_amount": 123,
"total_amount": 123
}
],
"addresses": [
{
"rootfi_id": 123,
"platform_id": "<string>",
"type": "billing",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"fulfillments": [
{
"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>",
"order_id": "<string>",
"name": "<string>",
"status": "pending",
"shipment_status": "label_printed",
"estimated_delivery_date": "<string>",
"actual_delivery_date": "<string>",
"weight": 123,
"weight_unit": "<string>",
"addresses": [
{
"rootfi_id": 123,
"platform_id": "<string>",
"type": "billing",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"line_items": [
{
"rootfi_id": 123,
"line_item_id": "<string>",
"quantity": 123
}
],
"tracking_info": {
"number": "<string>",
"company": "<string>",
"url": "<string>",
"status": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
],
"transactions": [
{
"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>",
"type": "PAYMENT",
"order_id": "<string>",
"contact_id": "<string>",
"currency_id": "<string>",
"amount": 123,
"status": "DRAFT",
"payment_method_type": "CARD",
"gateway": "<string>",
"gateway_transaction_id": "<string>",
"original_transaction_id": "<string>",
"description": "<string>",
"reason": "CUSTOMER_REQUEST",
"created_at": "<string>",
"updated_at": "<string>"
}
]
}Update an existing order in the e-commerce platform.
curl --request PUT \
--url https://api.rootfi.dev/v4/ecommerce/orders/{id} \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"data": [
{
"customer_id": "<string>",
"currency_id": "<string>",
"order_number": "<string>",
"status": "pending",
"payment_status": "pending",
"fulfillment_status": "unfulfilled",
"total_amount": 123,
"total_discount": 123,
"total_tax": 123,
"shipping_amount": 123,
"created_at": "<string>",
"updated_at": "<string>",
"line_items": [
{
"rootfi_id": 123,
"item_id": "<string>",
"variant_id": "<string>",
"name": "<string>",
"description": "<string>",
"quantity": 123,
"unit_amount": 123,
"tax_amount": 123,
"discount_amount": 123,
"total_amount": 123
}
],
"addresses": [
{
"rootfi_id": 123,
"platform_id": "<string>",
"type": "billing",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"fulfillments": [
{
"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>",
"order_id": "<string>",
"name": "<string>",
"status": "pending",
"shipment_status": "label_printed",
"estimated_delivery_date": "<string>",
"actual_delivery_date": "<string>",
"weight": 123,
"weight_unit": "<string>",
"addresses": [
{
"rootfi_id": 123,
"platform_id": "<string>",
"type": "billing",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"line_items": [
{
"rootfi_id": 123,
"line_item_id": "<string>",
"quantity": 123
}
],
"tracking_info": {
"number": "<string>",
"company": "<string>",
"url": "<string>",
"status": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
],
"transactions": [
{
"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>",
"type": "PAYMENT",
"order_id": "<string>",
"contact_id": "<string>",
"currency_id": "<string>",
"amount": 123,
"status": "DRAFT",
"payment_method_type": "CARD",
"gateway": "<string>",
"gateway_transaction_id": "<string>",
"original_transaction_id": "<string>",
"description": "<string>",
"reason": "CUSTOMER_REQUEST",
"created_at": "<string>",
"updated_at": "<string>"
}
]
}
]
}
'{
"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>",
"customer_id": "<string>",
"currency_id": "<string>",
"order_number": "<string>",
"status": "pending",
"payment_status": "pending",
"fulfillment_status": "unfulfilled",
"total_amount": 123,
"total_discount": 123,
"total_tax": 123,
"shipping_amount": 123,
"created_at": "<string>",
"updated_at": "<string>",
"line_items": [
{
"rootfi_id": 123,
"item_id": "<string>",
"variant_id": "<string>",
"name": "<string>",
"description": "<string>",
"quantity": 123,
"unit_amount": 123,
"tax_amount": 123,
"discount_amount": 123,
"total_amount": 123
}
],
"addresses": [
{
"rootfi_id": 123,
"platform_id": "<string>",
"type": "billing",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"fulfillments": [
{
"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>",
"order_id": "<string>",
"name": "<string>",
"status": "pending",
"shipment_status": "label_printed",
"estimated_delivery_date": "<string>",
"actual_delivery_date": "<string>",
"weight": 123,
"weight_unit": "<string>",
"addresses": [
{
"rootfi_id": 123,
"platform_id": "<string>",
"type": "billing",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
],
"line_items": [
{
"rootfi_id": 123,
"line_item_id": "<string>",
"quantity": 123
}
],
"tracking_info": {
"number": "<string>",
"company": "<string>",
"url": "<string>",
"status": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
],
"transactions": [
{
"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>",
"type": "PAYMENT",
"order_id": "<string>",
"contact_id": "<string>",
"currency_id": "<string>",
"amount": 123,
"status": "DRAFT",
"payment_method_type": "CARD",
"gateway": "<string>",
"gateway_transaction_id": "<string>",
"original_transaction_id": "<string>",
"description": "<string>",
"reason": "CUSTOMER_REQUEST",
"created_at": "<string>",
"updated_at": "<string>"
}
]
}| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The rootfi_id or platform_id of the order to update |
| Field | Type | Required | Description |
|---|---|---|---|
| status | string | No | Order status (pending, processing, shipped, delivered, canceled) |
| payment_status | string | No | Payment state of the order |
| fulfillment_status | string | No | Shipping/delivery state of the order |
| line_items | array | No | Array of line item objects |
| shipping_address | object | No | Shipping address object |
| billing_address | object | No | Billing address object |
The rootfi_id or platform_id of the order
The data of the orders endpoint
Show child attributes
Order updated successfully
V4 Order object with embedded fulfillments and transactions
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
Reference to the Contact who placed this order
ISO 4217 currency code for all monetary amounts
Human-readable order number (e.g., "ORD-2024-001")
Overall status of the order
pending, processing, completed, canceled, on_hold, unknown Payment state of the order
pending, paid, partially_paid, refunded, partially_refunded, voided, unknown Shipping/delivery state of the order
unfulfilled, partially_fulfilled, fulfilled, returned, unknown Final total amount including tax and shipping
Total discount amount applied to this order
Total tax amount charged
Shipping and handling charges
Original creation timestamp from platform (ISO 8601)
Last update timestamp from platform (ISO 8601)
Individual items included in this order
Show child attributes
Shipping and billing addresses for this order
Show child attributes
Complete fulfillment records including tracking information
Show child attributes
All payment and refund transactions associated with this order
Show child attributes