Webhook

Webhook是一种用于支出信息的反馈方法。
当付款状态更改时,在创建付款时指定的url_callback将发送邮政请求。

回复

响应参数

姓名参数类型定义
typestring类型。只有付款可用
uuidstring支付的UUID
order_idstring|null系统中的订购ID(确定付款)
amountstring支出的金额
merchant_amountstring|null从商人的余额中扣除的金额,包括所有佣金。
commissionstring|null加密委员会金额
is_finalboolean付款是否完成如果支出不是最终的且失败的,那么仍然有可能通过支持进行重新启动。付款确定后,它要么支付或失败。
statusstring支付状态 看
fail_reasonstring|null1. AML - 付款被拒绝的原因:收款人未通过 AML 验证。2. system_error - 拒绝原因:服务器错误。3. address_error - 拒绝原因:收件人地址无效。
txidstring|null区块链上的交易哈希。如果1)P2P支付了支付给Cryptomus地址2)支付失败。
currencystring发票货币
networkstring|null付款的区块链网络
payer_currencystring|null加密货币代码实际上是在其中支付。支付地址将获得支出货币。
payer_amountstring|null支付的付费数付费中的金额。
signstring签名以验证webhook是否来自Cryptomus

参数类型

string

定义

类型。只有付款可用

参数类型

string

定义

支付的UUID

参数类型

string|null

定义

系统中的订购ID(确定付款)

参数类型

string

定义

支出的金额

参数类型

string|null

定义

从商人的余额中扣除的金额,包括所有佣金。

参数类型

string|null

定义

加密委员会金额

参数类型

boolean

定义

付款是否完成如果支出不是最终的且失败的,那么仍然有可能通过支持进行重新启动。付款确定后,它要么支付或失败。

参数类型

string

定义

支付状态 看

参数类型

string|null

定义

1. AML - 付款被拒绝的原因:收款人未通过 AML 验证。2. system_error - 拒绝原因:服务器错误。3. address_error - 拒绝原因:收件人地址无效。

参数类型

string|null

定义

区块链上的交易哈希。如果1)P2P支付了支付给Cryptomus地址2)支付失败。

参数类型

string

定义

发票货币

参数类型

string|null

定义

付款的区块链网络

参数类型

string|null

定义

加密货币代码实际上是在其中支付。支付地址将获得支出货币。

参数类型

string|null

定义

支付的付费数付费中的金额。

参数类型

string

定义

签名以验证webhook是否来自Cryptomus

响应示例


1{
2    "type": "payout",
3    "uuid": "2b852d86-3cf1-43fb-b1bb-36f0b7d12151",
4    "order_id": "129359",
5    "amount": "207.00000000",
6    "merchant_amount": "207.30000000", 
7    "commission": "0.30000000",
8    "is_final": true,
9    "status": "fail",
10    "fail_reason": "AML",                 
11    "txid": null,                           
12    "currency": "USDT",
13    "network": "bsc",
14    "payer_currency": "USDT",
15    "payer_amount": "207.00000000",
16    "sign": "eff3afba8600af59c98b74155934da2d"
17}
复制

Webhook验证

看