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
| Field | In | Type | Required |
|---|---|---|---|
order_id | path | string (uuid) | yes |
Responses
200 application/json
| Field | Type | Required |
|---|---|---|
id | string (uuid) | yes |
status | PENDING | PAID | CANCELLED | FLAGGED | yes |
package_code | string | yes |
package_name_th | string | yes |
credits | integer | yes |
amount | Money | yes |
amount.satang | integer | yes |
amount.currency | string = THB | yes |
payment_method | CARD | PROMPTPAY | null | no |
receipt_id | string (uuid) | null | no |
created_at | string (date-time) | yes |
paid_at | string (date-time) | null | no |
cancelled_at | string (date-time) | null | no |
confirming | boolean | no |
review_reason | string | null | no |
Possible errors
401403404500503
An error as Problem Details. All codes are listed at Error codes