English
Product Documentation1688 APITaobao/Tmall API
Product Documentation1688 APITaobao/Tmall 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
  • 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
appKey
string 
required
大吉平台appKey
appSecret
string 
required
秘钥,仅调试使用,正式用sign签名
orderId
string 
required
1688采购订单号
Example
{
  "appKey": "",
  "appSecret": "",
  "orderId": "2257164624870311973"
}

Request 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
code
integer 
required
返回码
message
string 
required
消息
data
object 
required
业务数据
success
boolean 
required
成功标识
code
null 
required
返回码
message
null 
required
消息
result
object 
required
返回结果
timestamp
integer 
required
时间戳
traceId
string 
required
traceId
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
1688 Message Service
Built with