Webhook

Webhook is a kind of feedback method for payout information.
When payout status changes, a POST request is sent to the url_callback specified when creating the payout.

Response

Response parameters

NameParameter typeDefinition
typestringType. Only payout is available
uuidstringuuid of the payout
order_idstring|nullOrder ID in your system (to identify the payout)
amountstringThe amount of the payout
merchant_amountstring|nullThe amount that is debited from the merchant's balance, including all commissions.
commissionstring|nullCryptomus commission amount
is_finalbooleanWhether the payment is completedIf the payout is not final and failed, its still possible to resend it through the support.When payout is finalized it's either paid or failed.
statusstringPayment status see
fail_reasonstring|null1. aml - Reason for payment rejection: recipient did not pass AML verification.2. system_error - Reason for rejection: server error.3. address_error - Reason for rejection: invalid recipient address.
txidstring|nullTransaction hash on the blockchain.The txid field will not exist if1) Payout was paid by p2p to Cryptomus address2) Payout failed.
currencystringInvoice currency
networkstring|nullThe blockchain network in which the payment was made
payer_currencystring|nullCryptocurrency code in which the payout will be actually made. The payout address will receive the payout currency.
payer_amountstring|nullAmount in payer_currency of the payout.
signstringSignature to verify that webhook was from Cryptomus

Parameter type

string

Definition

Type. Only payout is available

Parameter type

string

Definition

uuid of the payout

Parameter type

string|null

Definition

Order ID in your system (to identify the payout)

Parameter type

string

Definition

The amount of the payout

Parameter type

string|null

Definition

The amount that is debited from the merchant's balance, including all commissions.

Parameter type

string|null

Definition

Cryptomus commission amount

Parameter type

boolean

Definition

Whether the payment is completedIf the payout is not final and failed, its still possible to resend it through the support.When payout is finalized it's either paid or failed.

Parameter type

string

Definition

Payment status see

Parameter type

string|null

Definition

1. aml - Reason for payment rejection: recipient did not pass AML verification.2. system_error - Reason for rejection: server error.3. address_error - Reason for rejection: invalid recipient address.

Parameter type

string|null

Definition

Transaction hash on the blockchain.The txid field will not exist if1) Payout was paid by p2p to Cryptomus address2) Payout failed.

Parameter type

string

Definition

Invoice currency

Parameter type

string|null

Definition

The blockchain network in which the payment was made

Parameter type

string|null

Definition

Cryptocurrency code in which the payout will be actually made. The payout address will receive the payout currency.

Parameter type

string|null

Definition

Amount in payer_currency of the payout.

Parameter type

string

Definition

Signature to verify that webhook was from Cryptomus

Response example


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}
Copy

Webhook verification

see