Show Member Profile History
Pending
GET
https://api.mpc.dev.placewise.com/v1/members/{member_id}/profile_history
API Permit:BL:Api:Members:ChangesHistory:Index
API Context:Loyalty Club
Authorizations:UserToken
Member profile change model
Key | Type | Description |
---|---|---|
id | UUID | |
created_at | ISO 8601 DateTime | When the change has been made |
source | string | Product that made the change |
changes | Object[] | |
changes[].attribute | string | Name of member attribute that has been changed |
changes[].change | string | Type of change on attribute: + when added, - when removed, ~ when modified |
changes[].values | Object | Values of attribute. Not present when attribute contains personal data. |
changes[].values.before | (mixed) | Value of attribute before the change. Not present when the change is + |
changes[].values.after | (mixed) | Value of attribute after the change. Not present when the change is - |
Query Parameters
Parameter | Type | Required? | Default | Description |
---|---|---|---|---|
per_page | integer | no | 100 | Number of results to be returned per request (100 is the maximum) |
page_no | integer | no | 1 | Number of results page |
created_after | ISO 8601 DateTime | no | null | When present, it returns only changes introduced after this date |
created_before | ISO 8601 DateTime | no | null | When present, it returns only changes introduced before this date |
attributes | string[] | no | null | When present, it returns only changes to given attributes |
source | string | no | null | When present, it returns only changes introduced by this source |
Response Body
Key | Type | Description |
---|---|---|
changes | ProfileChange[] | Array of ProfileChange |
pagination_info | Pagination | Pagination object |
Example
{
"changes": [
{
"id": "c34df69e-6c9f-4dfa-8301-154e9a04ef08 ",
"created_at": "2022-04-04T10:53:26.323Z",
"source": "android",
"changes": [
{ "attribute": "consents.dmp_profiling", "change": "+", "values": { "before": null, "after": false } },
{ "attribute": "consents.sms_marketing", "change": "+", "values": { "before": null, "after": true } },
{ "attribute": "msisdn", "change": "-" },
{ "attribute": "email", "change": "~" },
{ "attribute": "first_name", "change": "-", "values": { "before": "Piotr", "after": null } },
{ "attribute": "language", "change": "~", "values": { "before": "en", "after": "no" } },
{ "attribute": "push_status", "change": "~", "values": { "before": "enabled", "after": "disabled" } },
{ "attribute": "subunit_ids", "change": "~", "values": { "before": [], "after": [1, 2] } }
]
}
],
"pagination_info": {} // Pagination info - see 'Pagination info"
}
Request
Path Params
member_id
integerÂ
required
Example:
1
Header Params
X-Loyalty-Club-Slug
stringÂ
required
Default:
{{LOYALTY_CLUB_SLUG}}
X-Client-Authorization
stringÂ
optional
Default:
{{API_TOKEN}}
Request samples
Responses
Modified at 2024-05-07 15:48:35