LEGIONPAYLEGIONPAY
Demo
StableAPI Reference

Introduction

Getting Started with Legionpay

Utility

Get Payment MethodGETGet Transfer ChannelGETGet Account BalanceGET

Signature

Generating Signature

Payment

Generate Accept PaymentPOST

Transfer

Transfer InquiryPOSTTransfer PaymentPOST

Topup

Topup RequestPOST

Check Status

Check Payment StatusGETCheck Transfer StatusGETCheck Topup StatusGET

Callback

Payment CallbackTransfer CallbackTopup Callback

Additional Things

Response CodePayment and Topup StatusTransfer StatusRedirect Payment URL

Utility

Check Topup Status

GEThttps://sandbox-open.legionpays.com/v1/status/topup

This API will give you the latest status of a topup transaction.

Recent Requests

TimeStatusUser Agent
Click Try It! to create a request history for this session.
0 Request This Session
If you require further assistance or have any questions, please do not hesitate to reach out to our support team. 🍻

Headers

X-SIGNATURE string required Defaults to xxx.
X-TIMESTAMP int64 required Defaults to 123123123.

Responses

200
401

Credentials

BasicBase64
:
$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

Credentials

BasicBase64
:
$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