add_ons
Update an add-on
Changed onThis endpoint is used to update an existing add-on.
put/add_ons/{code}
Request
- Base URLhttps://api.getlago.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"add_on": {
"name": "Setup Fee",
"invoice_display_name": "Setup Fee (SF1)",
"code": "setup_fee",
"amount_cents": 50000,
"amount_currency": "USD",
"description": "Implementation fee for new customers.",
"tax_codes": [
"french_standard_vat"
]
}
}Response
Add-on updated
Example response
{
"add_on": {
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "Setup Fee",
"invoice_display_name": "Setup Fee (SF1)",
"code": "setup_fee",
"amount_cents": 50000,
"amount_currency": "USD",
"description": "Implementation fee for new customers.",
"created_at": "2022-04-29T08:59:51Z",
"taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "TVA",
"code": "french_standard_vat",
"description": "French standard VAT",
"rate": 20,
"applied_to_organization": true,
"applied_to_billing_entities_codes": [
"acme_corp",
"foo_bar"
],
"created_at": "2023-07-06T14:35:58Z"
}
]
}
}Changes
- warning
the
/request property's min was set to1.00 - warning
added the new
SYPenum value to the/response property for the response status - warning
added the new
TNDenum value to the/response property for the response status - info
added the new
SYPenum value to the request property/ - info
added the new
TNDenum value to the request property/ - info
added the optional property
///to the response with the status - info
the response property
/became required for the status - info
the response property
///became required for the status
- warning