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 reference number of the expense
Example:
"INV-123456"
The payment date of the expense
Example:
"2021-01-01"
The payment account id of the expense
Example:
1
The description of the expense
Example:
"This is a description"
The exchange rate of the expense
Example:
1
The currency code of the expense
Example:
"USD"
The publish status of the expense
Example:
true
The payee id of the expense
Example:
1
The branch id of the expense
Example:
1
The categories of the expense
Example:
[
{
"index": 1,
"expenseAccountId": 1,
"amount": 100,
"description": "This is a description",
"landedCost": true,
"projectId": 1
}
]
The attachments of the expense
Example:
[{ "key": "123456" }]