1. Create Authorization Url
Request URL
{domain}/open-api/direct/debit/token/apply
Request Method
| Parameter Name | Required | Type | Description |
| Content-Type | Yes | string | application/json |
Request Body Parameters
| Parameter Name | Required | Type | Description |
| appId | Yes | string | Application APPID |
| param | Yes | string | Parameter body |
| sign | Yes | string | Signature |
param
| Parameter Name | Required | Type | Length | Example | Description |
| timestamp | Yes | long | - | 1677495496979 | Current timestamp |
| userId | Yes | string | 1-32 | - | Merchant internal user id |
| requestId | Yes | string | 1-32 | CCP20220428011068111 | Merchant request id (unique for transactionId) 1-32 characters |
| channelCode | Yes | string | - | Reference list | Channel code |
| terminalType | Yes | string | - | - | terminal type (WEB, WAP, APP) |
| osType | No | string | - | - | os type (IOS, ANDROID) require if terminalType is WAP, APP |
| notifyUrl | Yes | string | 1-256 | - | Auth notification URL |
| redirectUrl | Yes | string | 1-512 | - | Redirect URL |
Request Example
Request Body
How to construct request body
Response Param
| Parameter Name | Type | Description |
| code | integer | response code |
| message | string | response message |
| data | Object | data |
data
| Parameter Name | Type | Description |
| userId | string | Merchant internal user id |
| requestId | string | Merchant request id |
| channelCode | string | Channel Code |
| authUrl | string | Auth Url |
Response Example
Response Body
Code Collection
Failed Response Example