Commerce
Update order
Move an order on.
Any move outside the allowed ones is 409 invalid_transition.
order*stringFormat
uuidX-Request-Id?stringYour id for this request; it becomes the request_id of any error. Without it the server makes one.
application/json- body
status?OrderStatusValue in
"PENDING""CONFIRMED""FULFILLED""CANCELLED"payment_status?PaymentStatusValue in
"UNPAID""PENDING""PAID""REFUNDED"curl -X PATCH 'https://v3.ghala.io/v1/commerce/shop/orders/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "PENDING", "payment_status": "UNPAID", "currency": "string", "total": "1500.00", "customer_name": "string", "customer_phone": "string", "channel": "string", "notes": "string", "credential_id": "string", "contact_id": "f245e2a3-e141-4d41-912c-b1c1f5bd5598", "items": [ { "name": "string", "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1", "image": "string", "digital": true, "variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6", "variant_label": "string", "quantity": 0, "unit": "PIECE", "unit_price": "1500.00", "line_total": "1500.00" } ], "created_at": "2019-08-24T14:15:22Z", "paid_at": "2019-08-24T14:15:22Z", "receipts": [ { "provider": "ghala", "url": "http://example.com", "issued_at": "2019-08-24T14:15:22Z", "kind": "payment" } ]}