- 2xx: Success - The request was processed successfully.
- 4xx: Client Error - There was an issue with the request, such as missing parameters, invalid input, or unauthorized access.
- 5xx: Server Error - An error occurred on Lago’s side while processing the request.
Error fields
The HTTP status code.
A generic error message.
A generic error code representing the type of error.
The code of the payment provider that caused the error when applicable.
An object containing the error details. It usually maps the field names that caused the error to an array of
error messages/codes.For specific errors, such as a payment provider error, the
error_details may include other fields.Error codes
bad_request_error
coupons_must_be_an_arraysubscriptions_must_be_an_object
unauthorized_error
Unauthorizedexpired_jwt_token
forbidden_error
feature_unavailablefeature_not_available[mode]_action_not_allowed_for_[resource_name]
not_found_error
invoice_not_foundcustomer_not_foundsubscription_not_foundbilling_entity_not_foundplan_not_foundadd_on_not_foundcoupon_not_foundtax_not_foundfeature_not_foundprivilege_not_foundbillable_metric_not_foundwebhook_endpoint_not_foundapi_log_not_foundactivity_log_not_foundpayment_not_foundpayment_receipt_not_foundfee_not_foundevent_not_foundcredit_note_not_foundwallet_not_foundwallet_transaction_not_foundlifetime_usage_not_foundalert_not_foundentitlement_not_found
method_not_allowed_error
feature_not_supportedinvalid_type_or_statuscredit_note_voidedno_voidable_amountinvoices_not_overdueinvoices_have_different_currenciesinvoices_not_ready_for_payment_processingpremium_integration_missingmetadata_on_draft_invoicepayment_status_update_on_draft_invoicenot_voidableis_draftinvalid_statuslast_admincannot_revoke_own_membershipenabled_authentication_methods_requiredsignup_disabledplan_overlappingwallet_not_activeis_succeededno_active_subscriptionstatus_not_voidedinvoice_not_finalizedinvoice_payment_already_succeededinvoice_due_date_in_futureinvoice_dispute_lostpayment_processor_is_currently_handling_paymentinvoiced_feeeu_tax_not_applicablenot_disputableonly_one_limitation_type_per_coupon_allowed