Skip to main content
PUT
Edit the given expense transaction.

Headers

Authorization
string
required

Value must be 'Bearer ' where is an API key prefixed with 'bc_' or a JWT token.

Example:

"Bearer bc_1234567890abcdef"

organization-id
string
required

Required if Authorization is a JWT token. The organization ID to operate within.

Path Parameters

id
number
required

Body

application/json
referenceNo
string
required

The reference number of the expense

Example:

"INV-123456"

paymentDate
string<date-time>
required

The payment date of the expense

Example:

"2021-01-01"

paymentAccountId
number
required

The payment account id of the expense

Example:

1

description
string
required

The description of the expense

Example:

"This is a description"

exchangeRate
number
required

The exchange rate of the expense

Example:

1

currencyCode
string
required

The currency code of the expense

Example:

"USD"

publish
boolean
required

The publish status of the expense

Example:

true

payeeId
number
required

The payee id of the expense

Example:

1

branchId
number
required

The branch id of the expense

Example:

1

categories
string[]
required

The categories of the expense

Example:
attachments
string[]
required

The attachments of the expense

Example:

Response

200 - undefined