curl --request POST \
--url https://dev.seqhq.io/api/credit-notes/{creditnote}/line-item-groups \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"lineItemGroupId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Users",
"description": "Credit note for users"
}
'{
"id": "e5bc0f12-4bc1-f821-bc2d-04639a16f9ec",
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"lineItemGroupId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Users",
"description": "Credit note for users",
"index": 2,
"netTotal": "51.20",
"totalTax": "2.50",
"grossTotal": "101.23"
}Create a new Credit Note Line Item Group
curl --request POST \
--url https://dev.seqhq.io/api/credit-notes/{creditnote}/line-item-groups \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"lineItemGroupId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Users",
"description": "Credit note for users"
}
'{
"id": "e5bc0f12-4bc1-f821-bc2d-04639a16f9ec",
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"lineItemGroupId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Users",
"description": "Credit note for users",
"index": 2,
"netTotal": "51.20",
"totalTax": "2.50",
"grossTotal": "101.23"
}Your API credentials. Eg. Basic {credentials}.
Use this header to select an API version
2024-07-30 The CreditNote ID
Created
Credit Note Line Item Group ID
"e5bc0f12-4bc1-f821-bc2d-04639a16f9ec"
Credit Note ID
"af60cab3-812d-4250-a051-0fb7133a00c7"
Credit Note Line Item Group Title
"Users"
Index (for maintaining order)
2
Net total
"51.20"
Total tax
"2.50"
Gross total
"101.23"
Line Item Group ID
"af60cab3-812d-4250-a051-0fb7133a00c7"
Credit Note Line Item Group Description
"Credit note for users"