The status of one member
GET /members/status/{memberCode}
The Studio calls it at every login check of a member whose membership is linked to this register, with the stored member code, unless the membership definition or a community filters on a claim (then it calls "The claims of one member" instead). Answer 404 for a member code the register does not hold.
Authentication
- appsolut_m2m (sent in the header
x-api-key): The "API key" entered in the register's connection in the Studio, sent with every call. The Studio keeps it encrypted and never shows it again. Answer 401 or 403 to a wrong key.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
memberCode | path | Yes | string | The member code, URL-encoded as one path segment. Example: 100001. |
x-tenant-id | header | Yes | string | The "Tenant ID" entered in the register's connection in the Studio, sent unchanged with every call. Your register can use it to tell apart the organisations it serves. Example: pannoniqa. |
x-custom-scope | header | Yes | string | The "Scope" entered in the register's connection in the Studio, sent unchanged with every call. Your register can use it to choose the data set it answers from. Example: employees. |
Responses
200
The member's status.
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
source | string | Yes | The name of your data source, such as "SAP HR". |
status | object | Yes | |
status.statusCode | string | Yes | The member's status in the register. Filters in the membership definition and in communities can check it. Allowed values: active, inactive, pending. |
Example: An active employee
{
"source": "SAP HR",
"status": {
"statusCode": "active"
}
}
Example: A retired employee
{
"source": "SAP HR",
"status": {
"statusCode": "inactive"
}
}
400
The register could not process the request. The Studio treats it as the register being unavailable and does not read the body.
Content type: text/plain
Type: string
Example
Bad request
401
The API key is wrong. The Studio reports the credentials as rejected (it does the same for 403) and treats the register as unavailable.
Content type: text/plain
Type: string
Example
Unauthorized
404
The register holds no member with this member code. The Studio treats the person as not found in this register.
Content type: text/plain
Type: string
Example
Not found