cURL
curl --request POST \ --url https://api-dev.paygen.online/accounts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "ownerType": "business", "name": "USD Wallet", "type": "checking", "category": "fiat", "currency": "USD" } '
{ "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 created successfully.
Hide child attributes