Webhook URL
Description
The task of this functionality is to send data about the paid invoice to the merchant's server. This is necessary in order to automatically process the payment in the merchant's store and issue the product or service to your buyer.
The WH URL is set individually for each project as a link to the scripts and payment handlers inside the merchant's store.
Every time the invoice status changes to "Paid", the service sends a POST request to this URL in the following format:
Answer parameters
Parameter | Description |
---|---|
| Wallet ID in UUID format |
| Wallet name |
| Crypto wallet blockchain |
| Cryptocurrency of the wallet |
| Crypto wallet address |
| Project ID in UUID format |
| Project name |
| Invoice ID in UUID format |
| Invoice ID (for buyer) |
| Date and time of invoice creation (UTC) |
| Date and time until which the invoice is valid (UTC) |
| Amount in fiat currency |
| Calculated amount in invoice.currencyFiat currency using the cryptocurrency exchange rate at the time of payment. This parameter may differ from the amount in invoice.amountFiat due to the fact that the buyer may have paid the invoice not immediately after creation, but after some time. During this time, the cryptocurrency exchange rate relative to invoice.currencyFiat could change in any direction |
| Currency fiat |
| Description that was set during invoice creation |
| Service data that was set via API during invoice creation |
| Invoice status |
| Payment ID in UUID format |
| Payment amount in cryptocurrency |
| Transaction hash in blockchain |
| Date and time of the transaction in blockchain (UTC) |
Delivery frequency
At the WH URL, the server should respond with an HTTP code of 200.
If the server response will be with HTTP code different from 200, then the service will consider the notification undelivered. In this case, the service will send repeated requests to this WH URL with the following frequency:
5 minutes after the last failed delivery
After 15 minutes
After 30 minutes
After 1 hour
After 3 hours
After 6 hours
After 12 hours
After 24 hours
Further attempts to deliver the notification are stopped.
Last updated