中文版
产品文档1688 APITaobao / Tmall APIPoizon API
产品文档1688 APITaobao / Tmall APIPoizon API
English
  1. 1688 订单支付
  • 1688 开发人员参考
  • 1688 商品搜索
    • 上传图片获取imageId
      POST
    • 图片搜索
      GET
    • 关键词搜索
      GET
    • 商品详情搜索
      GET
    • 店铺搜索
      GET
    • 商品运费查询
      POST
    • 类目查询
      GET
    • 商品详情搜索-支持短链
      GET
  • 1688 订单管理
    • 预览订单
      POST
    • 创建订单
      POST
    • 取消订单
      POST
    • 查询订单
      POST
    • 确认收货
      POST
  • 1688 订单支付
    • 批量获取订单的支付链接
      GET
    • 发起免密支付
      POST
  • 1688 其他接口
    • 多语言搜索导航
      GET
  • 1688 消息说明
    • 1688 交易消息
    • 1688消息-签名验证
  1. 1688 订单支付

发起免密支付

POST
/alibaba/trade/pay/protocolPay/preparePay
发起免密支付,会自动判断是否开通了支付宝或者诚E赊的免密支付,并发起扣款。优先发起诚E赊自动扣款,如果失败,则尝试支付宝自动扣款。该接口目前返回错误码不详,在发起扣款失败后,建议重试3次,不要无限制重试。

请求参数

Body 参数application/json
appKey
string 
必需
大吉平台appKey
appSecret
string 
必需
秘钥,仅调试使用,正式用sign签名
orderId
string 
1688采购订单号
必需
示例
{
  "appKey": "",
  "appSecret": "",
  "orderId": "2257164624870311973"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
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"
}'

返回响应

🟢200成功
application/json
Body
code
integer 
返回码
必需
message
string 
消息
必需
data
object 
业务数据
必需
success
boolean 
成功标识
必需
code
null 
返回码
必需
message
null 
消息
必需
result
object 
返回结果
必需
timestamp
integer 
时间戳
必需
traceId
string 
traceId
必需
示例
{
    "code": 200,
    "message": "操作成功",
    "data": {
        "success": true,
        "code": null,
        "message": null,
        "result": {
            "isPaySuccess": null,
            "payChannel": "alipay",
            "paySuccess": true
        }
    },
    "timestamp": 1723633532159,
    "traceId": "e8ed07169cdf"
}
修改于 2024-09-05 06:01:48
上一页
批量获取订单的支付链接
下一页
多语言搜索导航
Built with