# Show Member Profile History

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/members/{member_id}/profile_history:
    get:
      summary: Show Member Profile History
      deprecated: false
      description: >-
        Returns changes on given member profile.


        ### Member profile change model


        Key                     | Type              | Description

        -------------------------|-------------------|----------------------------------------------------------------------------------

        id                      | UUID              |

        created_at              | ISO 8601 DateTime | When the change has been
        made

        source                  | string            |
        [Product](doc-341635#x-product-name-header) 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](api-3511021#member-profile-change-model)

        pagination_info | Pagination      | [Pagination](doc-341638) object


        ## Example


        ```shell

        curl -X GET
        'https://api.mpc.placewise.com/v1/members/391923/profile_history' \
            -H 'X-Client-Authorization: B7t9U9tsoWsGhrv2ouUoSqpM' \
            -H 'X-Product-Name: default' \
            -H 'X-User-Agent:  CURL manual test' \
            -H 'X-Loyalty-Club-Slug: infinity-mall'
        ```


        When successful, returns object containing list of
        [changes](api-3511021#member-profile-change-model) on member profile and
        [PaginationInfo](doc-341638)


        ```json

        {
          "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"
        }


        ```
      tags:
        - API Reference/Management API/Members/Member Profile/Misc
      parameters:
        - name: member_id
          in: path
          description: ''
          required: true
          example: 46849981
          schema:
            type: integer
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: X-Customer
          in: header
          description: Customer for API context.  [Details](doc-342139)
          required: false
          example: '{{CUSTOMER_ID}}'
          schema:
            type: string
            default: '{{CUSTOMER_ID}}'
        - name: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: API Reference/Management API/Members/Member Profile/Misc
      x-apidog-status: pending
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3511021-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```