/api/checkout/startOpens a checkout the moment a customer selects a product in WhatsApp. Creates or resumes the conversation and returns the bot's next reply.
Requires the x-checkout-api-key header.
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
| phoneNumberId | string | Yes | WhatsApp number that received the message; resolves the business. |
| customerPhone | string | Yes | Customer MSISDN in E.164 form. |
| productId | string | Yes | Catalog product the customer selected. |
| quantity | number | No | Must be 1 — this catalog is single-unit per checkout. |
| referralCode | string | No | Creator referral code, when the order came from a referral link. |
| creatorAttributionId | string | No | Explicit attribution override. |
Responses
200Checkout started; returns conversationId, nextStep and botReply.400Malformed JSON, missing required field, or quantity other than 1.401Missing or incorrect x-checkout-api-key.404No business owns that WhatsApp number, or the product does not exist.409Product is unavailable or out of stock.