Deposit Callback

Webhook after receving payment.

Deposit Callback

In this step, we are sending you a webhook with the status of the payement to your provided URL in the FCF Pay dashboard as a project callback URL.

This webhook happens when you receive payment.

The request has a JSON body value like this:

{
  "success": true,
  "data": {
    "order_id": "68",
    "user_id": "",
    "deposited": true,
    "txid": "0x9cf24f76778e517511f6178f114a1d3e95e3c7fdbfcbe52a961b6d748e860849", 
    "unique_id": "0x9cf24f76778e517511f6178f114a1d3e95e3c7fdbfcbe52a961b6d748e860849_0",
    "fiat_amount": "26.12"
    "fiat_currency": "USD"
    "amount": "64464",
    "currency": "BTC",
    "confirm_blocks": 72,
    "fees": "662",
    "decimal": 8,
    "fee_decimal": 8
  },
  "message": "Payment Received"
}
FieldDescription

order_id

it's the same order Id which you sent us in create order

user_id

The user_id is the same as you sent us in create-order

txid

txid is the deposit transaction id

unique_id

The unique id is that order unique id which you should take and call to check-source endpoint for checking the source

deposited

True/False: when it's true the transaction is successfully deposited, when it's false transaction is not deposited

confirm_blocks

Confiramation blocks count

fiat_amount

The fiat amount is converted by using CMC API

fiat_currency

The fiat_amount currency name is the same as you sent us in create-order

amount

Transaction amount

currency

The currency is transferred cryptocurrency name

fees

The fees is miners fees for transaction

decimal

The decimal depends on paid cryptocurrencies

fee_decimal

The fee decimal depends on paid cryptocurrencies

Last updated