Cancel Recurring Payment
curl --request PATCH \
--url https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel \
--header 'api-key: <api-key>'import requests
url = "https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel"
headers = {"api-key": "<api-key>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {'api-key': '<api-key>'}};
fetch('https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/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://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => [
"api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": null,
"status": "success",
"statusCode": "00",
"message": "Recurring payment cancelled successfully"
}
{
"status": "failed",
"statusCode": "404",
"message": "Sorry! Recurring payment not found"
}
Payment Links
Cancel Recurring Payment
Cancel a Subscription Payment.
PATCH
/
checkout
/
links
/
recurringpayment
/
{id}
/
cancel
Cancel Recurring Payment
curl --request PATCH \
--url https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel \
--header 'api-key: <api-key>'import requests
url = "https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel"
headers = {"api-key": "<api-key>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {'api-key': '<api-key>'}};
fetch('https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/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://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => [
"api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-api-service.epayclub.com/checkout/links/recurringpayment/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": null,
"status": "success",
"statusCode": "00",
"message": "Recurring payment cancelled successfully"
}
{
"status": "failed",
"statusCode": "404",
"message": "Sorry! Recurring payment not found"
}
Use this endpoint carefully. Ending a subscription through this action is permanent; you won’t be able to reactivate it.
The Payment link’s ID.
{
"data": null,
"status": "success",
"statusCode": "00",
"message": "Recurring payment cancelled successfully"
}
{
"status": "failed",
"statusCode": "404",
"message": "Sorry! Recurring payment not found"
}
⌘I

