Overview
1
Register a withdrawal payee (sp1401)
Submit the destination bank account details for compliance review.
2
Receive payee approval (sp3401 webhook)
Gcashier Pay delivers the approved
payeeId to your callback URL.3
Initiate a withdrawal (sp1305)
Submit the withdrawal request referencing the approved
payeeId.4
Receive the withdrawal result (sp3303 webhook)
Gcashier Pay posts the final settlement outcome to your callback URL.
5
Query withdrawal history (sp2303)
Look up past withdrawals by flow reference or time range.
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.
A
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.
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:
For end-to-end sandbox testing, register a payee with a
bankAccountNo ending in 1 to reliably receive a success webhook.