Authorize
Consult
POST
https://mapi.yuansfer.com/auto-debit/v3/consult
Use this interface to initiate authorization of the authorization verification URL for an authorization that occurs at Yuansfer. Authorize the user according to the information in the request.
Request Body
Name | Type | Description |
---|---|---|
vendor* | string | The possible payment channels are "alipay", "truemoney", "alipay_hk", "tng", "gcash", "dana", "kakaopay", "bkash", "easypaisa". |
merchantNo* | string | Merchant ID |
storeNo* | string | Store ID |
note | string | The payment note. |
osType | string | When the terminal is "WAP" or "APP", we need this parameter, the possible value is "IOS", "ANDROID". |
osVersion | string | When the terminal is "WAP" or "APP", return this parameter. |
autoIpnUrl* | string | Asynchronous callback address (note: If autoIpnUrl is set null when the user authorization is complete, Yuansfer will send an asynchronous callback notification containing parameters such as autoDebitNo, autoReference, vendor, time, note, and verifySign). |
autoRedirectUrl* | string | Synchronize the callback address. |
autoReference* | string | The invoice number of the auto-debit in the merchant's system. |
terminal* | string | The possible values are: "ONLINE", "WAP", "APP". |
verifySign* | string | The parameter signature. |
Response
Parameter | Type | Description |
result | object | The result object. |
ret_msg | string | The response return message. |
ret_code | string | The response return code. For more details, see here. |
Result Object
Parameter | Type | Description |
normalUrl | string | The URL that redirects users to open an app when the target app is installed, or to open a WAP page when the target app is not installed. |
applinkUrl | string | The URL that redirects users to a WAP or WEB page in the default browser or the embedded WebView. |
authUrl | string | User redirect to this URL to sign contract. |
autoDebitNo | string | Unique ID of auto debit in Yuansfer's system. |
autoReference | string | Unique ID of auto debit in the merchant's system. |
vendor | string | The possible payment channels are "gcash", "kakaopay", "alipay", "alipay_hk", "dana", "truemoney", "tng", "easypaisa", "bkash". |
Last updated