Skip to content
UnknownPay
ไทย
Reference

Endpoint Catalog

At-a-glance table of all 11 S2S endpoints — method, path, HMAC auth, and Idempotency-Key requirements

All 11 endpoints in one table. Every S2S request must be HMAC-signed except the public GET /v1/banks. The "Idempotency-Key" column marks the money-moving POSTs that require the header.

Endpoints

#MethodPathAuth (HMAC)Idempotency-KeySummary
1POST/v1/depositsCreate a deposit; returns expected_amount + pay_to/qr_payload, status PENDING.
2GET/v1/deposits/:idPoll deposit status; pay_to only while PENDING.
3POST/v1/deposits/:id/cancelCancel a still-PENDING deposit.
4POST/v1/withdrawalsCreate a payout; debits gross (amount + fee) immediately, status PENDING.
5GET/v1/withdrawals/:idGet one withdrawal (caller-scoped).
6GET/v1/withdrawalsList the caller's own withdrawals.
7GET/v1/balanceWallet balance (available + pending).
8GET/v1/banks❌ publicPublic bank master keyed by bank_code; Cache-Control: max-age=3600.
9POST/v1/test/simulate-transferSandbox only: inject a transfer into a PENDING test deposit; live key → 404.
10POST/v1/test/top-upSandbox only: credit the test balance (≤ 1,000,000 / call); live key → 404.
11POST/v1/test/resetSandbox only: wipe all of your own test data; live key → 404.
Mode (live vs test) is derived from the key prefix (unk_live_ / unk_test_), never from the URL. The three /v1/test/* endpoints only work with a test key — a live key gets 404 NOT_FOUND.