English
Product Documentation1688 APITaobao/Tmall APIPoizon API
Product Documentation1688 APITaobao/Tmall APIPoizon API
中文
  1. 1688 Oder Pay
  • 1688 Solution Introduction
  • 1688 Product Search
    • Image upload By Get
      GET
    • Image upload By Post
      POST
    • Image search
      GET
    • keyword search
      GET
    • Product details search
      GET
    • 类目查询
      GET
  • 1688 Order Manage
    • Preview order
      POST
    • Create order
      POST
    • Cancel order
      POST
    • View order details
      POST
    • Buyer confirms receipt
      POST
  • 1688 Oder Pay
    • Get payment links for orders in batches
      GET
    • Initiate password-free payment
      POST
  • 1688 Message Service
    • 1688 Message Service
  1. 1688 Oder Pay

Initiate password-free payment

POST
/alibaba/trade/pay/protocolPay/preparePay
When initiating a password-free payment, it will automatically determine whether Alipay or ChengE Credit has opened a password-free payment, and initiate a deduction. Priority is given to initiating automatic deductions from Cheng E. If this fails, automatic deductions from Alipay will be attempted. The error code currently returned by this interface is unknown. After failure to initiate a deduction, it is recommended to retry 3 times and not to retry indefinitely.

Request

Body Params application/json

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

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

Responses

🟢200成功
application/json
Body

Example
{
    "code": 200,
    "message": "操作成功",
    "data": {
        "success": true,
        "code": null,
        "message": null,
        "result": {
            "isPaySuccess": null,
            "payChannel": "alipay",
            "paySuccess": true
        }
    },
    "timestamp": 1723633532159,
    "traceId": "e8ed07169cdf"
}
Modified at 2024-09-05 06:03:25
Previous
Get payment links for orders in batches
Next
1688 Message Service
Built with