Credit Note Line Items
Create a new Credit Note Line Item Group
Create a new Credit Note Line Item Group
POST
/
credit-notes
/
{creditnote}
/
line-item-groups
Header
Path
Body
curl --request POST \
--url https://dev.seqhq.io/api/credit-notes/{creditnote}/line-item-groups \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"description": "Credit note for users",
"lineItemGroupId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"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
Authorization
string
requiredYour API credentials. Eg. Basic {credentials}
.
Path Parameters
creditnote
string
requiredThe CreditNote ID
Body
application/json
description
string
lineItemGroupId
string
title
string
requiredResponse
201 - application/json
creditNoteId
string
requireddescription
string
grossTotal
string
requiredid
string
requiredindex
integer
requiredlineItemGroupId
string
netTotal
string
requiredtitle
string
requiredtotalTax
string
requiredcurl --request POST \
--url https://dev.seqhq.io/api/credit-notes/{creditnote}/line-item-groups \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"description": "Credit note for users",
"lineItemGroupId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"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"
}