Invoice Line Items

Update a Line Item Group

Changed on

Update a Line Item Group

put/invoices/{invoice}/line-item-groups/{id}

Request

  • Base URL
    https://sandbox.sequencehq.com/api
  • URL
    https://sandbox.sequencehq.com/api/invoices/{invoice}/line-item-groups/{id}
  • Auth
    none declared. Required headers: Authorization

Path parameters

invoicestring required

The Invoice ID

idstring required

Line Item Group 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'
indexinteger

Index (for maintaining order)

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"
  },
  "index": 10
}

Response

OK

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.00",
  "totalTax": "10.00",
  "grossTotal": "22000.00",
  "taxCategory": {
    "id": "28227c88-6dba-455f-9b30-b9c76957e610",
    "name": "VAT"
  }
}

Changes

    • warning

      deleted the header request parameter Sequence-Version

    • info

      added the new optional header request parameter sequence-version

    • info

      the / request property format was generalized from date to no format

    • info

      the / request property format was generalized from date to no format

    • breaking

      the / request property format changed from no format to date

    • breaking

      the / request property format changed from no format to date

    • warning

      deleted the header request parameter sequence-version

    • info

      added the new optional header request parameter Sequence-Version