Create a cart from inventory
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. The cart holds one dealer unit, named by inventory_id. The body takes no vehicle list, no accessory field, and no preorder flag, because a unit is a specific vehicle that already exists rather than a configuration to build. To sell a vehicle to be built instead, use POST /carts/build-to-order.
Request
- Base URL: https://api.ekho.com
- URL: https://api.ekho.com/carts/inventory
- Auth: HTTP bearer
Request body
Example request
{
"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