v1

latestOpenAPI 3.1.0AGPLv32026-07-26168262527.5 KB
add_ons

Create an add-on

This endpoint is used to create an add-on that can be then attached to a one-off invoice.

post/add_ons

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,
        "created_at": "2023-07-06T14:35:58Z"
      }
    ]
  }
}