Skip to content
UnknownPay
ไทย
Withdrawals

Get & List Withdrawals

GET /v1/withdrawals/:id to get one (caller-scoped) and GET /v1/withdrawals to list your own withdrawals

GET /v1/withdrawals/:id · GET /v1/withdrawals

Read a single withdrawal request or list your own. Both are bodyless, HMAC-signed (S2S), and scoped to the calling merchant only.

Get one — GET /v1/withdrawals/:id

Returns a withdrawal request only for your own merchant. If id is not yours / not found / has an invalid format → 404 (existence is not revealed).

Example request

curl "https://api.unkpay.co/v1/withdrawals/3b9c1e54-2a77-4f0d-bb1e-8a6d4c2e91aa"
Pending confirmation — add the S2S authentication headers (API key + HMAC signature)

Response body — 200 OK

FieldTypeDescription
idstring (uuid)Withdrawal id.
amountstring (baht)Amount the destination receives.
feestring (baht)Fee.
net_payoutstring (baht)Net amount paid to the destination.
currencystring"THB"
receiver_bank_providerstringDestination bank code.
destinationobject{ "bank", "account_no", "name" } full plaintext.
kindstring"customer"
reference_user_idstringDestination customer reference id (only if sent at create).
statusstringCurrent status — `PENDING
created_atstring (timestamp)Time the request was created.
{
  "id": "3b9c1e54-2a77-4f0d-bb1e-8a6d4c2e91aa",
  "amount": "500.00",
  "fee": "9.00",
  "net_payout": "500.00",
  "currency": "THB",
  "receiver_bank_provider": "SCB",
  "destination": {
    "bank": "SCB",
    "account_no": "1234567890",
    "name": "สมชาย ใจดี"
  },
  "kind": "customer",
  "reference_user_id": "cust-7",
  "status": "PENDING",
  "created_at": "2026-06-19T10:38:00Z"
}
reference_user_id appears only if it was sent in additional.reference_user_id at create time. Status is the source of truth for the current state, but the terminal outcome must still be confirmed via the terminal webhook.

List your own — GET /v1/withdrawals

Returns the list of withdrawal requests for the calling merchant only (caller-scoped). The response is an array of withdrawal objects with the same fields as the single-get above.

Example request

curl "https://api.unkpay.co/v1/withdrawals"
Pending confirmation — add the S2S authentication headers (API key + HMAC signature)

Errors

HTTPcodeCause
404NOT_FOUND(single get) id is not yours / not found / has an invalid id format

See the Error Envelope & Codes for the cross-cutting error format.