Create a company location
POST {{baseUrl}}/v1/companies/:company_id/locations
Company locations represent all addresses associated with a company. These can be filing addresses, mailing addresses, and/or work locations; one address may serve multiple, or all, purposes.
Since all company locations are subsets of locations, retrieving or updating an individual record should be done via the locations endpoints.
scope: companies.write
Request Body
{"phone_number"=>"<string>", "street_1"=>"<string>", "city"=>"<string>", "state"=>"<string>", "zip"=>"<string>", "street_2"=>"<string>", "country"=>"USA", "mailing_address"=>"<boolean>", "filing_address"=>"<boolean>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Gusto-API-Version | string | Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"company_uuid":"6bf7807c-a5a0-4f4d-b2e7-3fbb4b2299fb","version":"7d9753112507b9dda4fb97910f39b06e","phone_number":"5825710808","uuid":"04552eb9-7829-4b18-ae96-6983552948df","street_1":"412 Kiera Stravenue","street_2":"Suite 391","city":"San Francisco","state":"CA","zip":"94107","country":"USA","active":true,"filing_address":false,"mailing_address":false,"created_at":"2023-09-12T16:42:25.000-07:00","updated_at":"2023-09-12T16:42:25.000-07:00"}