Get a receipt
GEThttps://api.checkslip.com/api/billing/receipts/{receipt_id}
API key
Returns one receipt. A receipt is issued once, when payment succeeds, and never changes; the buyer details on it are those at the time of payment. If seller_ready is false, it is not yet a final receipt. Needs an API key with billing:read.
Parameters
| Field | In | Type | Required |
|---|---|---|---|
receipt_id | path | string (uuid) | yes |
Responses
200 application/json
| Field | Type | Required |
|---|---|---|
seller_ready | boolean | yes |
id | string (uuid) | yes |
receipt_no | string | yes |
order_id | string (uuid) | yes |
issued_at | string (date-time) | yes |
seller | object | yes |
seller.name | string | yes |
seller.tax_id | string | no |
seller.address | string | no |
seller.branch | string | no |
buyer | BillingInfo | yes |
buyer.buyer_type | PERSON | COMPANY | no |
buyer.name | string | no |
buyer.tax_id | string | no |
buyer.branch | string | no |
buyer.address | string | no |
buyer.email | string (email) | no |
lines | object[] | yes |
lines[].description | string | yes |
lines[].quantity | integer | yes |
lines[].amount | Money | yes |
lines[].amount.satang | integer | yes |
lines[].amount.currency | string = THB | yes |
vat | object | no |
vat.rate_bp | integer | yes |
vat.base | Money | yes |
vat.base.satang | integer | yes |
vat.base.currency | string = THB | yes |
vat.amount | Money | yes |
vat.amount.satang | integer | yes |
vat.amount.currency | string = THB | yes |
total | Money | yes |
total.satang | integer | yes |
total.currency | string = THB | yes |
payment_method | CARD | PROMPTPAY | yes |
Possible errors
401403404500
An error as Problem Details. All codes are listed at Error codes