Skip to main content
PUT
Update a transaction for a customer

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Tenant
number
required

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Path Parameters

id
integer
required

The customer identifier

transactionId
integer
required

The transaction identifier

Body

application/json
type
enum<string>

The type.

Available options:
sale_invoice,
sale,
collection,
purchase_invoice,
payment,
opening_balance
debit
number

Debit amount.

Required range: x >= 0
credit
number

Credit amount.

Required range: x >= 0
currency_id
integer

The currency ID.

exchange_rate
number

Currency exchange rate.

Required range: x >= 0
transaction_date
string<date-time>

Transaction date (YYYY-MM-DD).

due_date
string<date-time> | null

Due date (YYYY-MM-DD).

description
string | null

The description.

Maximum string length: 65535
invoice_number
string | null

Invoice number.

Maximum string length: 255

Response

success
string
required
data
CustomerTransactionResource · object
required