Prava sandbox is live! Join here
cURL
curl --request POST \ --url https://sandbox-api.prava.space/v1/customers/{customer_id}/carts/{cart_id}/order/wallet/{wallet_id} \ --header 'Api-Key: <api-key>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: <idempotency-key>' \ --data ' { "address": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } '
{ "data": { "order_id": "o1r2d3e4-r5d6-e7r8-9012-3456789abcde", "cart_id": "c1b2a3d4-e5f6-7890-1234-567890abcdef", "customer_id": "d290f1ee-6c54-4b01-90e6-d701748f0851", "wallet_id": "f0e1d2c3-b4a5-6789-0123-456789abcdef", "status": "processing", "amount": "10.00", "currency": "USD", "address_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "created_at": "2025-10-15T05:40:12.000Z", "updated_at": "2025-10-15T05:40:12.000Z" }, "meta": { "request_id": "req_12345", "timestamp": "2025-10-15T05:40:12.000Z", "idempotency_key": "ee461e0f-1808-4018-9ee1-2744a8e822f7" } }
Creates an order from a specific cart using a customer’s wallet.
A unique key for the request to ensure idempotency.
Order created successfully.