Create a build-to-order cart
Changed onCreates a checkout cart for the account bound to the token and returns it with a checkout_url the buyer can be sent to. The account that owns the cart is resolved server-side from the token, so the request carries no owner identifiers. Buyer prefill is optional. Name the vehicle with manufacturer_id, model_id, variant_id, and style_id, the same four that address a vehicle on the catalog endpoint. A cart holds one vehicle. Pass accessories for anything sold with it, and is_preorder to create the cart as an ante-preorder. To sell a specific dealer unit that already exists, use POST /carts/inventory.
Request
- Base URL: https://api.ekho.com
- URL: https://api.ekho.com/carts/build-to-order
- Auth: HTTP bearer
Request body
Example request
{
"manufacturer_id": "oem_apex",
"model_id": "trail-350-2026",
"variant_id": "trail-350-2026-base",
"style_id": "fireball-red",
"promo_codes": [
"SPRING500"
]
}Response
A validate_only request passed. No cart was created.
Example response
{
"data": {
"dropped_accessories": [
{
"id": "acc_rear_rack_black"
}
]
}
}Changes
- info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- info
- info
added the new optional request property
- info