Skip to main content

Documentation Index

Fetch the complete documentation index at: https://gusto-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Scope: employees:write

Attributes

AttributeRequired?Default
street_1Yes
street_2
cityYes
stateYes
zipYes
country”USA”
work_from_homefalse
Sample JSON
{
  "idempotency_key": "bcfc9744-0ab3-4ef3-ab0d-e728255d659c",
  "batch_action" : "create",
  "batch": [
    {
      "entity_type": "employee",

      "person": {
        "external_id": "employee-abc-123",
        "first_name": "Alice",
        "last_name": "Smith"
      },
      "home_address": {
        "street_1": "456 Oak Ave",
        "city": "Sunnyvale",
        "state": "CA",
        "zip": "94087"
      }
    }
  ]
}

Work from home

If you specify work_from_home as true for an employee, it is invalid to provide a work location. Gusto Embedded will create a company location using that employee’s home address and associate it as their work address. Example
{
  "idempotency_key": "bcfc9744-0ab3-4ef3-ab0d-e728255d659c",
  "batch_action" : "create",
  "batch": [
    {
      "entity_type": "employee",

      "person": {
        "external_id": "employee-abc-123",
        "first_name": "Alice",
        "last_name": "Smith"
      },
      "home_address": {
        "street_1": "456 Oak Ave",
        "city": "Sunnyvale",
        "state": "CA",
        "zip": "94087",
        "work_from_home": true
      }
      # work_address not allowed
    }
  ]
}
Check here to see how this looks in the context of a full batch example.
Person data Work address