cURL
curl --request PUT \ --url https://eu.sequencehq.com/api/invoices/{invoice}/line-item-groups/{id} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "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 }'
{ "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" } }
Update a Line Item Group
Your API credentials. Eg. Basic {credentials}.
Basic {credentials}
Use this header to select an API version
2024-07-30
The Invoice ID
Line Item Group ID
OK
The response is of type object.
object