---
title: "收银台代收查询v2"
method: POST
path: "/global/cashier/collect/query/v2"
---

# 收银台代收查询v2

`POST /global/cashier/collect/query/v2`

## Request

- Base URL: `https://uat-interface.haipay.asia`
- URL: `https://uat-interface.haipay.asia/global/cashier/collect/query/v2`
- Auth: none required
- TypeScript: <https://skmtc.dev/haipay/apis/aed/docs/global/cashier/collect/query/v2/post.ts> (a function with typed inputs; its response is checked against the schema)

代收订单查询

## Request body

- object
  - `appId` integer, required: 业务ID（后台获取，请使用收银台专属APPID，币种为收银台(CASHIER)）
  - `orderId` string, required: 商户订单号
  - `orderNo` string, required: 平台订单号
  - `sign` string, required: 签名

## Response `200`

- object
  - `status` string: 状态码
  - `error` string: 错误码
  - `msg` string: 消息
  - `data` object: 响应数据
    - `orderId` string: 商户订单号
    - `orderNo` string: 平台订单号
    - `currency` string: 币种(选择具体支付方式后有值)
    - `amount` string: 订单金额
    - `actualAmount` string: 实收金额
    - `fee` string: 手续费
    - `status` integer: 状态(0未开始，1支付中，2成功（终态），3失败（终态）, -1异常待确认)
    - `payTime` string: 支付成功时间（当status=2时有值）(本地时间), 格式: yyyy-MM-dd HH:mm:ss
    - `errorMsg` string: 支付失败原因（当status=3时有值）
    - `originalCurrency` string: 实际支付币种
    - `floatExchangeRate` string: 币种转换涉及的汇率
    - `originalAmount` string: 实际支付金额
    - `sign` string: 签名

---

[API](https://skmtc.dev/haipay/apis/aed.md) - [All operations](https://skmtc.dev/haipay/apis/aed/llms.txt) - [OpenAPI document](https://skmtc.dev/haipay/apis/aed/revisions/37b596150f0f?raw)
