Skip to main content

The credit note object

Credit note

ParameterData typeDefaultDescription
credit_note_numberintNULLThe credit note number for this credit note. This is null until status is booked
statusstringdraftIs the credit note booked or not? Possible values: draft, booked
order_typestringb2bOrder type
customer_idintThe customer of the credit note
currencystringThe currency of the credit note
order_idintNULLA "manual credit note" has empty order_id
order_invoice_idintNULLA "manual credit note" has empty order_invoice_id
notesstringNULLAn optional note/comment
metaobject{}An object with {"key": "value"} with custom meta data of the order. This is used for storing custom fields
total_quantityintThe total credited quantity
price_before_discountfloatThe total price of the order before discount and ex VAT
discount_amountfloatThe total discount given as an amount ex VAT
discount_percentagefloatThe total discount given as a percentage
net_pricefloatThe total price of the order ex VAT, shipping and handling fee and after discount
shippingfloatThe shipping amount ex VAT
handling_feefloatThe handling fee amount ex VAT
vat_amountfloatThe total VAT amount
total_price_after_vatfloatThe total price of the order incl VAT
created_atdatetime
updated_atdatetime
lines.*An array of object credit note line

Credit note line

ParameterData typeDefaultDescription
product_idintThe product credited
variant_idintThe variant credited
quantityintThe quantity credited
claim_typestringreturnThe claim type of the line. Possible values: return, claim. return will return the item to inventory, claim will not
claim_cause_idintNULLThe claim cause of the line
price_before_discountfloatThe unit price of the line before discount and ex VAT
discount_amountfloatThe unit discount given as an amount ex VAT
discount_percentagefloatThe discount given as a percentage
net_pricefloatThe unit price of the line ex VAT and after discount
vat_amountfloatThe unit VAT amount
total_pricefloatThe total price of the line ex VAT. This is calculated as quantity * net_price
total_price_after_vatfloatThe total price of the line incl VAT
created_atdatetime
updated_atdatetime