POST
/api/v1/storefront/projects/{project_slug}/checkoutCreate Checkout
| Name | Type | In | Description |
|---|---|---|---|
| project_slug | string | path | Required. |
| Idempotency-Key | string (nullable) | header | Optional. |
| x-cart-token | string (nullable) | header | Optional. |
| Field | Type | Description | |
|---|---|---|---|
| string<email> | required | — | |
| shipping_method_id | string (nullable) | optional | — |
| discount_code | string (nullable) | optional | — |
| shipping_address | ShippingAddress (nullable) | optional | — |
| billing_address | object (nullable) | optional | — |
| notes | string (nullable) | optional | — |
| payment_provider | PaymentProvider | optional | — |
| callback_url | string (nullable) | optional | — |
| client_total_minor | integer (nullable) | optional | — |
| Field | Type | Description | |
|---|---|---|---|
| checkout_id | string | required | — |
| order_id | string | required | — |
| payment_id | string | required | — |
| payment_reference | string | required | — |
| payment_provider | string | required | — |
| payment_status | string | required | — |
| authorization_url | string (nullable) | required | — |
| payment_instructions | string (nullable) | optional | — |
| currency | string | required | — |
| subtotal_minor | integer | required | — |
| discount_minor | integer | required | — |
| shipping_minor | integer | required | — |
| tax_minor | integer | required | — |
| total_minor | integer | required | — |
| lines | CheckoutLineRead[] | required | — |
curl -X POST "https://api.webtools.ng/api/v1/storefront/projects/your-project/checkout" \
-H "X-Project-Key: wt_pk_your_key" \
-H "Content-Type: application/json" \
-d '{ "email": "…" }'