Create accounts
1 Create the Organization's Account
POST
request:Request
curl --location --request POST 'https://api.conomyhq.com/sandbox/accounts' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'User-Agent: <YOUR_APPLICATION_NAME>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Accept: */*' \
--header 'Host: api.conomyhq.com' \
--header 'Connection: keep-alive' \
--data-raw '{
"identityId": "<ORGANIZATION_ID>",
"externalId": "lybkpay-2",
"type": "CHECKING_ACCOUNT",
"currency": "CLP",
"name": "CLP account",
"custody": "BANK_ACCOUNT"
}'
Response
{
"id": "679d2e934bc4149871723cef",
"identityId": "679d26c44a21df7584b38e11",
"externalId": "lybkpay-2",
"type": "CHECKING_ACCOUNT",
"custody": "",
"balance": "0",
"availableFunds": "0",
"currency": "CLP",
"accountHolder": "OPERATOR 1",
"status": "ACTIVE",
"accountNumber": "173835432305679d26c44a21df7584b38e11",
"name": "CLP account",
"parentId": "",
"accruedYield": "",
"monthlyYield": "",
"createdAt": "0001-01-01T00:00:00Z",
"updatedAt": "0001-01-01T00:00:00Z"
}
2 Create the User-1's Account
POST
request:Request
curl --location --request POST 'https://api.conomyhq.com/sandbox/accounts' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'User-Agent: <YOUR_APPLICATION_NAME>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Accept: */*' \
--header 'Host: api.conomyhq.com' \
--header 'Connection: keep-alive' \
--data-raw '{
"identityId": "<USER_1_ID>",
"externalId": "lybkpay-3",
"type": "CHECKING_ACCOUNT",
"currency": "CLP",
"name": "CLP account",
"custody": "BANK_ACCOUNT"
}'
Response
3 Create the User-2's Account
POST
request:Request
curl --location --request POST 'https://api.conomyhq.com/sandbox/accounts' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'User-Agent: <YOUR_APPLICATION_NAME>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Accept: */*' \
--header 'Host: api.conomyhq.com' \
--header 'Connection: keep-alive' \
--data-raw '{
"identityId": "<USER_2_ID>",
"externalId": "lybkpay-4",
"type": "CHECKING_ACCOUNT",
"currency": "CLP",
"name": "CLP account",
"custody": "BANK_ACCOUNT"
}'
Response
Modified at 2025-02-02 21:17:11