PUT
/
credit-notes
/
{creditnote}
/
line-items
/
{id}
curl --request PUT \
  --url https://eu.sequencehq.com/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"
    }
  ]
}'
{
  "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"
    }
  ]
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Path Parameters

creditnote
string
required

The CreditNote ID

id
string
required

Credit Note Line Item ID

Body

application/json
title
string
required

Item Title

description
string

Item Description

quantity
string
required

Quantity

rate
string
required

Rate per Item

taxRate
string
required

Tax Rate

rateDisplay
enum<string>

Determines whether rate is displayed as an absolute value or percentage

Available options:
ABSOLUTE,
PERCENTAGE
externalIds
object[]
required

IDs in external integrations

Response

200 - application/json
id
string
required

Credit Note Line Item ID

creditNoteId
string
required

Credit Note Line Item ID

groupId
string

Credit Note Line Item Group ID

lineItemId
string

Line Item ID

title
string
required

Item Title

description
string

Item Description

quantity
string
required

Quantity

rate
string
required

Rate per Item

taxRate
string
required

Tax Rate

index
integer
required

Index (for maintaining order)

priceId
string

Price ID

netTotal
string
required

Net Total

totalTax
string
required

Total Tax

grossTotal
string
required

Gross Total

rateDisplay
enum<string>
required

Determines whether rate is displayed as an absolute value or percentage

Available options:
ABSOLUTE,
PERCENTAGE
externalIds
object[]
required

IDs in external integrations