Create customer account
Changed onCreates a new customer account. The pair (participant_code, account_label) is unique per participant and is used as idempotency check rather than X-Request-Id; submitting the same pair a second time returns an error rather than creating a duplicate.
Request
- Base URLhttps://api.cert.zerohash.com
- URLhttps://api.cert.zerohash.com/accounts
- AuthAPI key in header X-SCX-API-KEY and API key in header X-SCX-PASSPHRASE
Headers
HMAC-SHA256 signature of the request, base64-encoded. See the Authentication guide for the exact signing formula.
Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.
Request body
Example request
{
"participant_code": "PAR001",
"account_label": "custom-account-label",
"tier": "pro",
"type": "individual",
"financial_advisors": [
"PAR003"
]
}Response
Creating a customer account is an asynchronous process that does several operations in the background after the response is returned. Customers are advised to listen to the customer_account_status_changed webhook event to be notified when the account is active and ready to use.
Example response
{
"message": {
"zrn": "zrn:zh:us:accounts:customer:c761fc96-5c44-40d4-8eb2-3fcd5d06754b",
"participant_code": "PAR001",
"platform_code": "PLAT01",
"account_label": "custom-account-label",
"account_group": "XYZ456",
"type": "individual",
"tier": "pro",
"status": "open",
"tenants": [
"PAR002"
],
"financial_advisors": [
"PAR003"
]
}
}Changes
- breaking
removed
subschema #1: Individual Customer Accountsubschema #2: Business Customer Accountsubschema #3: Joint Tenant in Common Accountsubschema #4: Joint Tenant With Right of Survivorship Accountsubschema #5: Trust Accountsubschema #6: UTMA Accountsubschema #7: Customer Account - All Fieldsfrom the request bodyoneOflist - info
added
subschema #1: Individual Customer Accountsubschema #2: Business Customer Accountsubschema #3: Joint Tenant in Common Accountsubschema #4: Joint Tenant With Right of Survivorship Accountsubschema #5: Trust Accountsubschema #6: UTMA Accountsubschema #7: Customer Account - All Fieldsto the request bodyanyOflist
- breaking