Accepts a quote creating a new order.
If a customer key is given, the customer become the customer of the quote.
HTTP POST/api/v13/storefront.accept-quote
{
"id" : 1167942543, // identifier (required) - int(1…)
"token" : "G7s6bdP…3xUa9Lbf" // token - string(32)
}
{
"status" : "ok",
"orderID" : 1771949227 // identifier of the order - int(1…)
"orderToken" : "vD3m7ZdyE1…id4RhzDiO8n" // token of the order - string(32)
}
| Field | Type | Description |
|---|---|---|
| billingAddress | InvalidValue | Cart '<cart>' has no billing address |
| cart | Malformed | '<cart>' is not a cart token |
| cart | NotFound | Cart '<cart>' does not exist |
| isQuote | InvalidValue | Cart '<cart>' can not be quoted but ordered |
| items | InvalidValue | Cart '<cart>' is empty |
| paymentMethod | InvalidValue | Cart '<cart>' has no payment method |
| shippingMethod | InvalidValue | Cart '<cart>' has no shipping method |