Détails du paiement
curl --request GET \
--url https://api.example.com/v1/payments/{id}/detailsimport requests
url = "https://api.example.com/v1/payments/{id}/details"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/payments/{id}/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/payments/{id}/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/payments/{id}/details"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/payments/{id}/details")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payments/{id}/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyPayments
Détails du paiement
Obtenir les détails financiers complets d’un paiement
GET
/
v1
/
payments
/
{id}
/
details
Détails du paiement
curl --request GET \
--url https://api.example.com/v1/payments/{id}/detailsimport requests
url = "https://api.example.com/v1/payments/{id}/details"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/payments/{id}/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/payments/{id}/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/payments/{id}/details"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/payments/{id}/details")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payments/{id}/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyDétails du paiement
Récupère toutes les informations financières liées à un paiement, y compris le calcul des frais et les écritures comptables (Ledger).Cet endpoint est principalement utilisé pour la réconciliation et l’audit financier.
Path Parameters
| Paramètre | Type | Requis | Description |
|---|---|---|---|
id | string | ✅ | ID du paiement (UUID) |
Réponse
{
"success": true,
"data": {
"id": "txn_8f525b9f",
"status": "SUCCESS",
"amount": 5000,
"fee_calculation": {
"gross_amount": 5000,
"platform_fee": 50,
"provider_fee": 50,
"tax_amount": 18,
"net_merchant": 4882
},
"ledger_entries": [
{
"id": "entry_1",
"journal_type": "TRANSACTION",
"description": "Orange Money Payment SUCCESS",
"lines": [
{
"account_name": "Orange Money Payable",
"direction": "DEBIT",
"amount": 5000
},
{
"account_name": "Merchant Available Balance",
"direction": "CREDIT",
"amount": 4882
}
]
}
],
"metadata": {
"marketplace": {
"order_number": "8F525B9F",
"customer_name": "Amadou Diallo"
}
}
}
}
⌘I