One Signed Call. One Verified Callback. One Ledger Entry.
The entire integration is a REST endpoint you sign, a raw-body callback you verify, and an authoritative status you can query anytime — backed by dedicated Sandbox debug endpoints before going live.
Strip /api Prefix When Signing
Signature middleware strips the /api prefix before verifying, so sign /v2/payins even when sending POST requests to /api/v2/payins.
Verify Raw Bytes Before Parsing
Callbacks retry until HTTP 200. Signatures are computed over the raw body — re-serialising parsed JSON will not match.
Endpoints Issued at Onboarding
Code samples use api.example.com for illustration. Dedicated Sandbox debug endpoints and live Production hosts are issued once approved.
Quickstart — POST /api/v2/payins
Uses api.example.com — live host issued at onboarding# Note: api.example.com is a placeholder — your Sandbox & Production endpoints are issued at onboarding.
# Middleware strips /api before verifying, so compute X-Signature over /v2/payins.
curl -X POST https://api.example.com/api/v2/payins \
-H "Content-Type: application/json" \
-H "X-API-Key: <your-api-key>" \
-H "X-Timestamp: <unix-timestamp>" \
-H "X-Signature: <hmac-sha256-of-path>" \
-d '{
"merchant_ref_id": "unique-order-ref-id-2025001",
"currency_code": "THB",
"request_amount": 1000,
"customer_id": "0198cbc6-fd02-7459-a671-78c306d0a1ad",
"customer_account_id": "0198cbc7-35ec-7c8c-8994-d3ac3e7f5255",
"redirect_url": "https://merchant.example.com/payment/success"
}'HTTP 200 RESPONSE JSON
{
"id": "0198cbff-db9b-7b6a-9f82-6a55fdfb6575",
"merchant_ref_id": "unique-order-ref-id-2025001",
"status": "pending",
"request_amount": 1000,
"paypage_url": "https://pay.example.com/pay/0198cbff-db9b-7b6a-9f82-6a55fdfb6575"
}Redirect to or embed the returned paypage_url immediately — zero custom checkout UI required.
API SURFACE REFERENCE
Core Merchant API Surface
| Method | Request Path | Signed Path | Purpose | Spec |
|---|---|---|---|---|
| POST | /api/v2/payins | /v2/payins | Create an automated payin (recommended) returning paypage_url | Open |
| GET | /api/v1/payins/:id | /v1/payins/:id | Read authoritative status for a single payin anytime | Open |
| POST | /api/v2/payins/:id/cancel | /v2/payins/:id/cancel | Cancel an unpaid pending payin order | Open |
| POST | /api/v1/payouts | /v1/payouts | Create an idempotent payout via the 24/7 managed queue | Open |
| GET | /api/v1/payouts/:id | /v1/payouts/:id | Read single payout status by payout id | Open |
| POST | /api/v1/settlements | /v1/settlements | Settle platform balance to your own corporate account on demand | Open |
| POST | /api/v1/payins/:id/slip | /v1/payins/:id/slip | Submit transfer slip QR for bank-record verification & replay hash | Open |
| GET | /api/me/balances | /me/balances | Inspect available and pending balances per currency | Open |
| GET | /api/me/limits | /me/limits | Check active transaction and settlement limits | Open |
| POST / GET | /api/me/issues | /me/issues | Raise and track operational issues bound to transaction IDs | Open |
Detailed Endpoint Guides & Code Samples
Create Automated Deposit (POST /v2/payins)
/api/v2/payins
Create deposits with latency-scored Smart Routing across PromptPay QR, Thai bank transfer, HK FPS, or USDT TRC20.
Automated Managed-Queue Payouts (POST /v1/payouts)
/api/v1/payouts
Disburse withdrawals across 18 Thai and 12 Hong Kong banks via a 24/7 managed queue with idempotent protection.
Submit Transfer Slip Fallback (POST /v1/payins/:id/slip)
/api/v1/payins/{id}/slip
Layer 3 confirmation path that verifies transfer slip QR payloads against real bank records and stores a replay hash.
Bind Customer Bank Account (Sender Verification)
/api/v1/customers/{id}/accounts
Register verified customer bank accounts to obtain the UUIDv7 customer_account_id used in payins and payouts.
On-Demand Settlement & Org Transfers (POST /v1/settlements)
/api/v1/settlements
Check /me/balances and /me/limits, preview exact net figures, and settle on demand without T+1/T+2 batch waits.
Balances, Limits, Order Cancel & Issue Tracking
/api/me/balances · /me/limits · /me/issues
Operational endpoints to inspect multi-currency balances, check limits, cancel pending payins, and track support issues.
Webhook Signature Verification & Idempotency (HMAC-SHA256)
X-Signature (HMAC-SHA256)
Delivered and retried until HTTP 200. Verify X-Signature over raw bytes in constant time with X-Timestamp freshness.