Skip to content

Get payment status

GET
/api/payments/orders/{id}/status
curl --request GET \
--url https://api.petanqueai.com/api/payments/orders/example/status \
--header 'x-storefront-token: <x-storefront-token>'

The outcome of the order’s latest payment: PENDING, SUCCEEDED, FAILED, CANCELLED or a refund state. This is the only reliable proof that money moved; poll it from your result page until it is no longer PENDING. On success orderDocumentNo holds the order code (SA-…) to show the shopper. data is null if no payment has been started.

id
required
string
>= 1 characters