OxaPay Docs
Legacy
Legacy
  • Introduction
  • Getting Started
  • Integrations
    • Payment Links
    • Donations
    • Merchant API
    • Payout API
    • Plugins
      • WooCommerce
      • WISECP
      • Clientexec
      • Blesta
      • WHMCS
      • PrestaShop
      • Easy Digital Downloads
      • Paid Memberships Pro
      • Gravity Forms
      • Restrict Content Pro
    • Merchant and Payout Service with API
  • API Reference
    • Creating an Invoice
    • Creating White-Label Payment
    • Creating Static Wallet
    • Revoking Static Wallet
    • Static Wallets List
    • Payment Information
    • Payment History
    • Accepted Coins
    • Price
    • Creating Payout
    • Payout Information
    • Payout History
    • Account Balance
    • Exchange Rate
    • Exchange Calculate
    • Exchange Pairs
    • Exchange Request
    • Exchange History
    • Supported Currencies
    • Supported Fiat Currencies
    • Supported Networks
    • System Status
    • Result code table
    • Merchant status table
    • Payout status table
  • Webhook
  • Use Cases
  • Troubleshooting
Powered by GitBook
On this page
  1. API Reference

Revoking Static Wallet

PreviousCreating Static WalletNextStatic Wallets List

Last updated 4 months ago

You can revoke a static wallet by providing the merchant API key and the address associated with the static wallet. This action will disable the static wallet and prevent any further transactions from being credited to the specified address.

POST https://api.oxapay.com/merchants/revoke/staticaddress

Request Body

Name
Type
Description

merchant*

String

Your merchant API key for authentication and authorization.

address*

String

The address of the static wallet you want to revoke.

{
    "result": integer, // The result code indicates the success or failure of the request.
    "message": string // A message providing additional information about the result.
}

Now, you can proceed with integrating this functionality into your application using the provided endpoint, parameters, and response codes. If you encounter any issues or have questions, feel free to reach out to our support team for assistance.

Please note that a successful request will return a result code 100. In case of any issues or validation problems, refer to the corresponding for further details.

Example codes

curl -X POST https://api.oxapay.com/merchants/revoke/staticaddress \
  -d '{
    "merchant": "YOUR_MERCHANT_API_KEY",
    "address": "WALLET_ADDRESS_TO_REVOKE"
  }'
<?php

$url = 'https://api.oxapay.com/merchants/revoke/staticaddress';

$data = array(
    'merchant' => 'YOUR_MERCHANT_API_KEY',
    'address' => 'WALLET_ADDRESS_TO_REVOKE'
);

$options = array(
    'http' => array(
        'header' => 'Content-Type: application/json',
        'method'  => 'POST',
        'content' => json_encode($data),
    ),
);

$context  = stream_context_create($options);
$response = file_get_contents($url, false, $context);
$result = json_decode($response);
var_dump($result);
?>
const axios = require('axios');
const url = 'https://api.oxapay.com/merchants/revoke/staticaddress';
const data = JSON.stringify({
    merchant: 'YOUR_MERCHANT_API_KEY',
    address: 'WALLET_ADDRESS_TO_REVOKE'
});

axios.post(url, data)
    .then(response => {
        console.log(response.data);
    })
    .catch(error => {
        console.error(error);
    });
import requests
import json

url = 'https://api.oxapay.com/merchants/revoke/staticaddress'
data = {
    'merchant': 'YOUR_MERCHANT_API_KEY',
    'address': 'WALLET_ADDRESS_TO_REVOKE'
}
response = requests.post(url, data=json.dumps(data))
result = response.json()
print(result)

Please replace YOUR_MERCHANT_API_KEY with your actual merchant API key and WALLET_ADDRESS_TO_REVOKE with the address of the static wallet, you want to revoke. Each of these code snippets sends a POST request to the API endpoint with the specified parameters and checks the response to determine whether the revocation was successful or not.

result codes