POST
/
invoices
/
{invoice}
/
line-item-groups
curl --request POST \
  --url https://eu.sequencehq.com/api/invoices/{invoice}/line-item-groups \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Users",
  "description": "Charges for users",
  "taxCategoryId": "28227c88-6dba-455f-9b30-b9c76957e610"
}'
{
  "id": "4639a112-f821-4bc1-bc2d-6f9ece5b7c0f",
  "invoiceId": "cd11218d-fa00-4faa-8684-a43113d076a8",
  "title": "Users",
  "description": "Charges for users",
  "index": 2,
  "netTotal": "51.20",
  "totalTax": "2.50",
  "grossTotal": "101.23",
  "taxCategory": {
    "id": "28227c88-6dba-455f-9b30-b9c76957e610",
    "name": "VAT"
  }
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Sequence-Version
enum<string>

Use this header to select an API version

Available options:
2024-07-30

Path Parameters

invoice
string
required

The Invoice ID

Body

application/json
title
string
required

Line Item Group Title

Example:

"Users"

description
string

Line Item Group Description

Example:

"Charges for users"

taxCategoryId
string

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

Example:

"28227c88-6dba-455f-9b30-b9c76957e610"

Response

201
application/json
Created
id
string
required

Line Item Group ID

Example:

"4639a112-f821-4bc1-bc2d-6f9ece5b7c0f"

invoiceId
string
required

Invoice ID

Example:

"cd11218d-fa00-4faa-8684-a43113d076a8"

title
string
required

Line Item Group Title

Example:

"Users"

index
integer
required

Index (for maintaining order)

Example:

2

netTotal
string
required

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

Example:

"51.20"

totalTax
string
required

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

Example:

"2.50"

grossTotal
string
required

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

Example:

"101.23"

description
string

Line Item Group Description

Example:

"Charges for users"

taxCategory
object

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

Example:
{
  "id": "28227c88-6dba-455f-9b30-b9c76957e610",
  "name": "VAT"
}