API - Create A Credit Note -
Hello,
Here is my call
const data = {
customer_id: '2497000000240373',
date: '2023-05-18',
creditnote_number: 'CN-00008',
ignore_auto_number_generation: false,
line_items: [
{
description: 'prorated amount for items',
code: 'au_currency',
quantity: 1,
price: 5
}
]
}
I can't see what I am doing wrong,