Orders
Track checkout started
Tracks a started checkout and triggers the ecommerce.checkout_started event, which can power abandoned checkout automations.
post/checkouts
Request body
Example request
{
"checkoutId": "checkout-abc123",
"totalCents": 8850,
"currency": "USD",
"checkoutUrl": "https://store.example.com/checkout/abc123",
"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
}
]
}Response
Checkout tracked successfully
Example response
{
"success": true,
"checkoutId": "checkout-abc123"
}