ถามผลการชำระเงินล่าสุดของคำสั่งซื้อ
POSThttps://api.checkslip.com/api/billing/orders/{order_id}/sync
ใช้ API key
ตรวจผลการชำระเงินทันที แทนการรอผลที่จะแจ้งมาเอง ถ้าชำระแล้วเครดิตเข้าบัญชีตอนนั้น ถ้าปิดหน้าชำระเงินแล้วแต่เงินยังไม่เข้า คำสั่งซื้อจะอยู่ในสถานะกำลังยืนยันการชำระเงิน ถามซ้ำในไม่กี่วินาทีได้ผลเดิม ใช้ API key ที่มีสิทธิ์ billing:read
Parameters#
| ฟิลด์ | ส่งทาง | ชนิด | จำเป็น |
|---|
order_id | path | string (uuid) | ใช่ |
|---|
Responses#
200 application/json#
| ฟิลด์ | ชนิด | จำเป็น |
|---|
id | string (uuid) | ใช่ |
|---|
status | PENDING | PAID | CANCELLED | FLAGGED | ใช่ |
|---|
package_code | string | ใช่ |
|---|
package_name_th | string | ใช่ |
|---|
credits | integer | ใช่ |
|---|
amount | Money | ใช่ |
|---|
amount.satang | integer | ใช่ |
|---|
amount.currency | string = THB | ใช่ |
|---|
payment_method | CARD | PROMPTPAY | null | ไม่ |
|---|
receipt_id | string (uuid) | null | ไม่ |
|---|
created_at | string (date-time) | ใช่ |
|---|
paid_at | string (date-time) | null | ไม่ |
|---|
cancelled_at | string (date-time) | null | ไม่ |
|---|
confirming | boolean | ไม่ |
|---|
review_reason | string | null | ไม่ |
|---|
Error ที่อาจได้#
401403404500503
error ในรูป Problem Details ดูรหัสทั้งหมดที่ รหัสข้อผิดพลาด