Commerce
Pay order
Start a payment for an order.
A Snippe payment link for the order's total, on the merchant's own connected account. A second call reuses the open link for 30 minutes. A test key is 403 forbidden.
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
method?"LINK"Value in
"LINK"curl -X POST 'https://v3.ghala.io/v1/commerce/shop/orders/497f6eca-6276-4993-bfeb-53cbbbba6f08/pay' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe", "method": "LINK", "status": "string", "pay_url": "string", "amount": "1500.00", "currency": "string"}Update order PATCH
Move an order on. Any move outside the allowed ones is `409 invalid_transition`.
Redeliver order POST
Send a paid order's digital files again. Each digital line's file or link, to the order's phone on WhatsApp, as the approved `order_file` template from the shop's number. The caller also needs `messages:send` for the send. The same `Idempotency-Key` sends nothing again; 5 a minute per order.