Receive a webhook
Once a purchase has been completed our server will send a POST request to the webhook url provided in the creation of a checkout.
- Sellgate does not sign webhook data meaning you should not trust the data you receive.
- Make sure you return a 200 OK status so our server stops sending requests to your server.
- You wont receive a webhook if the amount is less than the price.
Request body
Parameter | Type | Description |
---|---|---|
id | string | Unique identifier for the transaction |
checkout_id | string | Identifier for the checkout process |
payout_address | string | Cryptocurrency address for payout (your address) |
receive_address | string | Cryptocurrency address for receiving payment (our address) |
currency | string | Fiat currency code (e.g., USD) |
coin | string | Cryptocurrency code (e.g., LTC) |
amount | number | Total amount send in fiat currency |
amount_fee | number | Fee amount in fiat currency (includes all network & platform fees) |
amount_received | number | Amount you received in fiat currency |
amount_coin_received | number | Amount you received in cryptocurrency |
Example request
{
"id": "bijolz9fowdgv32x7h51uv0z",
"checkout_id": "a7119xu5x0vrl5jlsagjt12x",
"payout_address": "LLtLGA3NcfUUXuJ1DPf7vyXSyUgcY9cr3a",
"receive_address": "MQVWSBKusE7iqhohsY7qwjXjgzC5FU3qtS",
"currency": "USD",
"coin": "LTC",
"amount": 1.5,
"amount_fee": 0.01,
"amount_received": 1.49,
"amount_coin_received": 0.0225777,
}