cURL
curl --request PUT \ --url https://api-dev.paygen.online/accounts/{accountId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "ownerType": "user", "ownerId": "<string>", "name": "<string>", "type": "savings", "category": "fiat", "status": "active", "currency": "<string>", "network": "<string>", "balance": 123, "canDebit": true, "canCredit": true } '
{ "statusCode": 123, "message": "<string>", "data": { "_id": "<string>", "ownerType": "<string>", "ownerId": "<string>", "client": "<string>", "name": "<string>", "type": "<string>", "category": "<string>", "status": "<string>", "currency": "<string>", "network": "<string>", "balance": 123, "canDebit": true, "canCredit": true } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
user
business
system
provider
savings
treasury
checking
credit
fiat
crypto
active
inactive
suspended
closed
Account updated successfully.
Hide child attributes