Account Details
Use this endpoint to fetch details about accounts that create service requests.
GET
https://api.vectorcare.com/openapi/v1.0/accounts/{account_id}/
Note: URLs must include the trailing slash.
Response
Section titled “Response”Success (200 OK)
Section titled “Success (200 OK)”{ "company_name": "Cool Company", "service_levels": [ "ALS", "Ambulatory Van", "BLS", "CCT", "FW", "Homevisit", "RW", "SCT", "Secure Car", "Sedan", "SV", "WC" ], "facilities": [ { "name": "Helpful Hospital #1", "address": "123 Corte Madera Avenue, CA, 94925, United States" }, { "name": "Helpful Hospital #0", "address": "456 Main Street, CA, 94925, United States" } ]}Response Fields
Section titled “Response Fields”| Field | Nullable | Description |
|---|---|---|
company_name | No | Account company name |
service_levels | No | List of service level types configured by the account |
facilities | No | List of facilities (may be empty array) |
Facility Object
Section titled “Facility Object”| Field | Description |
|---|---|
name | Facility name |
address | Facility address |
When to Use
Section titled “When to Use”The Request Detail endpoint includes an account object. Use this endpoint to:
- Fetch updated account information by ID
- Build a directory of accounts you’ve received requests from
- Map account service levels to your internal values
- Discover facility locations for an account
About Accounts
Section titled “About Accounts”Accounts in VectorCare can:
- Create service requests
- Assign requests to themselves
- Broadcast requests to other accounts
When you receive a request from an account you haven’t seen before, use this endpoint to fetch their configuration and create appropriate mappings.