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

KeyDatatypeRequiredDescription
X-Gusto-API-VersionstringDetermines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;company_uuid&quot;:&quot;6bf7807c-a5a0-4f4d-b2e7-3fbb4b2299fb&quot;,&quot;version&quot;:&quot;7d9753112507b9dda4fb97910f39b06e&quot;,&quot;phone_number&quot;:&quot;5825710808&quot;,&quot;uuid&quot;:&quot;04552eb9-7829-4b18-ae96-6983552948df&quot;,&quot;street_1&quot;:&quot;412 Kiera Stravenue&quot;,&quot;street_2&quot;:&quot;Suite 391&quot;,&quot;city&quot;:&quot;San Francisco&quot;,&quot;state&quot;:&quot;CA&quot;,&quot;zip&quot;:&quot;94107&quot;,&quot;country&quot;:&quot;USA&quot;,&quot;active&quot;:true,&quot;filing_address&quot;:false,&quot;mailing_address&quot;:false,&quot;created_at&quot;:&quot;2023-09-12T16:42:25.000-07:00&quot;,&quot;updated_at&quot;:&quot;2023-09-12T16:42:25.000-07:00&quot;}