Skip to main content
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request POST "$LAGO_URL/api/v1/invoices" \
  --header "Authorization: Bearer $API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "invoice": {
      "external_customer_id": "hooli_1234",
      "currency": "USD",
      "fees": [
        {
          "add_on_code": "setup_fee",
          "units": 2.5,
          "unit_amount_cents": 1200,
          "description": "This is a description.",
          "tax_codes": ["french_standard_vat]
        }
      ]
    }
  }'