向企业收银 (B2B 支付)
接口列表
订单查询

订单查询

业务系统调用此接口查询订单信息

接口说明

请求方式:
post
https://p.wecard.tencent.com/cloudpay/v1/pay/query_order

请求参数

Request
Body 包体
OutOrderId选填
string

订单号;与 PayChlOrderId 不可同时为空

最小长度:6     最大长度:60

PayChlOrderId选填
string

实际支付渠道订单号; 如微信、支付宝订单号;与 OutOrderId不可同时为空

最小长度:6     最大长度:32

请求示例

{
  "OutOrderId": "OUT2022111900000004"
}

返回参数

Response
Response必填
object

返回示例

{
  "Response": {
    "RequestId": "A8E7B797ADD44C3AA57E87AD7420A725",
    "Result": {
      "OutOrderId": "OUT2022111900000004",
      "ChannelOrderId": "679735736991281152",
      "ThirdPayOrderId": "230420127444480387",
      "TotalAmount": "1000",
      "ChannelName": "ABCPAY",
      "PayChannel": "WXPAY",
      "OrderStatus": "PAYING",
      "PayChlPayerId": "oXLUp5Kuxxxxxyto2s",
      "PayInfo": "{\"appId\":\"wxad53ca7fbb5gg5f2\",\"timeStamp\":\"1681867396\",\"nonceStr\":\"94981e22ac0b4663949a442f31739b53\",\"package\":\"prepay_id=wx190923168532565900979a7da2170000000\",\"signType\":\"RSA\",\"paySign\":\"rhOR5lnhv6w2asdMiqRHU/aEZjhk1J4fGT2/Z5vxqtNcaLyHYmqDiIZZqxlSgSibWb/Z1a8SJdzLH9u0nnBKa0u0wtVaXgB6WKUahYtwQZC2ZadaYj6AkAeKLRIUHObVgAClbiiaiUjiaC9JUhj11m7JkClwpRvJkXQi4QzTdjA+kYv+32cgUido8SWIt6WZZXyH1qJTG1rYJC8IeUMgktH8oOoGzlxpaJbgB41j+pBd10b4R4DExlJ+KWP7N8iPj5YrbIzGJ2MsZ8L2U0jKLjpfKF/3d4hsc4or7EKIXdffgsreedaW6JzZ77gyb5ounChaea6CEP1UpUUAvgrkJwgw==\"}",
      "FundAllocateList": [
        {
          "ChannelSubMerchantId": "CM-B",
          "AllocateAmount": 200,
          "Freeze": false
        },
        {
          "ChannelSubMerchantId": "CM-C",
          "AllocateAmount": 100,
          "Freeze": true
        }
      ]
    },
    "ErrCode": "SUCCESS",
    "ErrMessage": "成功"
  }
}

ErrCode 码表

错误代码描述解决方案
SUCCESS请求成功请从 Result 中获取业务数据
ORDER.INVALID_PARAMETER参数有误请根据返回描述修正请求参数
ORDER.RECORD_NOT_EXIST订单不存在订单不存在,请检查订单号是否正确
FailedOperation.SystemError系统未知异常系统未知异常,请稍后重试

腾讯微卡收付通接口文档