Withdrawal IPN

This endpoint handles callbacks for withdrawals.

Crypto Withdrawal Callback. URL according to the related shop (Callback Withdrawal URL)

{
  "nonce": "string",
  "signature": "string",
  "int_event_id": "string",
  "int_request_id": "string",
  "int_transaction_id": "string",
  "merchant_reference_id": "string",
  "blockchain_transaction_id": "string",
  "type": "string",
  "amount": "number",
  "currency": "string",
  "exchanged_amount": "string",
  "exchanged_currency": "string",
  "status": "string",
  "ref_customer_id": "string",
  "int_customer_id": "integer",
  "address": "string",
  "destination_tag": "string",
  "created_at": "string",
  "callback_created_at": "string",
  "shop_id": "integer"
}

Withdrawal IPN Body

nonce*
This is a unique Identifier for signature

signature*
The HMAC signature used for callback authentication. To verify that the callback was sent by us, Merchant Core should generated an HMAC signature using SHA-256 as following:
key: nonce,username,password
message: customer_id
'signature': '9d2c15e62aa988b2d1355a07b236a046d270e462db33615f127b0bf7c67cd97'

int_event_id*
This is the webhook id. Example: 'int_event_id': '10'

int_request_id*
This is the merchant request id for the request sent to our system. Example: 'int_request_id': '550e8400-e29b-41d4-a716-446655440000'

int_transaction_id*
This is the system order id from the event. Example: 'int_transaction_id': '1000'

merchant_reference_id
This is the withdrawal reference id in merchant side for validation purposes. Example: 'merchant_reference_id': '102342300'

blockchain_transaction_id*
This is the blockchain transaction id from the event. Example: 'blockchain_transaction_id': 'cbd3dea703bd2bc78bca69ee61ca14e6ffcdd809d07ebbc3b8fea3c30ea38f33'

type*
This is the callback type. Example: 'type': 'crypto_withdrawal'

amount*
This is the amount of the withdrawal. Example: 'amount': '0.00050000'

currency*
This is currency code of the amount sent. Example: 'currency': 'BTC'

exchanged_amount
This is the exchanged amount of the withdrawal based on wallet_currency, exchanged_wallet_currency and type. Example: 'exchanged_amount': 0.00050000'

exchanged_currency
This is the currency code will be used as the Merchant currency/wallet to send money out.

status*
This is the callback status and it is according to the order status. Possible values are the following:
Processing - Withdrawal is requested to be paid
Completed - Withdrawal is paid
Declined - Withdrawal is Declined for payment
Cancelled - Withdrawal is Cancelled for payment
Failed - Withdrawal is failed to be paid due to an error
Expired - Withdrawal is expired due time out or other reasons

ref_customer_id*
This is the customer id provided once the ewallet address was created. Example: 'customer_id': '54QFSA02901'

int_customer_id*
This is the internal customer id created in the system. Example: 'int_customer_id': '9887102901'

address
This is the wallet address the withdrawal created for. Example: 'address': '3GTMbi5iQH5nArvuEGsk6Vco9AmbmpwgkS'

destination_tag
This is the destination tag the withdrawal created for. Example: 'destination_tag': '12345678'

callback_created_at*
This is the callback timestamp in the system. Example: 'callback_created_at': '2018-11-16 13:10:59'

shop_id*
This is the internal shop id created in the system. Example: 'shop_id': '1231241342'

created_at*
This is the withdrawal timestamp in the blockchain. Example: 'created_at': '2018-11-16 13:10:59'