Retrieve team member
GET
/v2/team-members/{team_member_id}
Retrieve a TeamMember
object for the given TeamMember.id
.
Learn about Troubleshooting the Teams API.
Name | Description |
---|---|
team_
Required
|
The ID of the team member to retrieve. |
Response Fields
Name | Description |
---|---|
team_
|
The successfully retrieved |
errors
|
The errors that occurred during the request. |
Examples
GET
/v2/team-members/{team_member_id}
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/team-members/1yJlHapkseYnNPETIU1B \
-H 'Square-Version: 2021-01-21' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json'
Response JSON
{
"team_member": {
"id": "1yJlHapkseYnNPETIU1B",
"reference_id": "reference_id_1",
"is_owner": false,
"status": "ACTIVE",
"given_name": "Joe",
"family_name": "Doe",
"email_address": "joe_doe@gmail.com",
"phone_number": "+14159283333",
"created_at": "2020-06-11T22:55:45.867Z",
"updated_at": "2020-06-11T22:55:45.867Z",
"assigned_locations": {
"assignment_type": "EXPLICIT_LOCATIONS",
"location_ids": [
"GA2Y9HSJ8KRYT",
"YSGH2WBKG94QZ"
]
}
}
}