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/plans/retrieve
curl --request GET \
--url "https://api.hyperaze.com/api/v1/plans/retrieve?id={id}" \
--header "Authorization: Bearer $API_KEY" \
import requests
url = "https://api.hyperaze.com/api/v1/plans/retrieve"
headers = {
"Authorization": "Bearer <API_KEY>"
}
params = {
"id": "<id>"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/plans/retrieve?id={id}", {
method: "GET",
headers: {
"Authorization": "Bearer <API_KEY>"
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
<?php
$url = "http://api.hyperaze.com/api/v1/plans/retrieve?id=<id>";
$options = [
"http" => [
"header" => "Authorization: Bearer <API_KEY>\r\n",
"method" => "GET"
]
];
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
if ($response === FALSE) {
die("Error occurred");
}
echo $response;
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "http://api.hyperaze.com/api/v1/plans/retrieve?id=<id>"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Authorization", "Bearer <API_KEY>")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
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.get("http://api.hyperaze.com/api/v1/plans/retrieve?id=<id>")
.header("Authorization", "Bearer <API_KEY>")
.asJson();
System.out.println(response.getBody());
}
}
{
"status": "<string>",
"response": {
"data": {
"pricing_plans": [
{
"id": "<string>",
"name": "<string>",
"pricing_type": "<string>",
"listed": false,
"password": "<string>",
"shuffle_key": true,
"stocks": <int>,
"claimed": <int>,
"users": [
{
"id": "<string>",
"username": "<string>",
"email": "<string>",
"discord": {
"id": "<string>",
"username": "<string>"
}
}
],
"product": "<string>",
"price": <float>,
"renewal_period": <int>,
"renewal_period_unit": "<string>",
"initial_fee": null,
"currency": "<string>",
"trial_duration": null,
"trial_period_unit": "<string>",
"features": [<string>],
"app_links": [
{
"name": "<string>",
"link": "<string>"
}
],
"discord_access": null,
"checkout_links": [
{
"id": "<string>",
"active": false
},
{
"id": "<string>",
"active": false
},
{
"id": "<string>",
"active": false
},
{
"id": "<string>",
"active": true
}
],
"created_date": "<string>"
}
]
}
}
}
curl --request GET \
--url "https://api.hyperaze.com/api/v1/plans/retrieve?id={id}" \
--header "Authorization: Bearer $API_KEY" \
import requests
url = "https://api.hyperaze.com/api/v1/plans/retrieve"
headers = {
"Authorization": "Bearer <API_KEY>"
}
params = {
"id": "<id>"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/plans/retrieve?id={id}", {
method: "GET",
headers: {
"Authorization": "Bearer <API_KEY>"
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
<?php
$url = "http://api.hyperaze.com/api/v1/plans/retrieve?id=<id>";
$options = [
"http" => [
"header" => "Authorization: Bearer <API_KEY>\r\n",
"method" => "GET"
]
];
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
if ($response === FALSE) {
die("Error occurred");
}
echo $response;
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "http://api.hyperaze.com/api/v1/plans/retrieve?id=<id>"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Authorization", "Bearer <API_KEY>")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
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.get("http://api.hyperaze.com/api/v1/plans/retrieve?id=<id>")
.header("Authorization", "Bearer <API_KEY>")
.asJson();
System.out.println(response.getBody());
}
}
{
"status": "<string>",
"response": {
"data": {
"pricing_plans": [
{
"id": "<string>",
"name": "<string>",
"pricing_type": "<string>",
"listed": false,
"active": true,
"password": "<string>",
"shuffle_key": true,
"stocks": <int>,
"claimed": <int>,
"users": [
{
"id": "<string>",
"username": "<string>",
"email": "<string>",
"discord": {
"id": "<string>",
"username": "<string>"
}
}
],
"product": "<string>",
"price": <float>,
"renewal_period": <int>,
"renewal_period_unit": "<string>",
"initial_fee": null,
"currency": "<string>",
"trial_duration": null,
"trial_period_unit": "<string>",
"features": [<string>],
"app_links": [
{
"name": "<string>",
"link": "<string>"
}
],
"discord_access": null,
"checkout_links": [
{
"id": "<string>",
"active": false
},
{
"id": "<string>",
"active": false
},
{
"id": "<string>",
"active": false
},
{
"id": "<string>",
"active": true
}
],
"created_date": "<string>"
}
]
}
}
}