curl --location --request POST 'https://api.treli.co/v1/credit_notes' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
"total": "20000",
"invoice": "inv_3xEAls2tEu5Q1u66QEQx8AB0",
"number": "CN-00009",
"credit_note_reason": "returns_and_rejections"
}'{
"id": "string",
"memo": "string",
"note": "string",
"total": "string",
"number": "string",
"status": "issued",
"invoice": "string",
"invoice_number": "string",
"is_test": false,
"currency": "COP",
"customer": "string",
"subtotal": "string",
"meta_data": {},
"created_date": "2024-11-15 16:44:50",
"voided_at_date": "2019-08-24T14:15:22Z",
"credit_note_type": "pre_payment",
"credit_note_reason": "duplicate"
}