订单webhook
简要描述
订单通知webhook 配置及使用:
- 请联系工作人员后台配置您的Webhook Endpoint Url, Url 必须是HTTPS
- 当订单状态改变时,将推送对应订单消息到您的Webhook Endpoint Url
- 收到Webhook 消息后,如果返回HTTP CODE 200, 表示您已成功接收到
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
orderNo | string | 订单号 |
string | 邮箱 | |
cardNumber | string | 卡号 |
cardId | string | 卡id |
cryptoAddress | string | 钱包地址 |
network | string | 网络 |
orderType | string | 1:建卡 2:充值 |
cardType | string | 1:虚拟卡 2:实体卡 |
orderAmount | string | 数币收单订单订单金额, 对应充值币种 |
paymentAmount | string | 数币收单支付订单金额, 对应充值币种 |
cryptoCurrency | string | 数币币种 例:USDT;BTC; ETH |
applyFee | string | 卡申请总费用 单位USDT |
rechargeFee | string | 卡充值费 单位USDT |
voucherCode | string | 优惠券码(未使用返回空) |
rechargeMarkup | string | 商户充值费分佣 单位USDT |
deliveryFee | string | 邮费 单位USDT |
cardAmount | string | 操作卡金额, 对应卡法币币种 |
cardCurrency | string | 卡币种 例:USD;EUR; |
currencyExchangeRate | string | 交易法币汇率 |
cryptoCurrencyExchangeRate | string | 交易数币汇率 |
orderTime | string | 订单时间 |
failReason | string | 失败原因 |
status | string | SUCCESS: 成功 FAIL: 失败 CANCEL: 取消 CANCEL_FAIL: 取消失败(下单币种与支付币种不一致) |
shippinginfo | string | 用户邮寄信息包括: 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": ""
}
备注
更多返回错误代码请看首页的错误代码描述
Updated about 1 month ago