提交订单

在接入链路中的位置
提交法币金额和网络,返回本笔 cryptoAmount 与 payUrl。付款金额以本次 data.cryptoAmount 为准。
POST/api/public/order/apply

请求类型:application/json

请求参数

字段名称类型必填签名示例说明
appIdstring(12-16)是是k-mch8x2k1p4q9APP ID
merchantOrderNostring(5-32)是是ORD-20260822-0001商户订单号,商户侧保证唯一
networkstring是是TRC网络,见 参数查询
assetstring是是USDT收款资产,目前TRC 只支持 USDT,见 参数查询
amountstring是是10.99法币金额
currencystring(3)是是USD法币 ISO 代码,取值见 参数查询
notifyUrlstring是是https://merchant.example.com/ucashier/notify异步通知地址,须可公网访问
attachstring否否—自定义数据,回调时原样返回
redirectUrlstring否否https://merchant.example.com/orders/thank-you支付成功后的前端跳转地址
signaturestring(32)是否07BA8514788F143D2437E0D6F4C028D0数据签名,见签名算法

返回值 data 参数

字段名称类型说明
appIdstringAPP ID
orderNostring平台订单号
merchantOrderNostring商户订单号
exchangeRatestring接口返回的汇率信息
assetstring本单资产,见 参数查询
cryptoAmountstring本笔最终应付金额,币种见 asset,付款以此字段为准
statusstring订单状态,见 参数查询
payUrlstring收银台地址

请求示例

{
  "appId": "k-mch8x2k1p4q9",
  "merchantOrderNo": "ORD-20260822-0001",
  "network": "TRC",
  "asset": "USDT",
  "amount": "10.99",
  "currency": "USD",
  "notifyUrl": "https://merchant.example.com/ucashier/notify",
  "redirectUrl": "https://merchant.example.com/orders/thank-you",
  "attach": "custom",
  "signature": "07BA8514788F143D2437E0D6F4C028D0"
}

响应示例

{
  "code": "100000",
  "message": "Success",
  "data": {
    "appId": "k-mch8x2k1p4q9",
    "orderNo": "U260830162530123456",
    "merchantOrderNo": "ORD-20260822-0001",
    "exchangeRate": "1.0000",
    "asset": "USDT",
    "cryptoAmount": "10.99",
    "status": "pending",
    "payUrl": "https://pay.ucashier.ink/#/payment/order?..."
  },
  "requestId": "..."
}