---
updatedAt: 2026-09-15T15:20:20.000Z
agentTools:
  projectIndex: https://docs.bookboost.io/llms.txt
---

# Index loyalty memberships of the user

Index loyalty memberships of the user.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Bookboost AB",
    "description": "",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://cdp.bookboost.io"
    }
  ],
  "tags": [
    {
      "name": "Users",
      "description": ""
    }
  ],
  "components": {
    "securitySchemes": {
      "default": {
        "type": "http",
        "scheme": "bearer",
        "description": "You can retrieve your token by visiting your dashboard and clicking <b>Generate API token</b>."
      }
    }
  },
  "security": [
    {
      "default": []
    }
  ],
  "paths": {
    "/api/v1/user/{user_uuid}/loyalty-memberships": {
      "get": {
        "summary": "Index loyalty memberships of the user",
        "operationId": "indexLoyaltyMembershipsOfTheUser",
        "description": "Index loyalty memberships of the user.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "data": [
                      {
                        "external_membership_id": "1234567890",
                        "user_id": "42dcb719-1354-464c-b72f-7105391d5974",
                        "code": "Code-001",
                        "info": {
                          "foo": "false",
                          "bar": "12345"
                        },
                        "program": {
                          "id": "a0a2ddd8-af57-4ae7-aa84-212d48c01488",
                          "name": "MARRIOTT",
                          "info": {
                            "foo": "false",
                            "bar": "12345"
                          },
                          "created_at": "2023-10-05T15:45:53.000000Z",
                          "updated_at": "2023-10-06T14:52:25.000000Z"
                        },
                        "level": {
                          "name": "Platinum",
                          "code": "P1",
                          "info": {
                            "foo": "true",
                            "bar": "12345"
                          }
                        },
                        "expire_date": "2023-10-07T15:45:53.000000Z",
                        "signed_up_date": "2023-10-05T15:45:53.000000Z",
                        "effective_date": "2023-10-05T15:45:53.000000Z",
                        "created_at": "2023-10-05T15:45:53.000000Z",
                        "updated_at": "2023-10-06T14:52:25.000000Z"
                      }
                    ]
                  },
                  "properties": {
                    "data": {
                      "type": "array",
                      "example": [
                        {
                          "external_membership_id": "1234567890",
                          "user_id": "42dcb719-1354-464c-b72f-7105391d5974",
                          "code": "Code-001",
                          "info": {
                            "foo": "false",
                            "bar": "12345"
                          },
                          "program": {
                            "id": "a0a2ddd8-af57-4ae7-aa84-212d48c01488",
                            "name": "MARRIOTT",
                            "info": {
                              "foo": "false",
                              "bar": "12345"
                            },
                            "created_at": "2023-10-05T15:45:53.000000Z",
                            "updated_at": "2023-10-06T14:52:25.000000Z"
                          },
                          "level": {
                            "name": "Platinum",
                            "code": "P1",
                            "info": {
                              "foo": "true",
                              "bar": "12345"
                            }
                          },
                          "expire_date": "2023-10-07T15:45:53.000000Z",
                          "signed_up_date": "2023-10-05T15:45:53.000000Z",
                          "effective_date": "2023-10-05T15:45:53.000000Z",
                          "created_at": "2023-10-05T15:45:53.000000Z",
                          "updated_at": "2023-10-06T14:52:25.000000Z"
                        }
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "external_membership_id": {
                            "type": "string",
                            "example": "1234567890"
                          },
                          "user_id": {
                            "type": "string",
                            "example": "42dcb719-1354-464c-b72f-7105391d5974"
                          },
                          "code": {
                            "type": "string",
                            "example": "Code-001"
                          },
                          "info": {
                            "type": "object",
                            "properties": {
                              "foo": {
                                "type": "string",
                                "example": "false"
                              },
                              "bar": {
                                "type": "string",
                                "example": "12345"
                              }
                            }
                          },
                          "program": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "a0a2ddd8-af57-4ae7-aa84-212d48c01488"
                              },
                              "name": {
                                "type": "string",
                                "example": "MARRIOTT"
                              },
                              "info": {
                                "type": "object",
                                "properties": {
                                  "foo": {
                                    "type": "string",
                                    "example": "false"
                                  },
                                  "bar": {
                                    "type": "string",
                                    "example": "12345"
                                  }
                                }
                              },
                              "created_at": {
                                "type": "string",
                                "example": "2023-10-05T15:45:53.000000Z"
                              },
                              "updated_at": {
                                "type": "string",
                                "example": "2023-10-06T14:52:25.000000Z"
                              }
                            }
                          },
                          "level": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "Platinum"
                              },
                              "code": {
                                "type": "string",
                                "example": "P1"
                              },
                              "info": {
                                "type": "object",
                                "properties": {
                                  "foo": {
                                    "type": "string",
                                    "example": "true"
                                  },
                                  "bar": {
                                    "type": "string",
                                    "example": "12345"
                                  }
                                }
                              }
                            }
                          },
                          "expire_date": {
                            "type": "string",
                            "example": "2023-10-07T15:45:53.000000Z"
                          },
                          "signed_up_date": {
                            "type": "string",
                            "example": "2023-10-05T15:45:53.000000Z"
                          },
                          "effective_date": {
                            "type": "string",
                            "example": "2023-10-05T15:45:53.000000Z"
                          },
                          "created_at": {
                            "type": "string",
                            "example": "2023-10-05T15:45:53.000000Z"
                          },
                          "updated_at": {
                            "type": "string",
                            "example": "2023-10-06T14:52:25.000000Z"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Users"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "user_uuid",
          "description": "",
          "example": "1660126f-7559-3e1b-924c-e35288d0f009",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    }
  }
}
```