Update Account
Updates an existing account's properties, including its name, default flag, and status. Returns the updated account details.
Endpoint
PATCH/v2/account/{id}
Link
Request
Path Parameters
id
string
Account ID to update.
Yes
"UhcPVBEpjmtR"
Headers
Authorization
Bearer <JWT>
Yes
Content-Type
application/json
Yes
Accept
application/json
Yes
Request Body (JSON)
All fields are optional - only include the fields you want to update.
name
string
New account name.
"New Account Name"
currencyIso
string
New currency code (ISO 4217, e.g., USD).
"EUR"
isDefault
boolean
Set as default account (true/false).
true
status
string
New account status:
- NEW
- PRE_MODERATION
- MODERATION
- ACCEPTED
- REJECTED
- BANNED
- PROCESSING
"ACCEPTED"
Example Request Body:
json
Response (200 OK)
Returns the updated Account entity v2 object in JSON format (same structure as Get Account by ID).
Key Response Fields
name: Updated account namecurrencyIso: Updated currency (if changed)isDefault: New default statusstatus: Updated account statusupdatedAt: New timestamp reflecting update time
Example Response:
json
Error Cases
Invalid Status Transition:
json
Currency Change Restrictions:
json
Account Not Found:
json
Notes
Partial Updates: Only included fields are modified; omitted fields remain unchanged.
Immutable Fields: Some fields (e.g.,
customerId) cannot be updated.Status Flow: Ensure valid status transitions (e.g.,
NEW→ACCEPTEDis valid, butBANNED→ACCEPTEDmay be blocked).
Examples
Real request
Real response
200 OK
Last updated

