Cancel
This service can be called to cancel an exchange that you no longer want to perform. You may find this useful if approval is required and the rate is no longer desirable. You will need to provide us with the Reference Id of the exchange so we can proceed. Exchanges cannot be cancelled if they are already cancelled, completed or currently being traded.
The response will notify you of the success. We will also provide you with your updated exchange limit.
Inputs
| Variable | Description | |
|---|---|---|
| Merchant ID | merchant_id | Your unique merchant id. This can be found under your Account Settings. |
| Reference Id | reference_id | The Reference Id of the exchange you want to cancel. This should have been provided in the response from the Sell query. |
| Return Wallet Address | return_wallet_address | An optional wallet address that you can provide to indicate the address that the cryptocurrency should be returned to. |
| Hash Value | hash_value | The resulting hash of your input arguments and your API Key. |
Example Input
https://exchange.nekbit.com/api/v1/cancel/?merchant_id=B4FFFAE5-2618-4C2B-A8A0-1A62421CF227&reference_id=2aa3b74c3c2e048e928d4f7fba6c12d3&return_wallet_address=1Eoma65kVbVL9AaswpKFcLsDWuWVwdBKy5&hash_value=479c3769583fd6fe366607ec4deb6b18
Outputs
| Variable | Description | |
|---|---|---|
| Type | type | Indicates either success or error. |
| Data | data | Contains variables unique to this query type. |
| Timestamp | timestamp | The current date/time UTC. |
| Exchange Limit | exchange_limit | The maximum amount the system will allow from you after the cancellation. |
Example Output
{
"type": "success",
"data": {
"exchange_limit": 10
},
"timestamp": "2018-12-21 15:26:36"
}