提交訂單

在接入鏈路中的位置
提交法幣金額和網路,返回本筆 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否否—自定義資料,Webhook時原樣返回
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": "..."
}