Invoice Line Items
Create a new Line Item
Latest Live API
- Account
- Billing
- Collections
- Customer
- Invoices
- Notifications
- Product
- Quote
- Taxes
- Usage
Version 2024-07-30
- Account
- Billing
- Collections
- Customer
- Invoices
- Invoice Settings
- Invoices
- Invoice Line Items
- Credit Notes
- Credit Note Line Items
- Notifications
- Product
- Quote
- Taxes
- Usage
Invoice Line Items
Create a new Line Item
Create a new Line Item
POST
/
invoices
/
{invoice}
/
line-items
curl --request POST \
--url https://eu.sequencehq.com/api/invoices/{invoice}/line-items \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"servicePeriodStart": "2022-10-20T00:00:00Z",
"servicePeriodEnd": "2022-10-24T00:00:00Z",
"servicePeriod": {
"startDate": "2022-10-20",
"endDate": "2022-10-24"
},
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"priceId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
],
"revenueClassification": "EARNED",
"creditGrantId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"revenueRecognitionMethod": "STRAIGHT_LINE"
}'
{
"id": "af60cab3-812d-4250-a051-0fb7133a00c7",
"invoiceId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"servicePeriodStart": "2022-10-20T00:00:00Z",
"servicePeriodEnd": "2022-10-24T00:00:00Z",
"servicePeriod": {
"startDate": "2022-10-20",
"endDate": "2022-10-24"
},
"index": 2,
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"netTotal": "51.20",
"totalTax": "2.50",
"grossTotal": "101.23",
"priceId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
],
"revenueClassification": "EARNED",
"creditGrantId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"productId": "dd55bf30-3b97-4644-a9fc-b15e0f59a110",
"revenueRecognitionMethod": "USAGE"
}
Headers
Your API credentials. Eg. Basic {credentials}
.
Use this header to select an API version
Available options:
2024-07-30
Path Parameters
The Invoice ID
Body
application/json
Response
201
application/json
Created
The response is of type object
.
curl --request POST \
--url https://eu.sequencehq.com/api/invoices/{invoice}/line-items \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"servicePeriodStart": "2022-10-20T00:00:00Z",
"servicePeriodEnd": "2022-10-24T00:00:00Z",
"servicePeriod": {
"startDate": "2022-10-20",
"endDate": "2022-10-24"
},
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"priceId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
],
"revenueClassification": "EARNED",
"creditGrantId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"revenueRecognitionMethod": "STRAIGHT_LINE"
}'
{
"id": "af60cab3-812d-4250-a051-0fb7133a00c7",
"invoiceId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"servicePeriodStart": "2022-10-20T00:00:00Z",
"servicePeriodEnd": "2022-10-24T00:00:00Z",
"servicePeriod": {
"startDate": "2022-10-20",
"endDate": "2022-10-24"
},
"index": 2,
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"netTotal": "51.20",
"totalTax": "2.50",
"grossTotal": "101.23",
"priceId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
],
"revenueClassification": "EARNED",
"creditGrantId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"productId": "dd55bf30-3b97-4644-a9fc-b15e0f59a110",
"revenueRecognitionMethod": "USAGE"
}