Update Transaction
PUT/api/accounting/transactions/:id
Update Transaction
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
- application/json
Body
document_id string
account_id string
contact_id string
amount number
currency CurrencyEnum (string)required
Possible values: [EUR
, USD
, GBP
, TRY
]
type TransactionTypeEnum (string)required
Possible values: [income
, expense
, order
, reservation
]
reference string
description string
order_id string
reservation_id string
tips number
discount number
payment_method TransactionPaymentMethodEnums (string)
Possible values: [cash
, credit_card
, bank_transfer
, qr
]
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
id stringrequired
document_id string
account_id string
contact_id string
created_by_id stringrequired
amount number
currency CurrencyEnum (string)required
Possible values: [EUR
, USD
, GBP
, TRY
]
type TransactionTypeEnum (string)required
Possible values: [income
, expense
, order
, reservation
]
reference string
description string
paid_at date-timerequired
created_at stringrequired
updated_at stringrequired
order_id string
reservation_id string
tips number
discount number
payment_method TransactionPaymentMethodEnums (string)
Possible values: [cash
, credit_card
, bank_transfer
, qr
]
{
"id": "string",
"document_id": "string",
"account_id": "string",
"contact_id": "string",
"created_by_id": "string",
"amount": 0,
"currency": "EUR",
"type": "income",
"reference": "string",
"description": "string",
"paid_at": "2024-08-12T09:09:28.111Z",
"created_at": "string",
"updated_at": "string",
"order_id": "string",
"reservation_id": "string",
"tips": 0,
"discount": 0,
"payment_method": "cash"
}
Loading...