Receipt Invoice Callback
IIntroduction
The Invoice Callback functionality is designed to provide real-time updates about changes in the status of invoices and their associated payment transactions. By including the callback_url
parameter when creating an invoice, you can ensure that a POST request is sent to the specified URL upon changes in the invoice status or upon the completion or cancellation of a payment transaction associated with the invoice.
The callback_url
Parameter
callback_url
ParameterWhen creating an invoice, including the callback_url
parameter in your request will trigger the delivery of a POST request to the specified URL whenever there are changes in the invoice status or upon the completion or cancellation of a payment transaction linked to the invoice.
Callback Structure
The callback sent to the specified callback_url
will have the following structure:
Signature Verification
The signature
field in the callback is formed using the same algorithm as for regular API requests. You should use this signature along with the provided api-key
to verify the authenticity of the callback data.
By utilizing the Invoice Callback functionality, you can receive real-time updates about changes in the status of your invoices and payment transactions, enhancing your ability to efficiently manage and track payment operations.
Continuous Callback Delivery
POST requests are sent every minute until a 200 status code is received from the receiving callback endpoint.
Fields Sent in Callback
uid
: Transaction ID in the E-Gates system.type
: Payment type (DEPOSIT/ WITHDRAWAL).currency
: Payment currency.amount
: Payment amount.receivedAmount
: Amount credited to the balance after deducting fees.paymentId
: Transaction ID on the payment gateway.orderId
: Transaction ID specified when creating the payment.status
: Payment status (SUCCESS/CANCELED).transactionParams
: Payment parameters passed via the API during creation.createdAt
: Payment creation date in Unix Timestamp UTC format.
This documentation should assist you in effectively handling the real-time callback data from your invoices and payment transactions.
Last updated