POST
/
credit-notes
/
{creditnote}
/
line-item-groups
curl --request POST \
  --url https://eu.sequencehq.com/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"
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Path Parameters

creditnote
string
required

The CreditNote ID

Body

application/json
lineItemGroupId
string

Line Item Group ID

title
string
required

Credit Note Line Item Group Title

description
string

Credit Note Line Item Group Description

Response

201 - application/json
id
string
required

Credit Note Line Item Group ID

creditNoteId
string
required

Credit Note ID

lineItemGroupId
string

Line Item Group ID

title
string
required

Credit Note Line Item Group Title

description
string

Credit Note Line Item Group Description

index
integer
required

Index (for maintaining order)

netTotal
string
required

Net total

totalTax
string
required

Total tax

grossTotal
string
required

Gross total