Cancel Transaction
POST Request
To cancel a transaction you must create a POST
request.
https://speedcrypto.pro/merchant/transaction/cancel
Headings
Accept: application/json
Content-Type: application/json
* - required headers. Without them, you will not be able to get the correct answer.
Options
name | type | description |
---|---|---|
order_id * | string | The transaction ID you received when you created the transaction. |
api_key * | string | Your API key. |
Answer Examples
Success - 200
{
"order_id": "ID123456",
"message": "successfully canceled"
}
Failed - 400, 401, 429 and other
If the response code is different, then there may be a problem on the API server side or you have exceeded the limit.
We recommend taking such situations into account in your code.
Rate Limit: 10 request per second
Ready Code Examples
Ready Examples Code For Cancel Transaction:
Python Code:
import requests
from http import HTTPStatus
url = "https://speedcrypto.pro/merchant/transaction/cancel"
order_id = "ID123456"
api_key = "your_api_key"
response = requests.post(url, json={"order_id":order_id, "api_key":api_key})
if response.status_code == HTTPStatus.OK:
print(response.json())
else:
print("Something went wrong...")