Get status transaction
L'opération "Obtenir le statut d'une transaction" permet aux utilisateurs de récupérer des informations détaillées sur l'état actuel d'une transaction financière effectuée au sein de la plateforme.
GET
https://api.digitalpaye.com/v1/get-status-payment/{{reference}}
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <
AccessToken>
X-Environment
Production
{
"statusCode": 200,
"message": "Successful",
"data": {
"ref": "GJ948M5X6V",
"transactionId": "DIGITAL-79110123118182",
"currency": "XOF",
"amount": "500",
"fees": "7.5",
"amountReceive": "500",
"amountTotal": "507.5",
"phone": "0777101308",
"status": "SUCCESSFUL",
"typeTransaction": "transfer",
"operator": "WAVE_MONEY_CI",
"createdAt": "2024-10-11T07:12:44.000Z",
"customer": {
"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/get-status-payment/GJ948M5X6V',
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.eyJjb21wYW55SWQiOiI4NDM3ZGQxMy04OWFjLTQ1ZTEtYTdhYS1jOGJhMDk1ZDFiMjciLCJpYXQiOjE3Mjg2MzU1NDAsImV4cCI6MTcyODYzNjE0MH0.zGNX-MBJwsGTSkpr06ypPWrkmf9yJ9XGkqaS-2P_goM'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Dernière mise à jour
Cet article vous a-t-il été utile ?