Revoking Static Address
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.
To avoid reaching the limit on generating new static addresses, we recommend manually revoking addresses with no transactions. If you have too many static addresses without transactions, the system will prevent you from generating additional ones. Therefore, it's important to proactively revoke inactive addresses to ensure you can continue generating new ones.
POST
https://api.oxapay.com/v1/payment/static-address/revoke
Authentication
You must include the Merchant API Key in the request header to authenticate your access to the API.
merchant_api_key*
string
Your merchant API Key for authentication and authorization.
Request Body
address*
String
The address of the static wallet you want to revoke.
{
"data": {},
"message": string, // A message containing additional information about the result of the request.
"error": {
"type": string,
"key": string,
"message": string
} || {}, // An object that provides details about any errors that occurred.
"status": integer, // The status of the request response. Typically provided as a numeric code (e.g., 200 for success or other codes for errors).
"version": string // The version of the API being used.
}
Please note that a successful request will return status 200. In case of any issues or validation problems, refer to the corresponding error for further details.
API Request Sample Codes
curl -X POST https://api.oxapay.com/v1/payment/static-address/revoke \
-H "merchant_api_key: YOUR_MERCHANT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"address": "WALLET_ADDRESS_TO_REVOKE"
}'
These example code snippets demonstrate how to request the "Revoking Static Address" endpoint using different programming languages. You can customize the data parameters according to your specific requirements.
API Response Example
{
"data": {},
"message": "Operation completed successfully!",
"error": {},
"status": 200,
"version": "1.0.0"
}
The response example above is provided to help you understand the format and structure of the response. If you have any further questions or need assistance, please feel free to contact to your account manager.
Last updated