Orders
Push order
Pushes a normalized order from any e-commerce platform. Triggers the matching ecommerce.* event (order placed, cancelled, fulfilled, or refunded), updates the customer's revenue attributes (ltv, totalSpent, ordersCount, aov), cancels superseded commerce automations, and schedules replenishment reminders. Processing is asynchronous.
post/orders
Request body
Example request
{
"orderId": "order-1001",
"orderNumber": "1001",
"totalCents": 8850,
"currency": "USD",
"orderedAt": "2026-06-01T12:00:00.000Z",
"customer": {
"email": "buyer@example.com",
"externalId": "user_123",
"firstName": "Jane",
"lastName": "Doe",
"attributes": {
"acquisitionChannel": "tiktok",
"country": "US"
}
},
"items": [
{
"productId": "SKU-PROTEIN-1KG",
"variantId": "SKU-PROTEIN-1KG-VANILLA",
"sku": "VANILLA-1KG",
"title": "Protein Powder",
"variantTitle": "Vanilla",
"quantity": 1,
"priceCents": 8850
}
],
"customerTotals": {
"ordersCount": 5,
"totalSpentCents": 50000
}
}Response
Order queued for processing
Example response
{
"success": true,
"queued": true,
"orderId": "order-1001",
"status": "placed"
}