Migrate from the Square Employees API
This topic describes how an application migrates code from using the Square Employees API to using the Square Team API. The Team API accesses the same underlying objects as the Employees API. You do not convert an employee into a team member. Instead, you access the same object using the Team API.
Migration overview
The Square Team API replaces the Square Employees API and provides new functionality to make it easier to manage team members for Square sellers.
The Employees API is used to retrieve a single employee by ID and filtered lists of employees.
Important dates
Deprecation: 2020-08-26
Retirement: 2021-08-26
If you need help
If you need help migrating to Square APIs or need more time to complete your migration, contact Developer Support, join our Slack, or reach out to your Square Account Manager.
New features in the Team API
The Team API provides all the functionality of the Employees API and adds these features:
Wage settings. The Team API lets an application manage multiple wage levels and job titles per team member to allow for different pay rates for different jobs.
Access. The Team API supports create, update, and read access to team members in the Team Management feature of the Seller Dashboard.
Pagination. The Team API reporting endpoints provide pagination and sorting, along with location and time range filtering.
Endpoints
Team API endpoints replace the employee list and retrieve functionality in the Employees API.
Deprecated Employees API endpoint | Replacement |
---|---|
ListEmployees | SearchTeamMembers |
RetrieveEmployee | RetrieveTeamMember |
Field mapping
Fields in the Employee
object are replaced by fields in the TeamMember object. The field names are the same except the fields in the following table:
Employee field | TeamMember field | Notes |
---|---|---|
first_name | given_name | |
last_name | family_name | |
email | email_address | |
location_ids | assigned_locations |
Migrate employees to the Team API
List employees → search team members
Example employees request
A request that retrieves three active employees at a time who are assigned to locationid
:
Example Team API call
Example responses
Employees response
Team API response
Retrieve employee → retrieve team member
Employees request
Employees response
Team API request
Team API response
If you need more assistance, contact Developer Support or ask for help in the Developer Forums.