Utility
https://sandbox-open.legionpays.com/v1/status/topupThis API will give you the latest status of a topup transaction.
Credentials
npx api install "@legionpay/v1.0#1k7d63fkmfdu9rlh"import legionpay from '@api/legionpay';
legionpay.statusTopup({'X-SIGNATURE': 'xxx', 'X-TIMESTAMP': '123123123'})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));{
"amount": 15000,
"fee": 5000,
"expired": "2023-01-25T12:00:00.000Z",
"method": "002",
"methodName": "BRI",
"customerName": "Test",
"ref1": "testtest",
"ref2": "T20d5b877fd1f22ca07db0241abdf3d6c9fdb0f2edb1c0cd52ad1aebaa13a6305",
"status": "paid",
"desc": "Your Virtual Account Topup is Paid",
"paidTime": "2023-01-24T12:18:35.567Z",
"serialNumber": "testsn11991991"
}Request Session
Recent request history resets when this page is refreshed. Current session: 0