ถามผลการชำระเงินล่าสุดของคำสั่งซื้อ

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

ใช้ API key

ตรวจผลการชำระเงินทันที แทนการรอผลที่จะแจ้งมาเอง ถ้าชำระแล้วเครดิตเข้าบัญชีตอนนั้น ถ้าปิดหน้าชำระเงินแล้วแต่เงินยังไม่เข้า คำสั่งซื้อจะอยู่ในสถานะกำลังยืนยันการชำระเงิน ถามซ้ำในไม่กี่วินาทีได้ผลเดิม ใช้ API key ที่มีสิทธิ์ billing:read

Parameters

ฟิลด์ส่งทางชนิดจำเป็น
order_idpathstring (uuid)ใช่

Responses

200 application/json

ฟิลด์ชนิดจำเป็น
idstring (uuid)ใช่
statusPENDING | PAID | CANCELLED | FLAGGEDใช่
package_codestringใช่
package_name_thstringใช่
creditsintegerใช่
amountMoneyใช่
amount.satangintegerใช่
amount.currencystring = THBใช่
payment_methodCARD | PROMPTPAY | nullไม่
receipt_idstring (uuid) | nullไม่
created_atstring (date-time)ใช่
paid_atstring (date-time) | nullไม่
cancelled_atstring (date-time) | nullไม่
confirmingbooleanไม่
review_reasonstring | nullไม่

Error ที่อาจได้

401403404500503

error ในรูป Problem Details ดูรหัสทั้งหมดที่ รหัสข้อผิดพลาด