Update Account
PUT/api/accounting/accounts/:id
Update Account
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
- application/json
Body
name stringrequired
number string
currency CurrencyEnum (string)required
Possible values: [EUR
, USD
, GBP
, TRY
]
bank_name string
bank_phone string
bank_address string
enabled booleanrequired
Responses
- 200
- 5XX
Successful response
- application/json
- Schema
- Example (from schema)
Schema
id stringrequired
created_by_id stringrequired
name stringrequired
number stringnullablerequired
currency CurrencyEnum (string)required
Possible values: [EUR
, USD
, GBP
, TRY
]
bank_name stringnullablerequired
bank_phone stringnullablerequired
bank_address stringnullablerequired
enabled booleanrequired
created_at date-timerequired
updated_at date-timerequired
deleted_at date-timenullablerequired
total integerrequired
{
"id": "2",
"created_by_id": "1",
"name": "YAPI KREDI (KMH)",
"number": "TR3284972923473",
"currency": "EUR",
"bank_name": "yapı kredi",
"bank_phone": 2521111111,
"bank_address": "İstanbul",
"enabled": true,
"created_at": "2024-07-16T20:35:36.937+03:00",
"updated_at": "2024-07-16T20:35:36.937+03:00",
"deleted_at": "2024-07-16T20:35:36.937+03:00",
"total": 0
}
Unexpected error.
Loading...