Credit Note Line Items
Create a new CreditNoteLineItemGroup
Create a new CreditNoteLineItemGroup
POST
/
credit-notes
/
{creditnote}
/
line-item-groups
Header
Path
Body
curl --request POST \
--url https://eu.sequencehq.com/api/credit-notes/{creditnote}/line-item-groups \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"title": "Users"
}'
{
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"description": "Credit note for users",
"grossTotal": "101.23",
"id": "e5bc0f12-4bc1-f821-bc2d-04639a16f9ec",
"index": 2,
"lineItemGroupId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"netTotal": "51.20",
"title": "Users",
"totalTax": "2.50"
}
Headers
Authorizationrequired
string
Your API credentials. Eg. Basic {credentials}
.
Idempotency-Key
string
Specifying a unique ID for this request here lets you retry it without risk of performing the same operation twice.
Path Parameters
creditnoterequired
string
The CreditNote ID
Body
application/json
description
string
lineItemGroupId
string
titlerequired
string
Response
201 - application/json
creditNoteIdrequired
string
description
string
grossTotalrequired
string
idrequired
string
indexrequired
integer
lineItemGroupId
string
netTotalrequired
string
titlerequired
string
totalTaxrequired
string
curl --request POST \
--url https://eu.sequencehq.com/api/credit-notes/{creditnote}/line-item-groups \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"title": "Users"
}'
{
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"description": "Credit note for users",
"grossTotal": "101.23",
"id": "e5bc0f12-4bc1-f821-bc2d-04639a16f9ec",
"index": 2,
"lineItemGroupId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"netTotal": "51.20",
"title": "Users",
"totalTax": "2.50"
}