Add a new line item to a credit note.

POST
/payable_credit_notes/:credit_note_id/line_items

Path parameters

credit_note_idstringRequired

Headers

Auth
AuthorizationstringRequired
Bearer authentication of the form Bearer <token>, where token is your auth token.
x-monite-versionstringRequired
x-monite-entity-idstringRequired

The ID of the entity that owns the requested resource.

Request

This endpoint expects an object.
descriptionstringOptional

Detailed description of the line item

namestringOptional

Name or title of the line item

quantitydoubleOptional>=0

Quantity of items

subtotalintegerOptional>=0

Subtotal amount before tax in smallest currency unit

taxintegerOptional>=0<=10000

Tax percentage

tax_amountintegerOptional>=0

Tax amount in smallest currency unit

totalintegerOptional>=0

Total amount including tax in smallest currency unit

unitstringOptional

Unit of measurement

unit_priceintegerOptional>=0

Price per unit in smallest currency unit (e.g. cents)

Response

Successful Response

idstring

Unique identifier of the line item

created_atdatetime

Timestamp when the line item was created

updated_atdatetime

Timestamp when the line item was last updated

credit_note_idstring

ID of the parent credit note

created_by_user_idstringOptional

ID of the user who created the line item

descriptionstringOptional

Detailed description of the line item

namestringOptional

Name or title of the line item

quantitydoubleOptional>=0

Quantity of items

subtotalintegerOptional>=0

Subtotal amount before tax

taxintegerOptional>=0

Tax percentage

tax_amountintegerOptional>=0

Tax amount

totalintegerOptional>=0

Total amount including tax

unitstringOptional

Unit of measurement

unit_priceintegerOptional>=0

Price per unit in smallest currency unit

Errors