Ninjapay API Docs
  • Namaste
    • ℹ️Welcome to Ninjapay!
    • πŸ†Benefits of NinjapayAPI
    • πŸ› οΈFees & Limit
  • How to
    • ❓How Plugins Work
    • πŸ‘¨β€πŸ’»Getting Started
    • πŸ”Authentication
    • πŸ’»API Reference (UPI)
      • 🧩Plugins
        • πŸ”—Realtime Payment Links
          • Create Realtime Payment Link
          • Create Template
          • List Payment Links
          • Multi super order Id list
          • Get templates
          • Single order Id trx list
          • Generate Upi payment link
          • Record payment
          • Expiry List
          • Delete Payment Link
          • Delete Template
          • Check Payment
        • πŸ›‘οΈPaywalls
          • Create Paywall
          • Create Paywall QR
          • List Paywalls
          • Detail Paywall
          • Check Paywall
          • Remove Paywall
        • πŸ“„Invoice
          • Add Client
          • Edit Client
          • Get Client
          • Remove Client
          • Add Product
          • Edit Product
          • Get Products
          • Remove Product
          • Upload Attachment
          • Add/Edit Template
          • Create Invoice
          • Get Invoice by ID
          • Add Tracking Details
          • Remove Invoice
        • πŸ–₯️Point of Sale - POS
          • Create POS
          • Create Paywall QR
          • List Paywalls
          • Detail Paywall
          • Check Paywall
          • Remove POS
        • πŸ‘¨β€πŸ’»Build Your Own Plugin
          • Ninjapay Plugin Development Guide
      • Error Handling
      • Limits on API Requests
    • πŸ’»API Reference (P2P)
      • 🧩Plugins
        • πŸ”—Payment Links (P2P)
          • Dashboard Stats
          • Create Payment Link
          • Submit UTR for Approval
          • List Payment Links
          • Transactions
          • Approve/Decline
          • Check Payment
        • πŸ›‘οΈPaywalls
          • Create Paywall
          • Create Paywall QR
          • List Paywalls
          • Detail Paywall
          • Check Paywall
          • Remove Paywall
        • πŸ‘¨β€πŸ’»Build Your Own Plugin
          • Ninjapay Plugin Development Guide
      • Error Handling
      • Limits on API Requests
    • πŸ’»API Reference (BTC⚑️)
      • Wallet Info
      • Send Payment
      • Request Payment
      • NinjaAuth
      • Ninjapay URI Intent
      • Check Payment
      • Transactions
      • Get Prices
      • Decode Invoice
      • Error Handling
      • Limits on API Requests
      • 🎁Withdraw Vouchers
        • Request Voucher
        • Check Voucher
        • Revoke Voucher Request
        • Redeem Voucher
      • πŸ“ˆSpot Trade
        • Asset Balances
        • Asset Prices
        • Buy/Sell
        • Check Order
        • Revoke Order Request
  • other
    • 🀝Partnerships
    • πŸ““Helpful references
  • Use Cases
    • Game Developers
      • Implementing BTC Points
  • Coming Soon
    • πŸ’»API Reference (Pro)
      • Wallet Info
      • Send Payment
      • Request Payment
      • NinjaAuth
      • Ninjapay URI Intent
      • Check Payment
      • Transactions
      • Get Prices
      • Decode Invoice
      • Error Handling
      • Limits on API Requests
    • 🧩Widget Integration
      • Widget (Onramp)
      • Widget (Offramp)
      • Request Token
      • Check Token
  • Fiat x Web3 Bridge
    • ℹ️Intro to NinjaUPI
    • πŸ‘©β€πŸ’»Get Started
      • Request Quote ID (BTC<>INR)
      • Request Quote ID (USDT<>INR)
      • Request Invoice for Quote
      • Check Payment
    • 🦸Upgrades
  • Protocols
    • Commerce Onchain Protocol
Powered by GitBook
On this page
  1. How to
  2. API Reference (BTC⚑️)
  3. Spot Trade

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));
  
PreviousCheck OrderNextPartnerships

Last updated 1 year ago

πŸ’»
πŸ“ˆ