Skip to main content

Create credit note

Endpoint: POST /v10/credit-notes

caution

This endpoint will by default create the credit note as a draft that can be booked later. If you want to create a booked credit note then pass status: booked a long with the data.

ParameterRequiredDefaultDescription
credit_noteYesCredit note data

Credit note data

ParameterRequiredDefaultDescription
customer_idYes, if no order_invoice_id is givenIdentification of the customer. Use this to create a manual credit note (a credit note that does not come from an invoice)
order_invoice_idYes, if no customer_id is givenIdentification of the invoice that you are trying to fully or partially credit
statusopenIs the credit note booked or not? Possible values: open, booked
notesNULLAn optional note/comment
lines.*YesAn array of object credit notes line data

Order line data

ParameterRequiredDefaultDescription
variant_idYes, if no sku or ean is givenThe variant ID of the line
skuYes, if no variant_id or ean is givenThe SKU of the line
eanYes, if no variant_id or sku is givenThe EAN of the line
quantityYesThe number of pieces for this line
claim_typereturnThe claim type of the line. Possible values: return, claim. return will return the item to inventory, claim will not

Example

POST /v10/credit-notes

{
"credit_note": {
"customer_id": 1,
"lines": [
{
"sku": "1000-100-XS",
"quantity": 1
},
{
"sku": "1000-100-S",
"quantity": 1
}
]
}
}