v356

OpenAPI 3.0.3raw.githubusercontent.com2026-08-031733562.1 MB
Invoice Line Items

Create a new Line Item Group

Create a new Line Item Group

post/invoices/{invoice}/line-item-groups

Path parameters

invoicestring required

The Invoice ID

Headers

Authorizationstring required

Your API credentials. Eg. Basic {credentials}.

sequence-version'2024-07-30'

Use this header to select an API version

Request body

titlestring required

Line Item Group Title

descriptionstring

Line Item Group Description

taxCategoryIdstring

The tax category for all line items in this line item group

revenueRecognitionMethod'STRAIGHT_LINE' | 'USAGE' | 'MILESTONE' | 'POINT_IN_TIME'
revenueClassification'PREPAYMENT' | 'EARNED' | 'BURNDOWN'

Example request

{
  "title": "Users",
  "description": "Charges for users",
  "taxCategoryId": "28227c88-6dba-455f-9b30-b9c76957e610",
  "revenueRecognitionMethod": "STRAIGHT_LINE",
  "revenueClassification": "EARNED",
  "servicePeriod": {
    "start": "2022-10-20",
    "endInclusive": "2022-10-24"
  }
}

Response

Created

idstring required

Line Item Group ID

invoiceIdstring required

Invoice ID

titlestring required

Line Item Group Title

descriptionstring

Line Item Group Description

indexinteger required

Index (for maintaining order)

netTotalstring required

Net total, in decimal format of the Invoice's currency

totalTaxstring required

Total tax, in decimal format of the Invoice's currency

grossTotalstring required

Gross total, in decimal format of the Invoice's currency

Example response

{
  "id": "941272d1-f840-4e16-b698-0cd455c81e0e",
  "invoiceId": "cd11218d-fa00-4faa-8684-a43113d076a8",
  "title": "Cars",
  "description": "Charges for cars",
  "index": 1,
  "netTotal": "200000",
  "totalTax": "10",
  "grossTotal": "22000",
  "taxCategory": {
    "id": "28227c88-6dba-455f-9b30-b9c76957e610",
    "name": "VAT"
  }
}