Skip to main content
35 MERCHANT ENDPOINTS · 100+ TOTAL ROUTES

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.

SIGNING PATH RULE

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.

RAW-BODY WEBHOOK

Verify Raw Bytes Before Parsing

Callbacks retry until HTTP 200. Signatures are computed over the raw body — re-serialising parsed JSON will not match.

ONBOARDING ENDPOINTS

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

MethodRequest PathSigned PathPurposeSpec
POST/api/v2/payins/v2/payinsCreate an automated payin (recommended) returning paypage_urlOpen
GET/api/v1/payins/:id/v1/payins/:idRead authoritative status for a single payin anytimeOpen
POST/api/v2/payins/:id/cancel/v2/payins/:id/cancelCancel an unpaid pending payin orderOpen
POST/api/v1/payouts/v1/payoutsCreate an idempotent payout via the 24/7 managed queueOpen
GET/api/v1/payouts/:id/v1/payouts/:idRead single payout status by payout idOpen
POST/api/v1/settlements/v1/settlementsSettle platform balance to your own corporate account on demandOpen
POST/api/v1/payins/:id/slip/v1/payins/:id/slipSubmit transfer slip QR for bank-record verification & replay hashOpen
GET/api/me/balances/me/balancesInspect available and pending balances per currencyOpen
GET/api/me/limits/me/limitsCheck active transaction and settlement limitsOpen
POST / GET/api/me/issues/me/issuesRaise and track operational issues bound to transaction IDsOpen