Skip to main content
POST
Create a new Credit Note Line Item

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

sequence-version
enum<string>

Use this header to select an API version

Available options:
2024-07-30

Path Parameters

creditnote
string
required

The CreditNote ID

Body

application/json
creditNoteId
string
required

Credit Note Line Item ID

Example:

"af60cab3-812d-4250-a051-0fb7133a00c7"

title
string
required

Item Title

Example:

"Ferraris"

quantity
string
required

Quantity

Example:

"2"

rate
string
required

Rate per Item

Example:

"20000.10"

taxRate
string
required

Tax Rate

Example:

"0.2"

externalIds
object[]
required

IDs in external integrations

Example:
groupId
string

Credit Note Line Item Group ID

Example:

"cd11218d-fa00-4faa-8684-a43113d076a8"

lineItemId
string

Line Item ID

Example:

"af60cab3-812d-4250-a051-0fb7133a00c7"

description
string

Item Description

Example:

"Red"

rateDisplay
enum<string>

Determines whether rate is displayed as an absolute value or percentage

Available options:
ABSOLUTE,
PERCENTAGE
Example:

"ABSOLUTE"

servicePeriod
object

Billing period

Example:
revenueRecognitionMethod
enum<string>

Revenue recognition method. Valid values are: STRAIGHT_LINE, POINT_IN_TIME

Available options:
STRAIGHT_LINE,
USAGE,
MILESTONE,
POINT_IN_TIME
Example:

"STRAIGHT_LINE"

revenueClassification
enum<string>

Revenue classification

Available options:
PREPAYMENT,
EARNED,
BURNDOWN
Example:

"EARNED"

productId
string

Product ID

Example:

"fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95"

invoiceLineItemIds
string[]

Invoice line items that will be refunded by the created credit note line item. Defaults to list of lineItemId if left empty

Example:

Response

Created

id
string
required

Credit Note Line Item ID

Example:

"af60cab3-812d-4250-a051-0fb7133a00c7"

creditNoteId
string
required

Credit Note Line Item ID

Example:

"af60cab3-812d-4250-a051-0fb7133a00c7"

title
string
required

Item Title

Example:

"Ferraris"

quantity
string
required

Quantity

Example:

"2"

rate
string
required

Rate per Item

Example:

"20000.10"

taxRate
string
required

Tax Rate

Example:

"0.2"

index
integer
required

Index (for maintaining order)

Example:

2

netTotal
string
required

Net Total

Example:

"20000.00"

totalTax
string
required

Total Tax

Example:

"2000.00"

grossTotal
string
required

Gross Total

Example:

"22000.00"

rateDisplay
enum<string>
required

Determines whether rate is displayed as an absolute value or percentage

Available options:
ABSOLUTE,
PERCENTAGE
Example:

"ABSOLUTE"

externalIds
object[]
required

IDs in external integrations

Example:
groupId
string

Credit Note Line Item Group ID

Example:

"cd11218d-fa00-4faa-8684-a43113d076a8"

lineItemId
string

Line Item ID

Example:

"af60cab3-812d-4250-a051-0fb7133a00c7"

description
string

Item Description

Example:

"Red"

priceId
string

Price ID

Example:

"fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95"

servicePeriod
object

Billing period

Example:
revenueRecognitionMethod
enum<string>

Revenue recognition method

Available options:
STRAIGHT_LINE,
USAGE,
MILESTONE,
POINT_IN_TIME
Example:

"STRAIGHT_LINE"

revenueClassification
enum<string>

Revenue classification

Available options:
PREPAYMENT,
EARNED,
BURNDOWN
Example:

"EARNED"

productId
string

Product ID

Example:

"fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95"