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 Payment Status

GEThttps://sandbox-open.legionpays.com/v1/status/payment/{transactionRef}

This API will give you the latest status of a payment 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. 🍻

Path Params

transactionRef string required Defaults to yourTransactionRef.

Please include your transactionRef in this path params.

Headers

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

Responses

200
401

Credentials

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

legionpay.statusPayment({
  transactionRef: 'yourTransactionRef',
  'X-SIGNATURE': 'xxx',
  'X-TIMESTAMP': '123123'
})
  .then(({ data }) => console.log(data))
  .catch(err => console.error(err));
{
  "status": 200,
  "success": true,
  "data": {
    "amount": 10000,
    "fee": 0,
    "expired": "2020-12-01T00:00:00.001Z",
    "channel": "qris-id",
    "channelName": "QRIS",
    "refId": "123456789012345678",
    "partnerRefId": "123456789012345678",
    "status": "pending",
    "desc": "Success proceed your Accepting Payment Request",
    "paymentString": "dummy-payment-string",
    "customerName": "Test Customer Name"
  }
}

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.statusPayment({
  transactionRef: 'yourTransactionRef',
  'X-SIGNATURE': 'xxx',
  'X-TIMESTAMP': '123123'
})
  .then(({ data }) => console.log(data))
  .catch(err => console.error(err));
{
  "status": 200,
  "success": true,
  "data": {
    "amount": 10000,
    "fee": 0,
    "expired": "2020-12-01T00:00:00.001Z",
    "channel": "qris-id",
    "channelName": "QRIS",
    "refId": "123456789012345678",
    "partnerRefId": "123456789012345678",
    "status": "pending",
    "desc": "Success proceed your Accepting Payment Request",
    "paymentString": "dummy-payment-string",
    "customerName": "Test Customer Name"
  }
}

Request Session

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