API Doc
Languages
Languages
  • English
  • 简体中文
Languages
Languages
  • English
  • 简体中文
  1. Authorization
  • API Signature Process
  • API General Code
  • 1. Callback
    • Merchant Subscription Event Notification - Signature Process
  • 2. Account
    • 2.1 Check Account Balance
      GET
    • 2.2 Payment Statement
      POST
    • 2.3 Payout Statement
      POST
  • 3. Payout
    • Payout Product Flow Chart
    • Open API Channel List
    • 3.1 Create Payout
      POST
    • 3.3 Payout Callback Notification
      POST
    • 3.2 Check Payout Status
      GET
  • 4. Bills Payment
    • Bills Payment Product Flow Chart
    • Bills Payment ChannelCode List
    • 4.1 Create Static Virtual Account
      POST
    • 4.2 Batch Create Static Virtual Account
      POST
    • 4.3 Update Static Virtual Account
      POST
    • 4.4 Get Virtual Account Cashier Short Url
      POST
    • 4.5 Get Virtual Account's Payments
      GET
    • 4.6 Repayment verification API
      POST
    • 4.7 Cancel Static Virtual Account
      POST
    • 4.8 Virtual Account Callback Notification
      POST
  • 5. QrCode
    • QrCode Product Flow Chart
    • QrCode ChannelCode List
    • 5.1 Create QR Code
    • 5.2 Get QR Code Detail
    • 5.3 Get QR Code Payments
    • 5.4 Cancel QR Code
    • 5.6 Update QR Code
    • 5.5 QR Code Callback Notification
  • 6. Bank Transfer
    • Bank Transfer Product Flow Chart
    • Bank Transfer ChannelCode List
    • 6.1 Batch Create Bank Transfer Account
    • 6.2 Batch Update Bank Transfer Account
    • 6.3 Bank Transfer Account Payments
    • 6.4 Bank Transfer Callback Notification
  • 7. Web payment
    • Web Payment Product Flow Chart
    • Web Payment ChannelCode List
    • 7.1 Create Web Payment
    • 7.2 Check Web Payment Status
    • 7.3 Web Payment Channels
    • 7.4 Web Payment Callback Notification
  • 8. Refund
    • Refund Support Channel List
    • 8.1 Create Refund
    • 8.2 Get Refund Payments
    • 8.3 Refund Callback Notification
  • 9. Checkout
    • 9.1 Query the channels supported by the cashier counter
    • 9.2 Create the checkout counter
    • 9.3 Check the cashier counter
    • 9.4 Close the cashier counter
    • 9.5 Checkout Payment Notification
  • 10. Direct Debit
    • Direct Debit Channel Code List
    • Authorization
      • 10.1 Create Authorization Link
        POST
      • 10.2 Check Authorization Status
        POST
      • 10.3 Cancel Authorization
        POST
      • 10.4 Authorization Notification
        POST
    • Orders
      • 10.5 Create Payment
      • 10.6 Check Payment Status
      • 10.7 Payment Notification
  • 11. Ekyc
    • Ekyc Channel Code List
    • 11.1 Ekyc Init
    • 11.2 Ekyc Check Result
    • 11.3 Ekyc Notification
  • Schemas
    • Response body
  1. Authorization

10.1 Create Authorization Link

POST
/api/direct/debit/token/apply

Request

Header Params

Body Params application/json

Example
{
    "appId": "{{appId}}",
    "requestId": "CCP20220428011068119",
    "userId": "Penn09",
    "channelCode": "ALIPAY_DIRECT_DEBIT",
    "notifyUrl": "https://webhook.site/8c90197f-76c7-4844-b0e0-404c92d67fee",
    "redirectUrl": "https://www.baidu.com/",
    "terminalType": "WEB",
    "osType": "ANDROID",
    "timestamp": 1774408328286,
    "sign": "{{sign}}"
    
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/direct/debit/token/apply' \
--header 'Content-Type: application/json' \
--data '{
    "appId": "{{appId}}",
    "requestId": "CCP20220428011068119",
    "userId": "Penn09",
    "channelCode": "ALIPAY_DIRECT_DEBIT",
    "notifyUrl": "https://webhook.site/8c90197f-76c7-4844-b0e0-404c92d67fee",
    "redirectUrl": "https://www.baidu.com/",
    "terminalType": "WEB",
    "osType": "ANDROID",
    "timestamp": 1774408328286,
    "sign": "{{sign}}"
    
}'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{
    "code": 1000,
    "message": "success",
    "data": {
        "requestId": "CCP20220428011068119",
        "userId": "Penn09",
        "channelCode": "ALIPAY_DIRECT_DEBIT",
        "authUrl": "https://g.alipayplus.com/page/aplus-linker/acwallet/qrcode.html?url=alipayconnect%3A%2F%2Fplatformapi%2Facwallet%2FsignContract&scopes=AGREEMENT_PAY%2CUSER_LOGIN_ID&bizContent=%7B%22acquirerId%22%3A%22Z02TE8440000000A%22%2C%22authClientDisplayName%22%3A%22Penn%E4%B9%A6%E5%BA%97%22%2C%22authClientId%22%3A%22Ali5M6587767806496768%22%2C%22authClientName%22%3A%22Penn%E4%B9%A6%E6%9C%AC%22%2C%22authRedirectUrl%22%3A%22https%3A%2F%2Fg.alipayplus.com%2Fpage%2Fac-auth-payment%2Fresult%2Fmobile%2Findex.html%3FloadMode%3D2%26callbackType%3DCommon%26terminalType%3DWEB%26referenceAgreementId%3DDB5N1624205652459520%26authRequestId%3D2026031119091305000510002068302%26pspId%3D102208800000000000A%26clientId%3DT_305Y392YSG5VPU02102%22%2C%22authState%22%3A%22REQ5N1624205908312064%22%2C%22customerBelongsTo%22%3A%22ALIPAY_CN%22%2C%22pspId%22%3A%22102208800000000000A%22%2C%22referenceAgreementId%22%3A%22DB5N1624205652459520%22%2C%22referenceMerchantId%22%3A%22Ali5M6587767806496768%22%2C%22scopes%22%3A%5B%22AGREEMENT_PAY%22%2C%22USER_LOGIN_ID%22%5D%2C%22terminalType%22%3A%22WEB%22%7D&source=AlipayConnect&needCallback=false"
    }
}
Previous
Direct Debit Channel Code List
Next
10.2 Check Authorization Status
Built with