Partner API
Locations
List partner locations
Retrieve a paginated list of partner locations with optional filtering
get/{partnerId}/locations
Request
- Base URL: https://us-central1-sutra-prod.cloudfunctions.net/partnerApi/v0
- URL: https://us-central1-sutra-prod.cloudfunctions.net/partnerApi/v0/{partnerId}/locations
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Path parameters
partnerIdstring required
Example:partner123
Partner identifier
Query parameters
limitinteger
Example:10
Number of items to return (default 10, max 100)
start_afterstring
Example:item123
ID to start after for pagination
updated_at_minstring date-time
Example:2024-03-20T00:00:00Z
Filter by minimum updated timestamp (ISO 8601)
updated_at_maxstring date-time
Example:2024-03-21T23:59:59Z
Filter by maximum updated timestamp (ISO 8601)
idsstring
Example:id1,id2,id3
Comma-separated list of IDs to fetch
Response
Successful response
Example response
{
"items": [
{
"id": "loc123",
"name": "Main Studio",
"description": "Primary location",
"address": {
"line1": "123 Main St",
"line2": "Suite 100",
"city": "San Francisco",
"state": "CA",
"postal_code": "94105",
"country": "US"
},
"updated_at": "2024-03-20T12:00:00Z"
}
],
"pagination": {
"limit": 10,
"nextStartAfterId": "item123"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.