Refresh an order's payment result

POSThttps://api.checkslip.com/api/billing/orders/{order_id}/sync

API key

Checks the payment result now instead of waiting for it to arrive. If it is paid, the credits arrive then; if the payment page is closed but the money has not arrived, the order shows as confirming. Asking again within a few seconds returns the same result. Needs an API key with billing:read.

Parameters

FieldInTypeRequired
order_idpathstring (uuid)yes

Responses

200 application/json

FieldTypeRequired
idstring (uuid)yes
statusPENDING | PAID | CANCELLED | FLAGGEDyes
package_codestringyes
package_name_thstringyes
creditsintegeryes
amountMoneyyes
amount.satangintegeryes
amount.currencystring = THByes
payment_methodCARD | PROMPTPAY | nullno
receipt_idstring (uuid) | nullno
created_atstring (date-time)yes
paid_atstring (date-time) | nullno
cancelled_atstring (date-time) | nullno
confirmingbooleanno
review_reasonstring | nullno

Possible errors

401403404500503

An error as Problem Details. All codes are listed at Error codes