Sell
How to Sell Guide
API
Memberships
Memberships
List Memberships
Retrieve a Membership
Validate license key
Terminate a membership
Cancel a membership
Products
Pricing Plans
Checkouts
Checkouts
List checkout links
Retrieve a checkout link
Update a checkout link
Create a checkout link
Payments
POST /api/v1/memberships/cancel
curl --request POST \
--url "https://api.hyperaze.com/api/v1/memberships/cancel" \
--header "Authorization: Bearer $API_KEY" \
--data '{
"id": "<string>"
}'
import requests
url = "https://api.hyperaze.com/api/v1/memberships/cancel"
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
data = {
"id": "<string>"
}
response = requests.post(url, headers=headers, json=data)
print(response.status_code)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/memberships/cancel", {
method: "POST",
headers: {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
id: "<string>"
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
<?php
$url = "http://api.hyperaze.com/api/v1/memberships/cancel";
$data = [
"id" => "<string>"
];
$options = [
"http" => [
"header" => "Content-Type: application/json\r\nAuthorization: Bearer <API_KEY>\r\n",
"method" => "POST",
"content" => json_encode($data),
]
];
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
if ($response === FALSE) {
die("Error occurred");
}
echo $response;
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
url := "http://api.hyperaze.com/api/v1/memberships/cancel"
payload := map[string]string{
"id": "<string>",
}
jsonData, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "Bearer <API_KEY>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println(result)
}
import kong.unirest.Unirest;
import kong.unirest.HttpResponse;
import kong.unirest.JsonNode;
public class Main {
public static void main(String[] args) {
HttpResponse<JsonNode> response = Unirest.post("http://api.hyperaze.com/api/v1/memberships/cancel")
.header("Authorization", "Bearer <API_KEY>")
.header("Content-Type", "application/json")
.body("{\"id\": \"<string>\"}")
.asJson();
System.out.println(response.getBody());
}
}
{
"status": "success",
"response": {
"data": {
"id": "<string>",
"user_id": "<string>",
"username": "<string>",
"name": "<string>",
"discord": {
"id": "<string>",
"username": "<string>"
},
"product": "<string>",
"plan": "<string>",
"plan_name": "<string>",
"status": "<string>",
"license_key": "<string>",
"metadata": {
"hwid": "<string>"
},
"purchase_price": <float>,
"total_paid": <float>,
"schedulled_cancel": false,
"stripe_sub_id": "<string>",
"stripe_cust_id": "<string>",
"join_date": "<string>"
}
}
curl --request POST \
--url "https://api.hyperaze.com/api/v1/memberships/cancel" \
--header "Authorization: Bearer $API_KEY" \
--data '{
"id": "<string>"
}'
import requests
url = "https://api.hyperaze.com/api/v1/memberships/cancel"
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
data = {
"id": "<string>"
}
response = requests.post(url, headers=headers, json=data)
print(response.status_code)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/memberships/cancel", {
method: "POST",
headers: {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
id: "<string>"
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
<?php
$url = "http://api.hyperaze.com/api/v1/memberships/cancel";
$data = [
"id" => "<string>"
];
$options = [
"http" => [
"header" => "Content-Type: application/json\r\nAuthorization: Bearer <API_KEY>\r\n",
"method" => "POST",
"content" => json_encode($data),
]
];
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
if ($response === FALSE) {
die("Error occurred");
}
echo $response;
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
url := "http://api.hyperaze.com/api/v1/memberships/cancel"
payload := map[string]string{
"id": "<string>",
}
jsonData, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "Bearer <API_KEY>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println(result)
}
import kong.unirest.Unirest;
import kong.unirest.HttpResponse;
import kong.unirest.JsonNode;
public class Main {
public static void main(String[] args) {
HttpResponse<JsonNode> response = Unirest.post("http://api.hyperaze.com/api/v1/memberships/cancel")
.header("Authorization", "Bearer <API_KEY>")
.header("Content-Type", "application/json")
.body("{\"id\": \"<string>\"}")
.asJson();
System.out.println(response.getBody());
}
}
{
"status": "success",
"response": {
"data": {
"id": "<string>",
"user_id": "<string>",
"username": "<string>",
"name": "<string>",
"discord": {
"id": "<string>",
"username": "<string>"
},
"product": "<string>",
"plan": "<string>",
"active": true,
"license_key": "<string>",
"metadata": {
"hwid": "<string>"
},
"purchase_price": <float>,
"total_paid": <float>,
"schedulled_cancel": false,
"stripe_sub_id": "<string>",
"stripe_cust_id": "<string>",
"join_date": "<string>"
}
}