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
GET /api/v1/memberships
curl --request GET \
--url "https://api.hyperaze.com/api/v1/memberships" \
--header "Authorization: Bearer $API_KEY"
import requests
url = "https://api.hyperaze.com/api/v1/memberships"
headers = {
"Authorization": "Bearer <API_KEY>"
}
response = requests.get(url, headers=headers)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/memberships", {
method: "GET",
headers: {
"Authorization": "Bearer <API_KEY>"
}
})
.then(response => response.json())
.then(data => {
console.dir(data, { depth: null });
})
.catch(error => console.error("Error:", error));
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://api.hyperaze.com/api/v1/memberships?status=active");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$headers = [
"Authorization: Bearer <API_KEY>"
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
} else {
echo $result;
}
curl_close($ch);
?>
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
client := &http.Client{}
req, err := http.NewRequest("GET", "http://api.hyperaze.com/api/v1/memberships?status=active", nil)
if err != nil {
panic(err)
}
req.Header.Add("Authorization", "Bearer <API_KEY>")
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import kong.unirest.HttpResponse;
import kong.unirest.Unirest;
public class MembershipsRequest {
public static void main(String[] args) {
HttpResponse<String> response = Unirest.get("http://api.hyperaze.com/api/v1/memberships")
.header("Authorization", "Bearer <API_KEY>")
.queryString("status", "active")
.asString();
System.out.println(response.getBody());
}
}
{
"status": "success",
"response": {
"data": {
"users": [
{
"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 GET \
--url "https://api.hyperaze.com/api/v1/memberships" \
--header "Authorization: Bearer $API_KEY"
import requests
url = "https://api.hyperaze.com/api/v1/memberships"
headers = {
"Authorization": "Bearer <API_KEY>"
}
response = requests.get(url, headers=headers)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/memberships", {
method: "GET",
headers: {
"Authorization": "Bearer <API_KEY>"
}
})
.then(response => response.json())
.then(data => {
console.dir(data, { depth: null });
})
.catch(error => console.error("Error:", error));
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://api.hyperaze.com/api/v1/memberships?status=active");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$headers = [
"Authorization: Bearer <API_KEY>"
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
} else {
echo $result;
}
curl_close($ch);
?>
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
client := &http.Client{}
req, err := http.NewRequest("GET", "http://api.hyperaze.com/api/v1/memberships?status=active", nil)
if err != nil {
panic(err)
}
req.Header.Add("Authorization", "Bearer <API_KEY>")
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import kong.unirest.HttpResponse;
import kong.unirest.Unirest;
public class MembershipsRequest {
public static void main(String[] args) {
HttpResponse<String> response = Unirest.get("http://api.hyperaze.com/api/v1/memberships")
.header("Authorization", "Bearer <API_KEY>")
.queryString("status", "active")
.asString();
System.out.println(response.getBody());
}
}
{
"status": "success",
"response": {
"data": {
"users": [
{
"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>"
}
]
}
}
}