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.
Path Parameters
Body
application/json
The id of the vendor
Example:
1
The exchange rate of the vendor credit
Example:
1
The vendor credit number
Example:
"123456"
The reference number of the vendor credit
Example:
"123456"
The date of the vendor credit
Example:
"2021-01-01"
The note of the vendor credit
Example:
"123456"
The open status of the vendor credit
Example:
true
The warehouse id of the vendor credit
Example:
1
The branch id of the vendor credit
Example:
1
The entries of the vendor credit
Example:
[
{
"itemId": 1,
"quantity": 1,
"unitPrice": 1,
"discount": 1,
"discountType": "percentage",
"accountId": 1,
"amount": 1
}
]
The attachments of the vendor credit
Example:
[{ "key": "123456" }]
The discount of the vendor credit
Example:
1
The discount type of the vendor credit
Example:
"percentage"
The adjustment of the vendor credit
Example:
1