Create a cart
POST /carts
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
User id of the purchaser (company employee)
Line items to add to the cart
object
Catalog product id (products.id; product under a product group)
Example
101ISO 3166-1 alpha-2 delivery country code (e.g. FR). Filters catalog by available_countries; cart line items must use a country allowed for the catalog product.
Example
FRRequired when the catalog product uses a keyboard layout for pricing; omit when the product does not offer keyboard options.
Example
FRENCH_AZERTYOptional company employee to assign the device to; must be a user in the same company as the API token.
Example
12Optional delivery address id from the company’s saved addresses. When omitted, the cart or company default shipping address is used.
Example
56LEASING vs one-time purchase (BUY). For catalog pricing, LEASING selects monthly lease; BUY selects purchase price.
Example
LEASINGResponses
Section titled “ Responses ”Cart created
object
object
Validation or business rule error
Forbidden
object
Resource not found
object
Cart already exists
object
Internal error