curl -X POST "$BASE_URL/accounts" \
-H "Authorization: Basic $AUTH" \
-H "Content-Type: application/json" \
-d '{
"account_type": "trading",
"contact": {
"email_address": "user@example.com",
"phone_number": "+14155551234",
"street_address": ["456 Oak Avenue"],
"city": "San Francisco",
"state": "CA",
"postal_code": "94102",
"country": "US"
},
"identity": {
"first_name": "Jane",
"last_name": "Doe",
"date_of_birth": "1990-05-15",
"tax_id": "987-65-4321",
"tax_id_type": "SSN",
"country_of_citizenship": "US",
"country_of_birth": "US",
"country_of_tax_residence": "US",
"funding_source": ["employment_income"]
},
"disclosures": {
"is_control_person": false,
"is_affiliated_exchange_or_finra": false,
"is_politically_exposed": false,
"immediate_family_exposed": false
},
"agreements": [
{
"agreement": "account_agreement",
"agreed": true,
"signed_at": "2025-06-15T10:30:00Z",
"ip_address": "203.0.113.42"
},
{
"agreement": "customer_agreement",
"agreed": true,
"signed_at": "2025-06-15T10:30:00Z",
"ip_address": "203.0.113.42"
}
]
}'