curl --request PUT \
--url https://dev.seqhq.io/api/credit-notes/{creditnote}/line-items/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
],
"servicePeriod": {
"start": "2025-10-01",
"endInclusive": "2025-10-30"
},
"revenueRecognitionMethod": "STRAIGHT_LINE"
}
'{
"id": "af60cab3-812d-4250-a051-0fb7133a00c7",
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"lineItemId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"index": 2,
"priceId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"netTotal": "20000.00",
"totalTax": "2000.00",
"grossTotal": "22000.00",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
],
"servicePeriod": {
"start": "2025-10-01",
"endInclusive": "2025-10-30"
},
"revenueRecognitionMethod": "STRAIGHT_LINE"
}Update a Credit Note Line Item
curl --request PUT \
--url https://dev.seqhq.io/api/credit-notes/{creditnote}/line-items/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
],
"servicePeriod": {
"start": "2025-10-01",
"endInclusive": "2025-10-30"
},
"revenueRecognitionMethod": "STRAIGHT_LINE"
}
'{
"id": "af60cab3-812d-4250-a051-0fb7133a00c7",
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"lineItemId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"index": 2,
"priceId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"netTotal": "20000.00",
"totalTax": "2000.00",
"grossTotal": "22000.00",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
],
"servicePeriod": {
"start": "2025-10-01",
"endInclusive": "2025-10-30"
},
"revenueRecognitionMethod": "STRAIGHT_LINE"
}Your API credentials. Eg. Basic {credentials}.
Use this header to select an API version
2024-07-30 Item Title
"Ferraris"
Quantity
"2"
Rate per Item
"20000.10"
Tax Rate
"0.2"
IDs in external integrations
Show child attributes
[{ "key": "Xero", "value": "123" }]Item Description
"Red"
Determines whether rate is displayed as an absolute value or percentage
ABSOLUTE, PERCENTAGE "ABSOLUTE"
Billing period
Show child attributes
{
"start": "2022-10-01",
"endInclusive": "2022-10-30"
}Revenue recognition method. Valid values are: STRAIGHT_LINE, POINT_IN_TIME
STRAIGHT_LINE, USAGE, MILESTONE, POINT_IN_TIME "STRAIGHT_LINE"
OK
Credit Note Line Item ID
"af60cab3-812d-4250-a051-0fb7133a00c7"
Credit Note Line Item ID
"af60cab3-812d-4250-a051-0fb7133a00c7"
Item Title
"Ferraris"
Quantity
"2"
Rate per Item
"20000.10"
Tax Rate
"0.2"
Index (for maintaining order)
2
Net Total
"20000.00"
Total Tax
"2000.00"
Gross Total
"22000.00"
Determines whether rate is displayed as an absolute value or percentage
ABSOLUTE, PERCENTAGE "ABSOLUTE"
IDs in external integrations
Show child attributes
[{ "key": "Xero", "value": "123" }]Credit Note Line Item Group ID
"cd11218d-fa00-4faa-8684-a43113d076a8"
Line Item ID
"af60cab3-812d-4250-a051-0fb7133a00c7"
Item Description
"Red"
Price ID
"fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95"
Billing period
Show child attributes
{
"start": "2022-10-01",
"endInclusive": "2022-10-30"
}Revenue recognition method
STRAIGHT_LINE, USAGE, MILESTONE, POINT_IN_TIME "STRAIGHT_LINE"