curl --request POST \
--url https://api.anchorage-staging.com/v4/accounts \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
[
{
"type": "FBO",
"complianceProfileId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"isDisclosed": true,
"name": "<string>",
"externalId": "<string>",
"parentId": "<string>"
}
]
'import requests
url = "https://api.anchorage-staging.com/v4/accounts"
payload = [
{
"type": "FBO",
"complianceProfileId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"isDisclosed": True,
"name": "<string>",
"externalId": "<string>",
"parentId": "<string>"
}
]
headers = {
"Idempotency-Key": "<idempotency-key>",
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify([
{
type: 'FBO',
complianceProfileId: '3486b413-93d3-4447-afce-2b9c9dc34a32',
isDisclosed: true,
name: '<string>',
externalId: '<string>',
parentId: '<string>'
}
])
};
fetch('https://api.anchorage-staging.com/v4/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"index": 1,
"id": "<string>",
"status": "SUCCESS"
}
]
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Create accounts
Permissions required: Manage Accounts
Open one or more accounts.
An FBO or omnibus account created with a parentId is refused with one of these messages:
FBO accounts cannot have a parent accountorOMNIBUS accounts cannot have a parent account- nested accounts are not enabled for your organization.isDisclosed is inherited from the parent account- an account with a parentId must not send isDisclosed.parent account not found- no account with that id exists in your organization.parent account must be an FBO or OMNIBUS account- a segregated account cannot hold accounts.a pure OMNIBUS cannot be placed under another account- an omnibus with SELF ledgering is always top level.OMNIBUS accounts with SELF ledgering cannot have child accounts- a pure omnibus holds no accounts.an account's children must all be of one kind- the parent already holds segregated accounts.parent account is closed,parent account is closingorparent account is not open- the parent must be OPEN.parent account is frozen- the parent is frozen.an ancestor account is frozen- an account above the parent is frozen.account tree depth limit reached- the new account would sit too deep in the tree.
curl --request POST \
--url https://api.anchorage-staging.com/v4/accounts \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
[
{
"type": "FBO",
"complianceProfileId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"isDisclosed": true,
"name": "<string>",
"externalId": "<string>",
"parentId": "<string>"
}
]
'import requests
url = "https://api.anchorage-staging.com/v4/accounts"
payload = [
{
"type": "FBO",
"complianceProfileId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"isDisclosed": True,
"name": "<string>",
"externalId": "<string>",
"parentId": "<string>"
}
]
headers = {
"Idempotency-Key": "<idempotency-key>",
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify([
{
type: 'FBO',
complianceProfileId: '3486b413-93d3-4447-afce-2b9c9dc34a32',
isDisclosed: true,
name: '<string>',
externalId: '<string>',
parentId: '<string>'
}
])
};
fetch('https://api.anchorage-staging.com/v4/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"index": 1,
"id": "<string>",
"status": "SUCCESS"
}
]
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Headers
Body
Accounts to create
1- Create FBO Account
- Create Omnibus Account
- Create Segregated Account
Details of the FBO (for-benefit-of) account to create: a parent container that segregated accounts reference via parentId.
Whether the underlying segregatedAccounts are disclosed. Each value of this flag must be contractually approved — operating disclosed vs undisclosed is a contractual matter. On create, required on a top-level account and must be absent on an account with a parentId: it is inherited from the top of the branch.
Optional. The account id of the parent account this account is under. The parent must be an FBO or an omnibus with SEGREGATED ledgering. A pure omnibus (SELF ledgering) is always top level. An account's children are either all accounts that hold accounts (FBO or omnibus) or all segregated accounts.
Was this page helpful?