Fetch data customer
Cet endpoint permet de récupérer les informations d'un client.
GET
https://api.digitalpaye.com/v1/customers/fetch-data/:{
id
}
Headers
Name
Value
X-Environment
Production
Content-Type
application/json
Authorization
Bearer <
AccessToken>
Params
Name
Required
Description
Type
id
true
ID customer
String
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"
}
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.digitalpaye.com/v1/customers/fetch-data/26b35534-3165-4143-8fff-ec2f70bb430c',
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 ?