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
List of events
transaction_id
for which the code
attribute does not match an existing billable metric.List of events
transaction_id
for which the aggregation property defined in the billable metric field_name
attribute is missing or invalid.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
HTTP status of the error. Possible statuses are
404
or 422
.HTTP error code. Possible errors are
Not found
or Unprocessable entity
.Error code. See next list for the description of each error code.
JSON provided at event creation.
Errors
Error | Code | Description |
---|---|---|
404 | billable_metric_not_found | No billable metric matches the given code |
404 | customer_not_found | No customer matches the external id |
404 | subscription_not_found | No subscription matches the given external subscription id |
422 | invalid_argument | No subscription matches the given external subscription id |
422 | invalid_recurring_resource | Provided recurring resource for persisted event is invalid |
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.terminated
for the initial plan, which includes the propertynext_plan_code
populated with the code of the new plan.subscription.started
for the new plan, which includes the propertyprevious_plan_code
populated 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
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.
The customer external unique identifier (provided by your own application).
The default payment provider attached to this customer.
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
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.
The customer external unique identifier (provided by your own application).
The default payment provider attached to this customer.
The error message sent by the payment provider.
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
Unique identifer of the invoice in Lago application.
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.
The customer external unique identifier (provided by your own application).
Unique identifer of the customer in payment provider application.
The default payment provider attached to this customer.
The error message sent by the payment provider.
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
Unique identifer of the credit note in Lago application.
Unique identifer of the customer in Lago application.
Unique identifer of the customer in your application.
Unique identifer of the customer in payment provider’s system.
The payment provider used to process the payment.
The error message sent by the payment provider.
The error message sent by the payment provider.