Fetch all customers

Cet endpoint permet de récupérer tous vos clients.

GET https://api.digitalpaye.com/v1/customers/fetch-all

Headers

Name
Value

X-Environment

Production

Content-Type

application/json

Authorization

Bearer <AccessToken>

Response

{
    "statusCode": 200,
    "message": "Successful",
    "data": [
        {
            "id": "26b35534-3165-4143-8fff-ec2f70bb430c",
            "lastName": "GUEI",
            "firstName": "HELIE",
            "email": "[email protected]",
            "phoneNumber": "0777101308",
            "address": {
                "countryCode": "CI",
                "city": "Abidjan",
                "streetAddress": "Plateau Cocody"
            },
            "createdAt": "2024-10-11T07:07:59.000Z"
        },
        {
            "id": "497aa87b-20ba-4fb7-8b7b-fa1ea66b96e1",
            "lastName": "GUEU",
            "firstName": "FELICITE",
            "email": null,
            "phoneNumber": "0555983109",
            "address": {
                "countryCode": "CI",
                "city": "Abidjan",
                "streetAddress": "Yopougon, Carrefour Canal"
            },
            "createdAt": "2024-10-24T18:21:44.000Z"
        },
        {
            "id": "8db1ad33-50d6-4e6f-9ec3-5f9169c621a6",
            "lastName": "GUEI",
            "firstName": "HELIE",
            "email": "[email protected]",
            "phoneNumber": "0151737309",
            "address": {
                "countryCode": "CI",
                "city": "Abidjan",
                "streetAddress": "Yopougon, Niangon"
            },
            "createdAt": "2025-03-28T06:54:41.000Z"
        },
        {
            "id": "d031b923-24a1-4e3c-9b79-061b6fe8d57c",
            "lastName": "OUEDRAOGO",
            "firstName": "MADELEINE",
            "email": null,
            "phoneNumber": "0779326476",
            "address": {
                "countryCode": "CI",
                "city": "Abidjan",
                "streetAddress": "Yopougon, Selmer Mairie"
            },
            "createdAt": "2024-10-14T13:09:41.000Z"
        },
        {
            "id": "f1cb75f4-4002-4312-971c-b22e63228138",
            "lastName": "GUEI",
            "firstName": "HELIE",
            "email": "[email protected]",
            "phoneNumber": "0151737308",
            "address": {
                "countryCode": "CI",
                "city": "Abidjan",
                "streetAddress": "Yopougon, Niangon"
            },
            "createdAt": "2025-03-25T11:51:07.000Z"
        }
    ]
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.digitalpaye.com/v1/customers/fetch-all',
  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-Environment: Production',
    'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55SWQiOiI4NDM3ZGQxMy04OWFjLTQ1ZTEtYTdhYS1jOGJhMDk1ZDFiMjciLCJpYXQiOjE3NDMxNDQ4NjYsImV4cCI6MTc0MzE0NTQ2Nn0.wc9Na6-dRS2xVWekiysNCthn45gUkQAn5PK3AY03UR4'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Dernière mise à jour

Cet article vous a-t-il été utile ?