Documentation

Webhook Events

This section describes the available events in the Ecart Pay webhook platform. These events are automatically triggered when relevant actions occur in enabled modules.

Events Table

EventDescription
billing_information.updatedEmitted when a client's billing information is created or updated.
billing_information.deletedEmitted when a client's billing information is deleted.

Available Modules

Billing

Events related to managing client billing information.


Billing Information Updated — billing_information.updated

This event is triggered when a client creates or updates their billing information.

Payload Example

{
  "event": "billing_information.updated",
  "data": {
    "id": "67a3be71c388eff4563a0aa8",
    "provider_client_id": "67a3be71596b3124a992774a",
    "user_id": "1849",
    "provider_id": "62ab6f2172362c74e1328109",
    "account_id": "5d2d436e3199ae000449065b",
    "active": true,
    "billing_information": {
      "country_code": "ES",
      "email": "[email protected]",
      "name": "Sociedad 2",
      "business_type": "Persona Física",
      "taxid": "B02717973",
      "postal_code": "62210",
      "address1": "Camino al monte",
      "address2": "2",
      "state_code": "ES.PV.AA",
      "state_name": "Álava (ES-VI)",
      "city": "Ciudad 1",
      "provider_client_id": "67a3be71596b3124a992774a",
      "vat_info": {
        "error": "The VAT number is invalid.",
        "valid": false
      }
    },
    "created_at": "2025-02-05T19:39:29.587Z",
    "default": true,
    "updated_at": "2025-02-05T22:11:48.210Z",
    "raw": "Sociedad 2"
  }
}

Billing Information Deleted - billing_information.deleted

Payload Example

{
  "event": "billing_information.deleted",
  "data": {
    "id": "67a3be71c388eff4563a0aa8",
    "provider_client_id": "67a3be71596b3124a992774a",
    "user_id": "1849",
    "provider_id": "62ab6f2172362c74e1328109",
    "account_id": "5d2d436e3199ae000449065b",
    "active": true,
    "billing_information": {
      "country_code": "ES",
      "email": "[email protected]",
      "name": "Sociedad 2",
      "business_type": "Persona Física",
      "taxid": "B02717973",
      "postal_code": "62210",
      "address1": "Camino al monte",
      "address2": "2",
      "state_code": "ES.PV.AA",
      "state_name": "Álava (ES-VI)",
      "city": "Ciudad 1",
      "provider_client_id": "67a3be71596b3124a992774a",
      "vat_info": {
        "error": "The VAT number is invalid.",
        "valid": false
      }
    },
    "created_at": "2025-02-05T19:39:29.587Z",
    "default": true,
    "updated_at": "2025-02-05T22:11:48.210Z",
    "raw": "Sociedad 2"
  }
}