> For the complete documentation index, see [llms.txt](https://docs.conscent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.conscent.ai/integrating-with-apis/client-passes.md).

# Client Passes

## Get the details of the passes.

<mark style="color:blue;">`GET`</mark> `{API_URL}/client/purchases/passes`

Auth required: YES

Please pass your API key as the username and API secret as password as Basic Auth to access the endpoint.

#### Query Parameters

| Name        | Type          | Description              |
| ----------- | ------------- | ------------------------ |
| userId      | String        | user id of the user      |
| email       | String        | email of the user        |
| from        | ISODateString |                          |
| to          | ISODateString |                          |
| phoneNumber | String        | phone number of the user |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}

> You need to pass either phone number or email of the user from which hw has made the purcahse.

```json

{
    "purchases": [
        {
            "availedOffers": [],
            "promotional": false,
            "categories": [],
            "freeTrial": false,
            "migrated": false,
            "clientId": "5f92a62013332e0f667794dc",
            "clientContentId": "Client-Story-Id-1",
            "contentId": "61fba4adcbcaaf727a00168d",
            "buyingPrice": 319.21,
            "price": 399,
            "priceDetails": {
                "price": 399,
                "currency": "INR"
            },
            "expiryDate": "2023-04-18T14:42:20.741Z",
            "createdAt": "2023-04-18T07:42:20.749Z",
            "userId": "6346608680c2216fe33d84fa",
            "userEmail": "bnnnn@gmail.com",
            "userPhoneNumber": "8243334265",
            "userName": "Kajal",
            "userAddress": {
                "apartment": "ggghhh",
                "area": "kkkkkhhh",
                "pincode": "922111",
                "landmark": "sasshhh",
                "city": "jjjjjhhh",
                "state": "ffffffhhh",
                "country": "iiiiihhh"
            }
        }
    ],
    "paginationInfo": {
        "pageNumber": 1,
        "pageSize": 2,
        "recordsReturned": 1
    }
}
```
