Customer List

https://paydoux.com/customers?page=1

Params

Response

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

Examples

<?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;

Last updated