V2 Alpha — This endpoint is part of the V2 API preview. Breaking changes may occur.
Overview
Retrieve a paginated list of user accounts belonging to the authenticated vendor. Results are automatically scoped to the vendor’s own users. Supports filtering by user type, approval status, and text search.
Vendor Token Required — This endpoint requires a vendor-scoped JWT token. Merchant tokens will receive a 403 error.
Use Cases
- Manage team access in a vendor self-service portal
- Audit active accounts and invitation status
Query Parameters
Filter by user type. One of: vendor, merchant, admin.
Filter by approval status.
Search in user email, first name, or last name (max 200 characters).
Number of items to return, forward pagination (1-100).
Cursor for forward pagination.
Number of items to return, backward pagination (1-100).
Cursor for backward pagination.
Response
{
"success": true,
"data": {
"edges": [
{
"node": {
"_id": "507f1f77bcf86cd799439011",
"email": "team@vendor.com",
"type": "vendor",
"approved": true,
"profile": {
"firstName": "Alex",
"lastName": "Smith",
"phone": "+1-555-987-6543"
},
"notifications": true,
"permission": {},
"lastLoggedIn": "2024-06-14T09:00:00.000Z",
"createdAt": "2024-01-10T08:00:00.000Z",
"updatedAt": "2024-06-14T09:00:00.000Z"
},
"cursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
}
],
"pageInfo": {
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9",
"endCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
}
}
}
Example
curl -X GET "https://api.puppetvendors.com/v2/vendor/users?approved=true&first=20" \
-H "x-access-token: YOUR_VENDOR_JWT_TOKEN"