Place Order from Cart
API operation: Open the endpoint in Scalar
Use POST /carts/{cart_id}/place to place an order from a cart. The current public operation is Cart.place.
It uses the user's current order options, including order type, address, and requested moment; delivery-zone requirements vary by order type. Project security can also require a verification code.
See Update order options, Checkout fields, and Payment overview.
OpenAPI reference
Operation: POST /carts/{cart_id}/place
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
cart_id | string | Yes | — |
Header parameters
| Name | Type | Required | Description |
|---|---|---|---|
User-Agent | string | No | — |
X-Forwarded-For | string | No | — |
X-APP-X | string | No | — |
X-SOCKET-ID-X | string | No | — |
Request body fields
| Name | Type | Required |
|---|---|---|
amount | any | No |
delivery_zone_id | any | No |
meta_location | any | No |
on_behalf_of | any | No |
paymethod_data | any | No |
paymethod_id | integer | Yes |
recaptcha_type | string | No |
user_id | any | No |
verification_code | any | No |
Responses
| Code | Description |
|---|---|
| 200 | OK (Envelope) |
| 400 | Bad Request (ErrorResponse) |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests (ErrorResponse) |
| 500 | Internal Server Error (ErrorResponse) |
| 503 | Service Unavailable (ErrorResponse) |