add_ons
Create an add-on
Changed onThis endpoint is used to create an add-on that can be then attached to a one-off invoice.
post/add_ons
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 created
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
- info
added the non-success response with the status
- info
- 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