Checkout
1 route. Paths are relative to https://api.intersink.com/v1.
Process checkout and create order
POST/checkout
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| Idempotency-Key | string, header | Optional client-generated key (8-128 chars, [A-Za-z0-9_-]). A retry with the same key and body replays the first response (Idempotent-Replayed: true); 409 while the first is in flight; 422 if the body differs. |
Request body application/json
| Field | Type | Description |
|---|---|---|
| itemsrequired | object[] | |
| items[].product_idrequired | string | product.id (uuid) |
| items[].quantityrequired | number | Minimum 1, maximum 100. |
| firstname | string | At most 100 characters. |
| lastname | string | At most 100 characters. |
| string | At most 255 characters. | |
| mobile | string | At most 30 characters. |
| payment_method | string | At most 50 characters. |
Response
201. The payload in data is of type object.