# อ้างอิง API

Source: https://checkslip.com/docs/reference

API สำหรับตรวจสอบรายการโอนกับธนาคาร เรียกที่ `https://api.checkslip.com`

- [ผลตรวจรายการโอน](https://checkslip.com/docs/outcomes)
- [รหัสข้อผิดพลาดของ API](https://checkslip.com/docs/errors)
- [ธนาคารที่รองรับ](https://checkslip.com/docs/banks)

## สลิป `/api/slips`

- [POST `/api/slips/lookup` ตรวจสอบรายการโอนกับธนาคาร](https://checkslip.com/docs/lookup-slip)
- [GET `/api/slips` ดูประวัติการตรวจ](https://checkslip.com/docs/list-slip-checks)
- [GET `/api/slips/counts` ดูจำนวนการตรวจตามช่วงเวลา](https://checkslip.com/docs/count-slip-checks)
- [GET `/api/slips/{request_id}` ดูผลตรวจหนึ่งรายการ](https://checkslip.com/docs/get-slip-check)
- [POST `/api/slips/exports` ส่งออกประวัติการตรวจเป็น CSV](https://checkslip.com/docs/create-slip-export)
- [GET `/api/slips/exports/{export_id}` ดูสถานะการส่งออก](https://checkslip.com/docs/get-slip-export)
- [GET `/api/slips/exports/{export_id}/parts/{part}` ดาวน์โหลดไฟล์ส่งออกหนึ่งส่วน](https://checkslip.com/docs/download-slip-export-part)

## เครดิตและการชำระเงิน `/api/billing`

- [GET `/api/billing/packages` ดูแพ็กเครดิตที่เปิดขาย](https://checkslip.com/docs/list-packages)
- [GET `/api/billing/balance` ดูเครดิตคงเหลือ](https://checkslip.com/docs/get-balance)
- [GET `/api/billing/ledger` ดูประวัติเครดิต](https://checkslip.com/docs/list-ledger)
- [GET `/api/billing/orders` ดูรายการสั่งซื้อ](https://checkslip.com/docs/list-orders)
- [GET `/api/billing/orders/{order_id}` ดูคำสั่งซื้อ](https://checkslip.com/docs/get-order)
- [POST `/api/billing/orders/{order_id}/sync` ถามผลการชำระเงินล่าสุดของคำสั่งซื้อ](https://checkslip.com/docs/sync-order)
- [GET `/api/billing/receipts` ดูใบเสร็จรับเงินทั้งหมด](https://checkslip.com/docs/list-receipts)
- [GET `/api/billing/receipts/{receipt_id}` ดูใบเสร็จรับเงินหนึ่งใบ](https://checkslip.com/docs/get-receipt)
- [GET `/api/billing/billing-info` ดูข้อมูลผู้ซื้อสำหรับใบเสร็จ](https://checkslip.com/docs/get-billing-info)
- [PUT `/api/billing/billing-info` แก้ไขข้อมูลผู้ซื้อสำหรับใบเสร็จ](https://checkslip.com/docs/put-billing-info)

## การใช้เครดิต `/api/usage`

- [GET `/api/usage` ดูยอดการใช้เครดิต](https://checkslip.com/docs/get-usage)

## Webhooks `/api/webhooks`

- [GET `/api/webhooks/event-types` ดูประเภทข้อความที่สมัครรับได้](https://checkslip.com/docs/list-event-types)
- [GET `/api/webhooks/endpoints` ดูรายการ endpoint](https://checkslip.com/docs/list-endpoints)
- [POST `/api/webhooks/endpoints` เพิ่ม endpoint](https://checkslip.com/docs/create-endpoint)
- [GET `/api/webhooks/endpoints/{endpoint_id}` ดู endpoint หนึ่งอัน](https://checkslip.com/docs/get-endpoint)
- [PATCH `/api/webhooks/endpoints/{endpoint_id}` แก้ไข endpoint](https://checkslip.com/docs/update-endpoint)
- [DELETE `/api/webhooks/endpoints/{endpoint_id}` ลบ endpoint](https://checkslip.com/docs/delete-endpoint)
- [POST `/api/webhooks/endpoints/{endpoint_id}/secret/rotate` เปลี่ยน signing secret](https://checkslip.com/docs/rotate-endpoint-secret)
- [POST `/api/webhooks/endpoints/{endpoint_id}/test` ส่งข้อความทดสอบ](https://checkslip.com/docs/send-test-event)
- [POST `/api/webhooks/endpoints/{endpoint_id}/recover` ส่งซ้ำข้อความที่ส่งไม่สำเร็จตามช่วงเวลา](https://checkslip.com/docs/recover-endpoint)
- [GET `/api/webhooks/deliveries` ดูรายการส่ง](https://checkslip.com/docs/list-deliveries)
- [GET `/api/webhooks/deliveries/{delivery_id}` ดูรายการส่งหนึ่งรายการ](https://checkslip.com/docs/get-delivery)
- [POST `/api/webhooks/deliveries/{delivery_id}/redeliver` ส่งซ้ำรายการส่งหนึ่งรายการ](https://checkslip.com/docs/redeliver-delivery)

## Audit log `/api/audit`

- [GET `/api/audit/requests` ดูบันทึกคำขอ API](https://checkslip.com/docs/list-api-requests)
- [GET `/api/audit/requests/{request_id}` ดูบันทึกคำขอ API หนึ่งรายการ](https://checkslip.com/docs/get-api-request)
- [GET `/api/audit/events` ดูกิจกรรมในบัญชี](https://checkslip.com/docs/list-audit-events)
- [GET `/api/audit/events/{event_id}` ดูกิจกรรมหนึ่งรายการ](https://checkslip.com/docs/get-audit-event)
- [GET `/api/audit/exports` ดูรายการไฟล์หลักฐาน](https://checkslip.com/docs/list-evidence-exports)
- [POST `/api/audit/exports` ขอไฟล์หลักฐานตามช่วงวัน](https://checkslip.com/docs/create-evidence-export)
- [GET `/api/audit/exports/{export_id}` ดูสถานะไฟล์หลักฐานหนึ่งไฟล์](https://checkslip.com/docs/get-evidence-export)
- [GET `/api/audit/exports/{export_id}/file` ดาวน์โหลดไฟล์หลักฐาน](https://checkslip.com/docs/download-evidence-export)

## ธนาคาร `/api/banks`

- [GET `/api/banks` ดูธนาคารที่รองรับ](https://checkslip.com/docs/list-supported-banks)
