Skip to main content

Withdraw Request

Request

API URL: /merchant/v2/{GUID}/withdraw

Note

{GUID} Obtained from the merchant backend (API Docking -> GUID)

✅ Required ⭕ Optional ❌ Not used

HeaderContentDescription
Content-Typetext/plain
X-Transaction-Signature{transaction_signature}Please refer to Transaction Signature
ParamTypeRequiredSignDescription
user_idStringMerchant identification
order_idStringWithdraw order Id of merchant system. The order id should be unique.
amountStringTransaction amount (Support up to 6 decimal places)
currencyStringPlease refer to Support Channel
channelStringPlease refer to Support Channel
timestampIntegerRequest timestamp (10 digits), If the time difference is allowed to be 5 seconds, it will fail.
detailsDetailsDetails object depends on channel
callback_urlURLThe url to receive callback request from PTS when transaction complete.
remarkStringRemark
signStringSignature string. Please refer to Data Signature and Verification

Details Object

ParamTypeDescription
phoneString1. The phone number starts with "09" and consists of 11 digits, for example: 09123456789.
2. The phone number starts with "9" and consists of 10 digits, for example: 9123456789.

Response

ParamTypeRequiredSignDescription
user_idStringMerchant identification
order_idStringWithdraw order Id of merchant system. The order id should be unique.
transaction_idStringPTS transaction id
channelStringPlease refer to Support Channel
submit_currencyStringSubmit currency
submit_amountFloatSubmit amount (Support up to 6 decimal places)
accept_currencyStringThe currency real paid
accept_amountFloatPaid amount of accept currency (Support up to 6 decimal places)
exchange_rateFloatExchange rate
signStringSignature string. Please refer to Data Signature and Verification

Response Example

{
"code": "1000",
"message": "Accepted",
"data": {
"user_id": "1",
"order_id": "20210521181858",
"transaction_id": "W12021052118190115910",
"channel": "QRPH_INSTAPAY",
"submit_currency": "PHP",
"submit_amount": 40000,
"accept_currency": "PHP",
"accept_amount": 40000,
"exchange_rate": 1,
"sign": "hZJiccj0EPEQkoOlsmkRWEzHZ+dvbgD8t2RyNzL..."
}
}