v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Guest Membership Change Log

This API helps you to retrieve the changes to the Guest's Membership, in the specified window.

get/v1/guests/memberships/change_log?center_id={center_id}&guest_id={guest_id}&start_date={start_date}&end_date={end_date}&page=1&size=10

Query parameters

center_idstring

Optional Unique identifier of the center for which the guest membership records are to be retrieved.

guest_idstring

Optional Unique identifier of the guest whose guest membership records are to be returned

start_datestring date

Optional Records are returned from this start date (yyyy-mm-dd). 00:00:00 is appended to the date value, if no time given. In absence of both date and time, start date is considered as current time minus 7 days. The Time value is displayed in UTC.

end_datestring date

Optional Records are returned until this end date (yyyy-mm-dd). 00:00:00 is appended to the date value, if no time given. In absence of both date and time, end date is considered as current time. The Time value is displayed in UTC.

pageinteger

Optional Number of display page for the records. Default value is 1.

sizeinteger

Optional Number of records displayed per page. Default value is 10.

Response

200

{"stackTrail":"paths:/v1/guests/memberships/change_log?center_id={center_id}&guest_id={guest_id}&start_date={start_date}&end_date={end_date}&page=1&size=10:get:responses:200:content:application/json:schema:properties:error","oasType":"schema","type":"unknown"}

Example response

{
  "change_log": [
    {
      "guest_id": "709b69a3-9cb7-4921-af7a-784d14336a84",
      "id": "b3f54a39-5470-4ad8-ad22-0ee4c751f030",
      "status": "InActive",
      "membership_code": "AAM-R",
      "membership_id": "dcfa2363-5f9e-4bfe-a051-ffdc5ff008f7"
    }
  ],
  "page_info": {
    "total": 4,
    "page": 1,
    "size": 10
  }
}