Accounts
Update an Account
This operation updates account information.
If all parameters are valid and updates have been made, it returns with status code 200. The response is the account model.
patch/v1/accounts/{account_id}
Request
- Base URLhttps://broker-api.giftcity.sandbox.in.alpaca.markets
- URLhttps://broker-api.giftcity.sandbox.in.alpaca.markets/v1/accounts/{account_id}
- AuthHTTP basic
Request body
Example request
{
"beneficiaries": [
{
"date_of_birth": "1970-01-01",
"family_name": "Smith",
"given_name": "John",
"middle_name": "P",
"relationship": "spouse",
"share_pct": "100",
"tax_id": "666-55-1234",
"tax_id_type": "USA_SSN",
"type": "primary"
}
],
"contact": {
"city": "San Mateo",
"country": "USA",
"email_address": "john.doe@example.com",
"phone_number": "+15556667788",
"postal_code": "94401",
"state": "CA",
"street_address": [
"20 N San Mateo Dr"
]
},
"disclosures": {
"immediate_family_exposed": false,
"is_affiliated_exchange_or_finra": false,
"is_control_person": false,
"is_politically_exposed": false
},
"enabled_assets": [
"us_equity",
"crypto"
],
"identity": {
"country_of_birth": "AUS",
"country_of_citizenship": "AUS",
"country_of_tax_residence": "USA",
"date_of_birth": "1990-01-01",
"family_name": "Doe",
"funding_source": [
"employment_income"
],
"given_name": "John",
"tax_id": "666-55-4321",
"tax_id_type": "USA_SSN"
},
"trusted_contact": {
"email_address": "jane.doe@example.com",
"family_name": "Doe",
"given_name": "Jane"
}
}Response
If all parameters are valid and updates have been made, it returns with status code 200. The response is the account model.
Example response
{
"account_number": "601842165",
"account_type": "trading",
"agreements": [
{
"agreement": "margin_agreement",
"ip_address": "127.0.0.1",
"revision": "16.2021.05",
"signed_at": "2022-01-21T21:25:26.579487214Z"
},
{
"agreement": "customer_agreement",
"ip_address": "127.0.0.1",
"revision": "22.2024.08",
"signed_at": "2022-01-21T21:25:26.579487214Z"
}
],
"beneficiaries": [
{
"date_of_birth": "1970-01-01",
"family_name": "Smith",
"given_name": "John",
"middle_name": "P",
"relationship": "spouse",
"share_pct": "100",
"tax_id": "xxx-xx-xxxx",
"tax_id_type": "USA_SSN",
"type": "primary"
}
],
"contact": {
"city": "San Mateo",
"country": "USA",
"email_address": "strange_elbakyan_97324509@example.com",
"phone_number": "614-555-0697",
"postal_code": "94401",
"state": "CA",
"street_address": [
"20 N San Mateo Dr"
]
},
"created_at": "2022-01-21T21:25:26.583576Z",
"crypto_status": "INACTIVE",
"currency": "USD",
"disclosures": {
"immediate_family_exposed": false,
"is_affiliated_exchange_or_finra": false,
"is_control_person": false,
"is_discretionary": false,
"is_politically_exposed": false
},
"documents": [
{
"content": "https://example.com/documents/identity-verification.jpg",
"created_at": "2022-01-21T21:25:28.184231Z",
"document_sub_type": "passport",
"document_type": "identity_verification",
"id": "d5af1585-6c60-494d-9ea5-c5df62704229"
}
],
"id": "3dcb795c-3ccc-402a-abb9-07e26a1b1326",
"identity": {
"country_of_birth": "USA",
"country_of_citizenship": "USA",
"country_of_tax_residence": "USA",
"date_of_birth": "1970-01-01",
"family_name": "Elbakyan",
"funding_source": [
"employment_income"
],
"given_name": "Strange",
"tax_id_type": "USA_SSN"
},
"last_equity": "40645.13",
"primary_account_holder_id": null,
"status": "ACTIVE",
"trusted_contact": {
"email_address": "strange_elbakyan_97324509@example.com",
"family_name": "Doe",
"given_name": "Jane"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.