Check status of invoice or payment by invoice id
status
PENDING the invoice has yet to be paid
PAID the invoice has successfully been paid
SETTLED the amount of paid invoice has been settled to cash balance
EXPIRED the invoice has been expired
GET https://us-central1-appgregator.cloudfunctions.net/xendit/find/:id
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
xendit-sanbox-1
Headers
Name
Type
Description
x-api-key*
String
U2Fsd...
[
{
"bank_code": "MANDIRI",
"is_high": false,
"id": "62f00ac409accd62c85673c4",
"failure_redirect_url": "https://projeq.id/?status=failure&external_id=INV0035/VIII/2022",
"paid_at": "2022-08-07T18:58:35.534Z",
"paid_amount": 8500000,
"callback_token": "mP6BvtAhO585zao6r5aUWgWhlzo6xhFEbNmcQza7iL7DRXU7",
"callback_url": "http://localhost:5001/appgregator/us-central1/xendit/invoices/callback/success",
"description": "Invoice Demo #INV0048",
"user_id": "6279ce4495d10c9afc3171b8",
"send_callback": 0,
"external_id": "INV0048/VIII/2022",
"amount": 8500000,
"updated": "2022-08-07T18:58:35.843Z",
"currency": "IDR",
"payment_channel": "MANDIRI",
"payment_destination": "8860861087714",
"status": "PAID",
"initial_amount": 8500000,
"project_name": "ft-4",
"connection_name": "xendit-sanbox-1",
"merchant_name": "aplikasi keuangan",
"payment_method": "BANK_TRANSFER",
"created": "2022-08-07T18:56:04.761Z",
"success_redirect_url": "https://projeq.id/?status=success&external_id=INV0035/VIII/2022"
}
]curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/xendit/find/62f094097098f7678f55fc3f?name=ft-4&connection_name=xendit-sanbox-1' \
--header 'x-api-key: U2Fsd...'var axios = require('axios');
var config = {
method: 'get',
url: 'https://us-central1-appgregator.cloudfunctions.net/xendit/find/62f094097098f7678f55fc3f?name=ft-4&connection_name=xendit-sanbox-1',
headers: {
'x-api-key': 'U2Fsd...'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/xendit/find/62f094097098f7678f55fc3f?name=ft-4&connection_name=xendit-sanbox-1',
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-api-key: U2Fsd...'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated