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.

Path Parameters

order*string
Formatuuid

Header Parameters

X-Request-Id?string

Your id for this request; it becomes the request_id of any error. Without it the server makes one.

Request Body

application/json
  1. 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"}