Skip to main content

Create a Direct Purchase Order

POST /api/v1/orders Creates an order directly without going through the cart flow. This endpoint validates the items, processes payment from the specified wallet, and returns the created order.

Authentication

Requires a Bearer token in the Authorization header.

Idempotent Retries

If a request times out or your connection drops before you see the response, it’s safe to retry it as long as you send the same Idempotency-Key header both times. If an order was already created for that key, the retry returns that same order instead of creating a second one, so you won’t be charged twice.
Without this header, every request creates a new order, even if it’s an exact duplicate of one you just sent. That’s unchanged from before, so existing integrations aren’t affected if you don’t set it. We recommend adding it to any client that retries automatically.

Request Body

Example Request

Responses

201 — Order Created

422 — Validation / Business Rule Error

500 — Server Error