Skip to content
UnknownPay
ไทย

UnknownPay Merchant API

UnknownPay is a payment aggregator that lets merchants connect Server-to-Server (S2S) directly from their own server to:

UnknownPay is a payment aggregator that lets merchants connect Server-to-Server (S2S) directly from their own server to:

  • Accept deposits from customers via PromptPay QR or bank transfer, credited to your balance automatically once the amount is matched
  • Send withdrawals (payouts) from your balance to a destination account you specify
  • Receive near real-time status via webhooks — no polling needed
The Portal is for configuration (issuing API keys, setting up webhooks); the S2S API is for real transactions using an API key + HMAC signature. They are separate.

Three things to remember before your first line of code

Every money field on the wire is a baht string with 2 decimals, e.g. "100.50" — not a number (100.5) and not satang (10050). Sending the wrong unit is a 100× bug.
  1. Money = a baht string with 2 decimals, e.g. "100.50"
  2. Secrets are show-once — both the API secret and the webhook signing secret. Copy them immediately.
  3. Sign every request with HMAC-SHA256 (X-Api-Key + X-Signature + X-Timestamp) — no signature = 401

Get started

Portal preparation

Issue API keys, configure a webhook, and register your IP.

Quickstart

Make your first end-to-end deposit in the sandbox.

Authentication

Sign every request with API key + HMAC-SHA256.

Deposits

Accept money via PromptPay QR or bank transfer.

Withdrawals

Pay out from your balance to a destination account.

Webhooks

Receive near real-time status notifications.