DAJI OPEN PLATFORM
中文
PRICE
CONSOLE
  1. 1688 Order Pay
  • Introduction
    • I. Learn About DAJI
    • II. Become a developer
    • III. Get Access Key and Access Secret
    • IV. Start Your Application Development
    • V. Frequently Asked Question
    • VI. Plans & Pricing
  • 1688 - Adapted Capabilities
    • Capability Specifications
      • Request Signature
      • Enum Type
      • Message Notification
      • Message Notification - Signature
    • Integration Testing
      • 1688 Business Opportunity
        • Query Ranking List
        • Query Daily Product Sales Trend
      • 1688 Product Search
        • Upload image to get imageId
        • Image Search
        • Keyword Search
        • Product Detail Search
        • Shop Search
        • Product Shipping Query
        • Category Query
        • Product Detail Search - supports short links
      • 1688 Order Manage
        • Preview Order
        • Create Order
        • Cancel Order
        • Confirm Receipt
        • Query Order Detail
        • Query Order List
      • 1688 Order Pay
        • Get payment links for orders in batches
          POST
        • Protocol Pay
          POST
      • Other API
        • Multilingual Search Navigation
  • Taobao - Adapted Capabilities
    • Capability Specifications
      • Request Signature
      • Enum Type
      • Message Notification
      • Message Notification - Signature
    • Integration Testing
      • Taobao Product Search
        • Image upload By Get
        • Image Search
        • Keyword Product Search
        • Shop Search
        • Product Detail Search V2
        • Ranking Type Search
        • Ranking Product Search
        • Product Shipping Query V2
        • Product Detail Search - supports short links
        • Batch Product Shipping Query V2
      • Taobao Order Manage
        • Product ID Mapping
        • Product Preview
        • Create Order
        • Cancel Order
        • Query Order
      • Taobao Order Pay
        • Protocol Pay
  • Poizon V2.0 - Adapted Capabilities
    • Capability Specifications
    • Integration Testing
      • Poizon V2.0 Product Search
        • Keyword Search
        • Product Detail
      • Poizon V2.0 Order Manage
        • Create Order & Payment
        • Query Order Info
        • Cancel Order
      • Poizon V2.0 Logistics
        • Query Logistics Trace
      • Poizon V2.0 Balance Query
        • Balance Query
  1. 1688 Order Pay

Protocol Pay

POST
/alibaba/trade/pay/protocolPay/preparePay
Initiates password-free payment and automatically determines whether Alipay or ChengE credit password-free payment is enabled, then initiates the deduction. ChengE credit auto-deduction is attempted first; if it fails, Alipay auto-deduction is tried. This API currently returns unspecified error codes; if deduction fails, retry up to 3 times and do not retry indefinitely.

Request

Body Params application/json

Example
{
    "appKey": "",
    "appSecret": "",
    "orderId": "2257164624870311973",
    "payChannel": "alipay"
}

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 'https://openapi.dajisaas.com/alibaba/trade/pay/protocolPay/preparePay' \
--header 'Content-Type: application/json' \
--data '{
    "appKey": "",
    "appSecret": "",
    "orderId": "2257164624870311973",
    "payChannel": "alipay"
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
    "code": 200,
    "message": "操作成功",
    "data": {
        "success": true,
        "code": null,
        "message": null,
        "result": {
            "isPaySuccess": null,
            "payChannel": "alipay",
            "paySuccess": true
        }
    },
    "timestamp": 1723633532159,
    "traceId": "e8ed07169cdf"
}
Previous
Get payment links for orders in batches
Next
Multilingual Search Navigation
Built with