Payment webhooks

In this page you find the currently supported payment events and their respective payload.

Payment authorized

AttributeDatatypeDescription
idInt64Id for the payment
event_nameStringpayment_done
total_amountArrayThe total amount in the payment which has two sub-attributes currency and amount
productsJSON ArrayArray of distinct products
urlStringPath to the payment page
nameStringName of the payment
typeStringThere will be two types of payments, either payment_link or payment_request




Following are other inner nodes of the payment_done event payload describing products, buyer_information, billing_information and shipping_information.

Products information

AttributeDatatypeDescription
nameStringName of the product
quantityInt64Quantity of the product
unit_pricesJSON ArrayPrice of the unit including taxes and currency

Parameters for unit_prices
unit_prices is a JSON array that has the parameters mentioned below.

AttributeDatatypeDescription
unit_prices[currency]StringExchange currency for the payment.
unit_prices[price_before_tax]floatPrice before taxes are included.
unit_prices[tax_rate]floatTax rate for the product.
unit_prices[price_including_tax]floatPrice after including taxes.

Buyer information
The buyer_information object includes email, billing_information and shipping_information, the attributes for them are mentioned below in tables.

AttributeDatatypeDescription
emailStringEmail of the buyer

Billing information
It defines the billing address and details.

AttributeDatatypeDescription
nameStringName of the buyer
streetStringName of the street where the buyer resides
numberStringStreet number
zip_codeStringZip code of the area
cityStringCity where the buyer is residing
countryStringCountry of the buyer

Shipping information
It defines the information where the order is to be shipped.

AttributeDatatypeDescription
nameStringName of the receiver
streetStringStreet name
numberStringStreet number
zip_codeStringZip code of the area
cityStringCity of shipping
countryStringCountry of shipping

Webhook payload sample

{
  "id": 739816,
  "event_name": "payment_done",
  "date": "2023-03-09T14:06:58.005Z",
  "type": "payment_link",
  "name": "Test release 09/03",
  "url": "https://pay.brevo.com/377a9c15-d063-49f2-bb72-2b5567b735da",
  "total_amount": {
    "currency": "EUR",
    "amount": 1
  },
  "products": [
    {
      "name": "Article 1",
      "quantity": 1,
      "unit_prices": {
        "currency": "EUR",
        "price_before_tax": 0.83,
        "tax_rate": 20,
        "price_including_tax": 1
      }
    }
  ],
  "buyer_information": {
    "email": "[email protected]",
    "billing_information": {
      "name": "Alexandre Hudavert",
      "street": "Rue Louis Blanc",
      "number": "61",
      "zip_code": "75010",
      "city": "Paris",
      "country": "France"
    },
  "shipping_information": {
    "name": "Hudavert",
    "street": "Rue de Madrid",
    "number": "7",
    "zip_code": "75008",
    "city": "Paris",
    "country": "France"
    }
 }

Payment link created (soon to be supported)

AttributeDatatypeDescription
currencyStringExchange Currency for the payment
productsInt64Array of distinct products
payment_link_idStringId for the payment link

Payment not authorized (soon to be supported)

AttributeDatatypeDescription
event_nameStringName of the event
total_amountfloatThe total amount in the payment
currencyStringThe exchange currency of the payment
productsInt64Array of distinct products
payment_link_idStringId for the payment link
quantityInt64Quantity of the products