All accounts related paths
/users/{user_id}/accountsLists the accounts of a user specified by ID.
sortstringSort the result by created_at, updated_at.
orderstringSort order of the result list if the sort parameter is specified. Use ASC for ascending or DESC for descending sort order.
offsetintUse the offset argument to specify where in the list of results to start when returning items for a particular query.
limitintUse the limit argument to specify the maximum number of items returned.
OK
{
"meta": {
"offset": 0,
"limit": 100,
"count": 1,
"total_count": 1,
"sort": "id",
"order": "ASC"
},
"data": [
{
"id": "ad45b27f-c0e7-4cfb-b48c-a83670dbdfbd",
"created_at": "2020-08-24T14:15:22Z",
"updated_at": "2020-08-24T14:15:22Z",
"account_group_id": "fa2414ed-8d62-46fd-85ed-565a340c81d6",
"type": "TRADING",
"users": [
{
"id": "9c36af78-91a0-4174-a515-fc81214e3dab",
"type": "OWNER"
}
],
"account_number": 1,
"name": "Main account",
"status": "ACTIVE"
}
]
}/accounts/{account_id}Returns the account specified by its ID.
account_idstringrequired
Account unique identifier.
OK
{
"id": "ad45b27f-c0e7-4cfb-b48c-a83670dbdfbd",
"created_at": "2020-08-24T14:15:22Z",
"updated_at": "2020-08-24T14:15:22Z",
"account_group_id": "fa2414ed-8d62-46fd-85ed-565a340c81d6",
"type": "TRADING",
"users": [
{
"id": "9c36af78-91a0-4174-a515-fc81214e3dab",
"type": "OWNER"
}
],
"account_number": 1,
"name": "Main account",
"status": "ACTIVE"
}/accounts/{account_id}Initiates the closure request for an account specified by its ID.
account_idstringrequired
Account unique identifier.
The request has been successfully accepted and will be processed asynchronously.
Empty response
/accounts/{account_id}Updates the account specified by its ID.
namestringThe name of the account.
{
"name": "Main account"
}Account updated.
{
"id": "ad45b27f-c0e7-4cfb-b48c-a83670dbdfbd",
"created_at": "2020-08-24T14:15:22Z",
"updated_at": "2020-08-24T14:15:22Z",
"account_group_id": "fa2414ed-8d62-46fd-85ed-565a340c81d6",
"type": "TRADING",
"users": [
{
"id": "9c36af78-91a0-4174-a515-fc81214e3dab",
"type": "OWNER"
}
],
"account_number": 1,
"name": "Main account",
"status": "ACTIVE"
}/accountsReturns a list of all accounts.
sortstringSort the result by created_at, updated_atยง.
orderstringSort order of the result list if the sort parameter is specified. Use ASC for ascending or DESC for descending sort order.
offsetintUse the offset argument to specify where in the list of results to start when returning items for a particular query.
limitintUse the limit argument to specify the maximum number of items returned.
OK
{
"meta": {
"offset": 0,
"limit": 100,
"count": 1,
"total_count": 1,
"sort": "created_at",
"order": "ASC"
},
"data": [
{
"id": "ad45b27f-c0e7-4cfb-b48c-a83670dbdfbd",
"created_at": "2020-08-24T14:15:22Z",
"updated_at": "2020-08-24T14:15:22Z",
"account_group_id": "fa2414ed-8d62-46fd-85ed-565a340c81d6",
"type": "TRADING",
"users": [
{
"id": "9c36af78-91a0-4174-a515-fc81214e3dab",
"type": "OWNER"
}
],
"account_number": 1,
"name": "Main account",
"status": "ACTIVE"
}
]
}/accountsCreates an account.
user_idstringrequired
User unique identifier.
account_group_idstringrequired
Account group unique identifier.
typestringrequired
Account type.
namestringThe name of the account.
{
"user_id": "413715f2-5401-4b97-8055-034a6b879f8c",
"account_group_id": "fa2414ed-8d62-46fd-85ed-565a340c81d6",
"type": "TRADING",
"name": "Main account"
}Account created.
{
"id": "ad45b27f-c0e7-4cfb-b48c-a83670dbdfbd",
"created_at": "2020-08-24T14:15:22Z",
"updated_at": "2020-08-24T14:15:22Z",
"account_group_id": "fa2414ed-8d62-46fd-85ed-565a340c81d6",
"type": "TRADING",
"users": [
{
"id": "9c36af78-91a0-4174-a515-fc81214e3dab",
"type": "OWNER"
}
],
"account_number": 1,
"name": "Main account",
"status": "ACTIVE"
}idstringrequired
Event unique identifier
created_atstringrequired
Date and time when the event was created. RFC 3339-5, ISO8601 UTC
typestringrequired
Event type
objectobject (Account)required
idstringrequired
Account unique identifier.
created_atstringrequired
Date and time when the resource was created. RFC 3339-5, ISO8601 UTC
updated_atstringrequired
Date and time when the resource was last updated. RFC 3339-5, ISO8601 UTC
account_group_idstringrequired
Account group unique identifier.
typestringrequired
Account type.
usersarrayrequired
account_numberintrequired
The serial account number of the account in the account group.
namestringrequired
The name of the account.
statusstringrequired
The status of the account
webhook_idstringrequired
Webhook unique identifier.
{
"id": "56510309-d9de-4730-9b5b-4a0ed047f3a9",
"created_at": "2021-07-21T14:10:00.00Z",
"type": "ACCOUNT.CREATED",
"object": {
"id": "ad45b27f-c0e7-4cfb-b48c-a83670dbdfbd",
"created_at": "2020-08-24T14:15:22Z",
"updated_at": "2020-08-24T14:15:22Z",
"account_group_id": "fa2414ed-8d62-46fd-85ed-565a340c81d6",
"type": "TRADING",
"users": [
{
"id": "9c36af78-91a0-4174-a515-fc81214e3dab",
"type": "OWNER"
}
],
"account_number": 1,
"name": "Main account",
"status": "ACTIVE"
},
"webhook_id": "b838bde5-b6df-4f1f-bfc4-71d3fb01d430"
}Request has been processed successfully.
Empty response
Was this page helpful?