cURL
curl --request POST \ --url https://api-dev.paygen.online/accounts/{accountId}/details \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "type": "bank_account" } '
{ "statusCode": 123, "message": "<string>", "data": { "_id": "<string>", "type": "<string>", "details": {}, "provider": "<string>", "isPrimary": true } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
bank_account
crypto_wallet
Account detail created successfully.
Hide child attributes