Overview
Register a withdrawal payee (sp1401)
Submit the destination bank account details for compliance review.
Receive payee approval (sp3401 webhook)
Gcashier Pay delivers the approved
payeeId to your callback URL.Receive the withdrawal result (sp3303 webhook)
Gcashier Pay posts the final settlement outcome to your callback URL.
Step 1 — Register a Withdrawal Payee
Call POST /api/sp1401 withpayeeType set to WITHDRAW_PAYEE to register the bank account you want to withdraw funds into. Gcashier Pay will review the account details before activating the payee.
The account name on the registered payee must exactly match your merchant’s registered business name. Mismatches will cause the payee application — and subsequent withdrawals — to be rejected.
bizFlowNo to correlate the approval webhook when it arrives.
Step 2 — Receive Payee Approval (sp3401 Webhook)
Once Gcashier Pay’s compliance team approves the payee, an sp3401 webhook is posted to yourcallbackUrl. The payload includes the payeeId you’ll use in all subsequent withdrawal requests.
Step 3 — Initiate a Withdrawal
With an approvedpayeeId, call POST /api/sp1305 to initiate the withdrawal. Provide the amount, your internal order reference, and a callback URL for the result notification.
Response code | Meaning |
|---|---|
ACCEPT | Withdrawal accepted — processing has begun |
SUCC | Withdrawal completed immediately (rare in production) |
FAIL | Withdrawal rejected at submission — check message |
status of PROCESS is the normal initial state. The definitive settlement result arrives via the sp3303 webhook.
Step 4 — Receive the Withdrawal Result Webhook (sp3303)
Gcashier Pay posts the final outcome to yourcallbackUrl once the bank transfer completes or fails. Respond with HTTP 200 to acknowledge receipt.
| Status | Meaning |
|---|---|
SUCC | Funds have been credited to the payee’s bank account |
FAIL | Transfer failed — balance has been refunded to your Gcashier Pay account |
PROCESS | Transfer is still in progress — a subsequent webhook will follow |
Step 5 — Query Withdrawal History
Use POST /api/sp2303 to retrieve past withdrawal records. You can query bybizFlow, merOrderNo, or a time range.
Sandbox Testing
In the Gcashier Pay sandbox environment, the withdrawal outcome is controlled by the last digit ofbankAccountNo registered on the payee:
Last digit of bankAccountNo | Simulated result |
|---|---|
0 – 3 | SUCC — withdrawal completes successfully |
4 – 6 | FAIL — withdrawal rejected by the bank |
7 – 9 | No action — the withdrawal stays in PROCESS state indefinitely |
bankAccountNo ending in 1 to reliably receive a success webhook.