xBillion API
Home
Home
  1. xBillion
  • xBillion
    • Introduction
    • Authentication
    • Webhhoks
    • API
      • Payments
        • Get information
        • Create payment
  1. xBillion

Webhhoks

Introduction#

Once the status of the transaction you created has been changed to one of the final statuses, xBillion can send you a webhook notification that you can use to build business logic on the merchant side.
Activating the sending of webhook notifications is very simple, just specify the webhook URL to which the notifications will be sent in your merchant settings in the xBillion dashboard.
To specify the webhook URL, go to "Merchant Settings" under the "General" tab and specify the webhook URL here.
Note that you can configure different webhook URLs for different transaction types.
webhooks.png
Important:
1.
If no webhook url is specified, no notifications will be sent for this transaction type.
2.
If the merchant's system failed to process the request from the service when sending the webhook notification, i.e. returned an HTTP status other than 200, then the system will repeat the request again at intervals of every 3 minutes for 10 hours.
3.
To authenticate webhook requests, basic authorization is used similar to the one described in section "Authentication".

Webhook request#

Fields description#

Field nameDescription
idTransaction ID on the billing side
external_idTransaction ID on the merchant side, if passed when creating the transaction
typeTransaction type, the following values are possible: payin
in_amountContains the amount and currency of the transaction when the transaction is created. A description of the object is given below, see "Amount object fields description"
out_amountContains the amount and currency of the transaction when paying on the side of the payment system. A description of the object is given below, see "Amount object fields description"
settlement_amountContains the amount and currency of the transaction in the currency of the settlement with the merchant. A description of the object is given below, see "Amount object fields description"
feeContains information about the transaction fee. A description of the object is given below, see "Fees object fields description"
serviceID of the service through which the transaction was performed
statusTransaction status, possible values: completed, rejected
reject_reasonDescription of the reason for rejecting the transaction, it is transmitted only in case of rejected status transmission
created_atDate of transaction creation in RFC 3339 format
updated_atDate of last transaction update in RFC 3339 format

Amount object fields description#

Field nameDescription
amountTransaction amount
currencyTransaction currency

Fees object fields description#

Field nameDescription
feeAmount of charged fees
currencyCurrency of charged fees
fee_payerFrom whom the fees are charged. Possible values: merchant, customer

Webhook request example:#

Previous
Authentication
Next
Get information
Built with