> For the complete documentation index, see [llms.txt](https://payduox.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://payduox.gitbook.io/untitled/customers/customer-list.md).

# Customer List

## Params

| Name   | Type    | Description |
| ------ | ------- | ----------- |
| `page` | integer | Page        |

## Response

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

```json
{
    "data": [
        {
            "id": "2",
            "user_id": "1",
            "name": "Test Test",
            "email": "test@test.co1",
            "phone": null,
            "address": null,
            "payments_count": "1",
            "total_spend": "11.00",
            "last_payment": "2024-06-11 23:22:08",
            "created_at": "2024-06-13 20:01:54",
            "updated_at": "2024-06-11 23:22:08"
        }
    ],
    "pager": {}
}
```

{% endtab %}
{% endtabs %}

## Examples

{% tabs %}
{% tab title="PHP - cURL" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://[API_URL]/api/customers?page=1',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: 123',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}

{% tab title="Node.js - Axios" %}

```javascript
const axios = require('axios');

let config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'http://[API_URL]/api/customers?page=1',
  headers: { 
    'x-api-key': '123', 
  }
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

{% endtab %}

{% tab title="Python" %}

```python
import requests

url = "http://[API_URL]/api/customers?page=1"
headers = {
  'x-api-key': '123',
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

```

{% endtab %}
{% endtabs %}
