Cancel the terminal reader
curl --request POST \
--url https://api.hit-pay.com/v1/readers/cancel \
--header 'Content-Type: application/json' \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>' \
--data '
{
"reader_id": "tmr_FTQMPAL1boM2kE"
}
'import requests
url = "https://api.hit-pay.com/v1/readers/cancel"
payload = { "reader_id": "tmr_FTQMPAL1boM2kE" }
headers = {
"X-BUSINESS-API-KEY": "<x-business-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-BUSINESS-API-KEY': '<x-business-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({reader_id: 'tmr_FTQMPAL1boM2kE'})
};
fetch('https://api.hit-pay.com/v1/readers/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hit-pay.com/v1/readers/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reader_id' => 'tmr_FTQMPAL1boM2kE'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-BUSINESS-API-KEY: <x-business-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hit-pay.com/v1/readers/cancel"
payload := strings.NewReader("{\n \"reader_id\": \"tmr_FTQMPAL1boM2kE\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-BUSINESS-API-KEY", "<x-business-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hit-pay.com/v1/readers/cancel")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reader_id\": \"tmr_FTQMPAL1boM2kE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/readers/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-BUSINESS-API-KEY"] = '<x-business-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reader_id\": \"tmr_FTQMPAL1boM2kE\"\n}"
response = http.request(request)
puts response.read_body1{
"message": "This terminal is not connected to your business. Please go to Settings > Check Reader Connection > Select a terminal, or contact [email protected] if you face any issues."
}Terminal
Cancel Reader Payment
Cancel an active payment on a terminal card reader
POST
/
v1
/
readers
/
cancel
Cancel the terminal reader
curl --request POST \
--url https://api.hit-pay.com/v1/readers/cancel \
--header 'Content-Type: application/json' \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>' \
--data '
{
"reader_id": "tmr_FTQMPAL1boM2kE"
}
'import requests
url = "https://api.hit-pay.com/v1/readers/cancel"
payload = { "reader_id": "tmr_FTQMPAL1boM2kE" }
headers = {
"X-BUSINESS-API-KEY": "<x-business-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-BUSINESS-API-KEY': '<x-business-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({reader_id: 'tmr_FTQMPAL1boM2kE'})
};
fetch('https://api.hit-pay.com/v1/readers/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hit-pay.com/v1/readers/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reader_id' => 'tmr_FTQMPAL1boM2kE'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-BUSINESS-API-KEY: <x-business-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hit-pay.com/v1/readers/cancel"
payload := strings.NewReader("{\n \"reader_id\": \"tmr_FTQMPAL1boM2kE\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-BUSINESS-API-KEY", "<x-business-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hit-pay.com/v1/readers/cancel")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reader_id\": \"tmr_FTQMPAL1boM2kE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/readers/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-BUSINESS-API-KEY"] = '<x-business-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reader_id\": \"tmr_FTQMPAL1boM2kE\"\n}"
response = http.request(request)
puts response.read_body1{
"message": "This terminal is not connected to your business. Please go to Settings > Check Reader Connection > Select a terminal, or contact [email protected] if you face any issues."
}Last modified on February 25, 2026
Was this page helpful?
⌘I