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/validate_license_key
curl --request POST \
--url "https://api.hyperaze.com/api/v1/memberships/validate_license_key" \
--header "Authorization: Bearer $API_KEY" \
--data '{
"license_key": "ABCD-EFGH-IJKL-MNOP",
"metadata": {
"hwid": "DEVICE-ABC-123"
}
"product_id": "prod_id"
}'
import requests
url = "https://api.hyperaze.com/api/v1/memberships/validate_license_key"
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
payload = {
"license_key": "ABCD-EFGH-IJKL-MNOP",
"metadata": {
"hwid": "DEVICE-ABC-123"
}
"product_id": "prod_id"
}
response = requests.post(url, headers=headers, json=payload)
# Print response status and JSON
print(response.status_code)
print(response.json())
# If error: will return status code 403 | 400
# else: 200
fetch("https://api.hyperaze.com/api/v1/memberships/validate_license_key", {
method: "POST",
headers: {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
license_key: "ABCD-EFGH-IJKL-MNOP",
metadata: {
hwid: "DEVICE-ABC-123"
}
product_id: "prod_id"
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
<?php
$url = "http://api.hyperaze.com/api/v1/memberships/validate_license_key";
$data = [
"license_key" => "<string>",
"metadata" => [
"hwid" => "<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/validate_license_key"
payload := map[string]interface{}{
"license_key": "<string>",
"metadata": map[string]string{
"hwid": "<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/validate_license_key")
.header("Authorization", "Bearer <API_KEY>")
.header("Content-Type", "application/json")
.body("{\"license_key\": \"<string>\", \"metadata\": {\"hwid\": \"<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/validate_license_key" \
--header "Authorization: Bearer $API_KEY" \
--data '{
"license_key": "ABCD-EFGH-IJKL-MNOP",
"metadata": {
"hwid": "DEVICE-ABC-123"
}
"product_id": "prod_id"
}'
import requests
url = "https://api.hyperaze.com/api/v1/memberships/validate_license_key"
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
payload = {
"license_key": "ABCD-EFGH-IJKL-MNOP",
"metadata": {
"hwid": "DEVICE-ABC-123"
}
"product_id": "prod_id"
}
response = requests.post(url, headers=headers, json=payload)
# Print response status and JSON
print(response.status_code)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/memberships/validate_license_key", {
method: "POST",
headers: {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
license_key: "ABCD-EFGH-IJKL-MNOP",
metadata: {
hwid: "DEVICE-ABC-123"
}
product_id: "prod_id"
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
<?php
$url = "http://api.hyperaze.com/api/v1/memberships/validate_license_key";
$data = [
"license_key" => "<string>",
"metadata" => [
"hwid" => "<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/validate_license_key"
payload := map[string]interface{}{
"license_key": "<string>",
"metadata": map[string]string{
"hwid": "<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/validate_license_key")
.header("Authorization", "Bearer <API_KEY>")
.header("Content-Type", "application/json")
.body("{\"license_key\": \"<string>\", \"metadata\": {\"hwid\": \"<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>",
"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>"
}
}
}