订单webhook

简要描述

订单通知webhook 配置及使用:

  • 请联系工作人员后台配置您的Webhook Endpoint Url, Url 必须是HTTPS
  • 当订单状态改变时,将推送对应订单消息到您的Webhook Endpoint Url
  • 收到Webhook 消息后,如果返回HTTP CODE 200, 表示您已成功接收到

返回参数说明

参数名类型说明
orderNostring订单号
emailstring邮箱
cardNumberstring卡号
cardIdstring卡id
cryptoAddressstring钱包地址
networkstring网络
orderTypestring1:建卡 2:充值
cardTypestring1:虚拟卡 2:实体卡
orderAmountstring数币收单订单订单金额, 对应充值币种
paymentAmountstring数币收单支付订单金额, 对应充值币种
cryptoCurrencystring数币币种 例:USDT;BTC; ETH
applyFeestring卡申请总费用 单位USDT
rechargeFeestring卡充值费 单位USDT
voucherCodestring优惠券码(未使用返回空)
rechargeMarkupstring商户充值费分佣 单位USDT
deliveryFeestring邮费 单位USDT
cardAmountstring操作卡金额, 对应卡法币币种
cardCurrencystring卡币种 例:USD;EUR;
currencyExchangeRatestring交易法币汇率
cryptoCurrencyExchangeRatestring交易数币汇率
orderTimestring订单时间
failReasonstring失败原因
statusstringSUCCESS: 成功 FAIL: 失败 CANCEL: 取消 CANCEL_FAIL: 取消失败(下单币种与支付币种不一致)
shippinginfostring用户邮寄信息包括:
address, city, country, firstName, lastName, phoneCountryCode, phoneNumber, roomNumber, state

返回示例

{
    "applyFee": "26.63285",
    "cardAmount": "0",
    "cardCurrency": "EUR",
    "cardId": "pre1002171381234501427",
    "cardNumber": "",
    "cardType": "2",
    "cryptoAddress": "0x9d5086adc54bb11234567ca9b694ca3a7",
    "cryptoCurrency": "USDT",
    "cryptoCurrencyExchangeRate": "1",
    "currencyExchangeRate": "1.065314",
    "deliveryFee": "0",
    "email": "[email protected]",
    "failReason": "",
    "network": "BSC",
    "orderAmount": "26.64",
    "orderNo": "10021234567427",
    "orderTime": "2024-04-23 18:53:41",
    "orderType": "1",
    "paymentAmount": "26.64",
    "rechargeFee": "0",
    "rechargeMarkup": "0",
    "shippingInfo": {
        "address": "7-3, Block X, XXXX 2C, XXXXXXXXX Road, XXXXXXXX District, Beijing City.",
        "city": "beijing",
        "country": "CN",
        "firstName": "XXXXXXXI",
        "lastName": "XXXXXXX",
        "phoneCountryCode": "86",
        "phoneNumber": "18123456782",
        "roomNumber": "7-3",
        "state": "beijingshi"
    },
    "status": "SUCCESS",
    "voucherCode": ""
}

备注

更多返回错误代码请看首页的错误代码描述