Headers
Value must be 'Bearer <token>' where <token> is an API key prefixed with 'bc_' or a JWT token.
Example:
"Bearer bc_1234567890abcdef"
Required if Authorization is a JWT token. The organization ID to operate within.
Body
application/json
The customer ID
Example:
1
The exchange rate
Example:
3.43
The credit note date
Example:
"2021-09-01"
The reference number
Example:
"123"
The credit note number
Example:
"123"
The note
Example:
"123"
The terms and conditions
Example:
"123"
The credit note is open
Example:
false
The warehouse ID
Example:
1
The branch ID
Example:
1
The credit note entries
Example:
[
{
"itemId": 1,
"quantity": 1,
"rate": 10,
"taxRateId": 1
}
]
The pdf template ID
Example:
1
The discount amount
Example:
10
The discount type
Available options:
percentage
, amount
Example:
"percentage"
Response
Credit note successfully created