Revoke Order Request

Revoke an entire voucher request using the transaction ID.

Method


GET https://api.ninjapay.me/tapi/v1/revokeOrder

Parameters

tid: string // the transaction ID of the trade order.

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' // Invoice key
  },
  body: '{"tid": "2M106602N7789"}'
};

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

Last updated