Event ingestion
Events errors
Events errors
Sent by the health check process when some events received in the previous hour do not match the validation rules.
Arguments
array
required
List of events
transaction_id for which the code attribute does not match an existing billable metric.array
required
List of events
transaction_id for which the aggregation property defined in the billable metric field_name attribute is missing or invalid.array
required
List of events
transaction_id for which the groups properties defined at the billable metric level are missing or invalid.Event error [deprecated]
Event error [deprecated]
This webhook is deprecated and no longer sent in Lago
v0.50.0-beta and above. It was sent when there was an error related to the creation of an event.Arguments
string
required
HTTP status of the error. Possible statuses are
404 or 422.string
required
HTTP error code. Possible errors are
Not found or Unprocessable entity.string
required
Error code. See next list for the description of each error code.
string
required
JSON provided at event creation.
Errors
Invoices
Draft invoice created
Draft invoice created
Finalized invoice created
Finalized invoice created
One-off invoice created
One-off invoice created
Prepaid credits added
Prepaid credits added
PDF invoice generated
PDF invoice generated
Subscriptions and fees
Fee created
Fee created
Subscription started
Subscription started
Subscription termination alert
Subscription termination alert
Subscription terminated
Subscription terminated
Subscription upgraded/downgraded
Subscription upgraded/downgraded
When a subscription undergoes an upgrade or downgrade, you will be notified via two webhook messages as follows:
subscription.terminatedfor the initial plan, which includes the propertynext_plan_codepopulated with the code of the new plan.subscription.startedfor the new plan, which includes the propertyprevious_plan_codepopulated with the code of the initial plan.
Wallets
Wallet transaction created
Wallet transaction created
Wallet transaction updated
Wallet transaction updated
External payment providers
Payment provider created
Payment provider created
Checkout URL generated
Checkout URL generated
Sent when a checkout link is issued for a customer.
Arguments
String
required
Unique identifier assigned to the customer within the Lago application.
This ID is exclusively created by Lago and serves as a unique identifier for the customer’s record within the Lago system.
String
required
The customer external unique identifier (provided by your own application).
String
required
The default payment provider attached to this customer.
String
required
URL that should be utilized to set up the payment method within the payment provider’s system.
Payment provider error
Payment provider error
This webhook is sent when there is an error related to the creation of a customer in the payment provider’s system.
Arguments
String
required
Unique identifier assigned to the customer within the Lago application.
This ID is exclusively created by Lago and serves as a unique identifier for the customer’s record within the Lago system.
String
required
The customer external unique identifier (provided by your own application).
String
required
The default payment provider attached to this customer.
String
required
The error message sent by the payment provider.
String
required
The error code sent by the payment provider.
Payment failure
Payment failure
Sent when there is an error related to the payment process.
Usually occurs when no valid payment method is defined for the customer in the payment service provider’s application.
Arguments
String
required
Unique identifer of the invoice in Lago application.
String
required
Unique identifier assigned to the customer within the Lago application.
This ID is exclusively created by Lago and serves as a unique identifier for the customer’s record within the Lago system.
String
required
The customer external unique identifier (provided by your own application).
String
required
Unique identifer of the customer in payment provider application.
String
required
The default payment provider attached to this customer.
String
required
The error message sent by the payment provider.
String
required
The error code sent by the payment provider.
Payment dispute lost
Payment dispute lost
This notification is sent whenever a dispute or a chargeback is lost within your payment provider.
Credit notes and refunds
Credit note created
Credit note created
PDF credit note generated
PDF credit note generated
Refund failure
Refund failure
This webhook is sent when there is an error related to a credit note refund of a payment previously created on a payment provider.
Arguments
String
required
Unique identifer of the credit note in Lago application.
String
required
Unique identifer of the customer in Lago application.
String
required
Unique identifer of the customer in your application.
String
required
Unique identifer of the customer in payment provider’s system.
String
required
The payment provider used to process the payment.
String
required
The error message sent by the payment provider.
String
required
The error message sent by the payment provider.