Create Account
POST
/accounts
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/accounts' \
--header 'x-api-key: {{x-api-key}}' \
--header 'User-Agent: ConomyApp/2.1.1' \
--header 'Content-Type: application/json' \
--data-raw '{
"identityId": "069b63ba-a8cd-4b0e-bb2f-ffc7d71f2dac",
"externalId": "1",
"type": "real",
"currency": "PKR",
"name": "Auto Loan Account",
"parentId": "a3f87719-1dd7-46c7-9953-e0f3a71542a3"
}'
Response Response Example
201 - Example 1
{
"id": "string",
"identityId": "string",
"externalId": "string",
"type": "string",
"custody": "string",
"balance": "string",
"availableFunds": "string",
"currency": "string",
"name": "string",
"accountNumber": "string",
"accountHolder": "string",
"status": "string",
"parentId": "string",
"subAccounts": {
"balance": "string",
"availableFunds": "string"
},
"custodyBankAccount": {
"accountNumber": "string",
"bank": "string",
"currency": "string",
"typeAccount": "string",
"country": "string"
}
}
Request
Header Params
x-api-key
string
required
Example:
{{x-api-key}}
User-Agent
string
required
Example:
ConomyApp/2.1.1
Body Params application/json
Responses
Modified at 2025-01-31 18:03:59