Get Single Settlement
//A code snippet of how to consume the API
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2RlbW8ubW9uaWNyZWRpdC5jb20vYXBpL3YxL2NvcmUvYXV0aC9sb2dpbiIsImlhdCI6MTY2ODk2NzQ0MywiZXhwIjoxNjY4OTcxMDQzLCJuYmYiOjE2Njg5Njc0NDMsImp0aSI6ImF0UE9GVHE4cU4yN2lBWlciLCJzdWIiOiJVU0FETUlOIiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.shrbQUV29vXRF30qMeBN3zxlc5JXd03QyMeD6ekzudU");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://demo.backend.monicredit.com/api/v1/payment/settlement/S62b132453ec1e", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
//A code snippet of how to consume the API
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://demo.backend.monicredit.com/api/v1/payment/settlement/S62b132453ec1e',
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(
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2RlbW8ubW9uaWNyZWRpdC5jb20vYXBpL3YxL2NvcmUvYXV0aC9sb2dpbiIsImlhdCI6MTY2ODk2NzQ0MywiZXhwIjoxNjY4OTcxMDQzLCJuYmYiOjE2Njg5Njc0NDMsImp0aSI6ImF0UE9GVHE4cU4yN2lBWlciLCJzdWIiOiJVU0FETUlOIiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.shrbQUV29vXRF30qMeBN3zxlc5JXd03QyMeD6ekzudU'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
GET
{{BaseURL}}/payment/settlement/:settlementId
Query Parameters
Name | Type | Description |
---|---|---|
settlementId* | String | SB000000 |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | {{bearer_token}} |
{
"status": true,
"message": "Settlement Retrieve successfully",
"data": [
{
"id": "S000000000",
"merchant_id": "MT000000",
"date_paid": "2021-10-20 22:15:13",
"amount": "00000",
"status": "PAID",
"settlement_type": "revenue",
"settlement_bank_id": "SB0000000",
"settlement_batch": null,
"type": null,
"batch_reference": null,
"settlement_bank": {
"id": "SB0000000",
"name": "Stokes Nicolas and Kiehn",
"account_no": "000000",
"account_name": "Melyssa Kuhlman",
"bank_code": null,
"bank_name": "PROVIDUS",
"settlement_email": "test@example.net"
}
}
]
}
Last updated