Skip to main content
This topic describes the payment events sent by Megaport’s webhooks.

payment.card.registered

payment.card.registered is sent when a payment card is registered. The payload of this event has the following structure:
  • company_uid (string, UUID)
  • metadata (object)
    • environment (string)
  • schema_version (string)
  • timestamp (string, date-time)
  • type (string)
  • data (object)
    • auto_pay (boolean)
    • billing_market (string)
    • last_four_digits (string)
For example:

payment.card.registration.failed

payment.card.registration.failed is sent when a payment card registration failed. The payload of this event has the following structure:
  • company_uid (string, UUID)
  • metadata (object)
    • environment (string)
  • schema_version (string)
  • timestamp (string, date-time)
  • type (string)
  • data (object)
    • billing_market (string)
    • failure_reason (string)
    • last_four_digits (string)
For example:

payment.card.removed

payment.card.removed is sent when a payment card is removed. The payload of this event has the following structure:
  • company_uid (string, UUID)
  • metadata (object)
    • environment (string)
  • schema_version (string)
  • timestamp (string, date-time)
  • type (string)
  • data (object)
    • billing_market (string)
    • last_four_digits (string)
For example:

payment.card.updated

payment.card.updated is sent when a payment card is updated. The payload of this event has the following structure:
  • company_uid (string, UUID)
  • metadata (object)
    • environment (string)
  • schema_version (string)
  • timestamp (string, date-time)
  • type (string)
  • data (object)
    • auto_pay (boolean)
    • billing_market (string)
    • last_four_digits (string)
For example:

payment.failed

payment.failed is sent when a payment failed. The payload of this event has the following structure:
  • company_uid (string, UUID)
  • metadata (object)
    • environment (string)
  • schema_version (string)
  • timestamp (string, date-time)
  • type (string)
  • data (object)
    • amount (number, double)
    • billing_market (string)
    • currency (string)
    • failure_reason (string)
    • payment_date (string, date-time)
    • payment_method (string)
    • reference (string)
For example:

payment.succeeded

payment.succeeded is sent when a payment was successful. The payload of this event has the following structure:
  • company_uid (string, UUID)
  • metadata (object)
    • environment (string)
  • schema_version (string)
  • timestamp (string, date-time)
  • type (string)
  • data (object)
    • amount (number, double)
    • billing_market (string)
    • currency (string)
    • payment_date (string, date-time)
    • payment_method (string)
    • reference (string)
For example:
Last modified on August 21, 2026