Revoke Voucher Request

Revoke an entire voucher request using the transaction ID.

Method


GET https://api.ninjapay.me/lapi/v1/revokeVoucher

Parameters

tid: string // the transaction ID of the voucher request.

Response

{
  "status": true,    
    "data": {
      "tid": "19B8660NAN97",
      "revoked": true, 
      "revoked_at": 2014912928,
    },
  "message": "",
}
    

Code Example


const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'API_KEY' 
  },
  body: '{"tid": "2M106602N7789"}'
};

fetch('https://api.ninjapay.me/lapi/v1/revokeVoucher', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  

Last updated