cURL
curl --request POST \ --url https://api.papp.sa/api/v1/orders/{orderUuid}/capture \ --header 'x-api-key: <api-key>'
{ "status": true, "message": "", "appended_data": {}, "data": { "id": 42, "uuid": "550e8400-e29b-41d4-a716-446655440000", "reference_number": "REF-2024-001234", "order_status": "approved", "order_number": "ORD-2024-001234", "type": 1, "total_price": 150.5, "total_points": 1505, "metadata": { "source": "mobile_app" }, "date": "2024-12-23T00:00:00.000Z", "time": "10:00:00", "since": "2 hours ago", "created_at": "2024-12-23T10:00:00.000Z", "items": [ { "product_name": "Cappuccino", "product_price": 18.5, "quantity": 2 } ] } }
Updates the order status to captured, if allowed.
captured
Order UUID.
Order captured successfully.
true
""
{}
Show child attributes