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

Get Account Balance

GEThttps://sandbox-open.legionpays.com/v1/utility/balance

This API will give you your account balance.

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 xxxx.
x-timestamp int64 required Defaults to 1233232.

Responses

200
401

Credentials

BasicBase64
:
$npx api install "@legionpay/v1.0#1k7d63fkmfdu9rlh"
import legionpay from '@api/legionpay';

legionpay.getAccountBalance({'x-signature': 'xxxx', 'x-timestamp': '1233232'})
  .then(({ data }) => console.log(data))
  .catch(err => console.error(err));
{
  "status": 200,
  "success": true,
  "data": [
    {
      "name": "BCA",
      "code": "014",
      "type": "va",
      "isActive": true,
      "img": "localhost/images/method/014-6419973dbedd18275e822258.webp"
    },
    {
      "name": "BRI",
      "code": "002",
      "type": "va",
      "isActive": true,
      "img": "localhost/images/method/002-6419973dbedd18275e82225a.webp"
    },
    {
      "name": "CIMB",
      "code": "022",
      "type": "va",
      "isActive": true,
      "img": "localhost/images/method/022-6419973dbedd18275e82225c.webp"
    }
  ]
}

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.getAccountBalance({'x-signature': 'xxxx', 'x-timestamp': '1233232'})
  .then(({ data }) => console.log(data))
  .catch(err => console.error(err));
{
  "status": 200,
  "success": true,
  "data": [
    {
      "name": "BCA",
      "code": "014",
      "type": "va",
      "isActive": true,
      "img": "localhost/images/method/014-6419973dbedd18275e822258.webp"
    },
    {
      "name": "BRI",
      "code": "002",
      "type": "va",
      "isActive": true,
      "img": "localhost/images/method/002-6419973dbedd18275e82225a.webp"
    },
    {
      "name": "CIMB",
      "code": "022",
      "type": "va",
      "isActive": true,
      "img": "localhost/images/method/022-6419973dbedd18275e82225c.webp"
    }
  ]
}

Request Session

Recent request history resets when this page is refreshed. Current session: 0