Download OpenAPI specification:Download
Summary of Westfield Staff Access API endpoints.
Returns a list of staff limited to 100 enabled staff by default
q | string Search string |
role | string Limits the result to staff with a specific role |
Authorization required | string^[bB]earer [A-Za-z0-9]{64}$ Staff Access token type and token value. |
[- {
- "id": 0,
- "uuid": "string",
- "okta_id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "email": "string",
- "confirmation_token": "string",
- "confirmed_at": "string",
- "updated_at": "string",
- "created_at": "string",
- "roles": [
- {
- "type": "string",
- "access_attributes": {
- "centres": [
- "string"
], - "retailer_id": 0
}
}
], - "additional_permissions": "string",
- "metadata": { },
- "disabled_at": "string"
}
]
Authorization required | string^[bB]earer [A-Za-z0-9]{64}$ Staff Access token type and token value. |
required | object (Staff) Staff |
{- "staff": {
- "id": 0,
- "uuid": "string",
- "okta_id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "email": "string",
- "confirmation_token": "string",
- "confirmed_at": "string",
- "updated_at": "string",
- "created_at": "string",
- "roles": [
- {
- "type": "string",
- "access_attributes": {
- "centres": [
- "string"
], - "retailer_id": 0
}
}
], - "additional_permissions": "string",
- "metadata": { },
- "disabled_at": "string"
}
}
{- "id": 0,
- "uuid": "string",
- "okta_id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "email": "string",
- "confirmation_token": "string",
- "confirmed_at": "string",
- "updated_at": "string",
- "created_at": "string",
- "roles": [
- {
- "type": "string",
- "access_attributes": {
- "centres": [
- "string"
], - "retailer_id": 0
}
}
], - "additional_permissions": "string",
- "metadata": { },
- "disabled_at": "string"
}
Request user versions.
uuid required | integer User identifier. Request the user version with uuid. |
page | integer Default: 1 Results page number. Specific page of results to request when paginating. |
per_page | integer <= 100 Default: 10 Results per page. Number of items per result set when paginating. |
sort | Array of strings Sort results by one or more fields. Change sort order by adding desc or asc after field name. |
version_action | string Enum: "create" "update" "delete" Version Action. Request the retailer versions with action. |
Authorization required | string^[bB]earer [A-Za-z0-9]{64}$ Staff Access token type and token value. |
{- "data": [
- {
- "whodunnit": "string",
- "event": "create",
- "created_at": "2018-03-21T21:43:56Z"
}
], - "errors": { },
- "meta": {
- "api_version": "1",
- "deprecation_information": {
- "deprecated_at": "2018-03-21T00:00:00Z",
- "goes_away_at": "2018-06-21T00:00:00Z",
}, - "origin": "CenterDirectoryService",
- "page": 1,
- "page_count": 10,
- "per_page": 25,
- "total": 100
}
}
Returns a staff
uuid required | string |
Authorization required | string^[bB]earer [A-Za-z0-9]{64}$ Staff Access token type and token value. |
{- "id": 0,
- "uuid": "string",
- "okta_id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "email": "string",
- "confirmation_token": "string",
- "confirmed_at": "string",
- "updated_at": "string",
- "created_at": "string",
- "roles": [
- {
- "type": "string",
- "access_attributes": {
- "centres": [
- "string"
], - "retailer_id": 0
}
}
], - "additional_permissions": "string",
- "metadata": { },
- "disabled_at": "string"
}
Request update of a staff from JSON data in the request body.
uuid required | string User id. |
Authorization required | string^[bB]earer [A-Za-z0-9]{64}$ Staff Access token type and token value. |
required | object (Staff) Staff |
{- "staff": {
- "id": 0,
- "uuid": "string",
- "okta_id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "email": "string",
- "confirmation_token": "string",
- "confirmed_at": "string",
- "updated_at": "string",
- "created_at": "string",
- "roles": [
- {
- "type": "string",
- "access_attributes": {
- "centres": [
- "string"
], - "retailer_id": 0
}
}
], - "additional_permissions": "string",
- "metadata": { },
- "disabled_at": "string"
}
}
{- "data": { },
- "errors": {
- "access_token": [
- "string"
], - "x_api_secret": [
- "string"
], - "params": { }
}, - "meta": {
- "api_version": "1",
- "deprecation_information": {
- "deprecated_at": "2018-03-21T00:00:00Z",
- "goes_away_at": "2018-06-21T00:00:00Z",
}, - "origin": "CenterDirectoryService",
- "page": 1,
- "page_count": 10,
- "per_page": 25,
- "total": 100
}
}
If you send the grant type client_credentials
you must also provide the client_id
and client_secret
. If you send the grant type password
you must also provide the username
and password
; you may optionally provide client_id
and client_secret
. If you send the grant type as authorization_code
, you must provide the client_id
and client_secret
along with the code
and redirect_uri
.
grant_type required | string Grant Type |
client_id required | string OAuth client identifier |
client_secret required | string OAuth client secret |
username | string Username |
password | string Password |
redirect_uri | string The redirect_uri specified when registering the app and in the /authorize call (must match exactly). |
code | string The code parameter returned by the /authorize step. |
scope | string OAuth Scope |
{- "grant_type": "string",
- "client_id": "string",
- "client_secret": "string",
- "username": "string",
- "password": "string",
- "redirect_uri": "string",
- "code": "string",
- "scope": "string"
}
{- "access_token": "string",
- "refresh_token": "string",
- "token_type": "bearer",
- "expires_in": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "scope": "string"
}
Authorization required | string^Basic [A-Za-z0-9]+$ Encode with base64 client_id:client_secret. Then for the authentication use Basic space and encoded client_id:client_secret. Example: "Basic Encode_Base64(client_id:client_secret)" |
token required | string Access token |
{- "token": "string"
}
{- "data": { },
- "errors": {
- "token": [
- "string"
]
}, - "meta": {
- "api_version": "1",
- "deprecation_information": {
- "deprecated_at": "2018-03-21T00:00:00Z",
- "goes_away_at": "2018-06-21T00:00:00Z",
}, - "origin": "CenterDirectoryService",
- "page": 1,
- "page_count": 10,
- "per_page": 25,
- "total": 100
}
}
access_token required | string |
{- "scopes": [
- "string"
], - "expires_in_seconds": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "session_id": "string",
- "uuid": "string",
- "application": {
- "client_id": "string",
- "name": "string"
}, - "resource_owner": { }
}