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/checkouts/create
curl --request POST \
--url "https://api.hyperaze.com/api/v1/checkouts/create" \
--header "Authorization: Bearer $API_KEY" \
--data '{
"plan_id": "<string>"
}'
import requests
url = "https://api.hyperaze.com/api/v1/checkouts/create"
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
data = {
"plan_id": "<plan_id>",
"password": "12345",
"stocks": 1,
"stock_type": "Limited"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/checkouts/create", {
method: "POST",
headers: {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
plan_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/checkouts/create";
$data = json_encode([
"plan_id" => "<string>",
"stocks" => 10,
"active" => true
]);
$options = [
"http" => [
"header" => "Authorization: Bearer <API_KEY>\r\nContent-Type: application/json\r\n",
"method" => "POST",
"content" => $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"
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "http://api.hyperaze.com/api/v1/checkouts/create"
jsonData := []byte(`{"plan_id": "<string>", "stocks": 10, "active": true}`)
req, err := 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("Request error:", err)
return
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import kong.unirest.Unirest;
import kong.unirest.HttpResponse;
public class Main {
public static void main(String[] args) {
HttpResponse<String> response = Unirest.post("http://api.hyperaze.com/api/v1/checkouts/create")
.header("Authorization", "Bearer <API_KEY>")
.header("Content-Type", "application/json")
.body("{\"plan_id\": \"<string>\", \"stocks\": 10, \"active\": true}")
.asString();
System.out.println(response.getBody());
}
}
{
"id": "<string>",
"active": true,
"plan_id": "<string>",
"release_method": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"product_id": "<string>",
"stocks": <integer>,
"claimed": <integer>,
"password": "<string>",
"link": "<string>",
"created_date": "<string>"
}
curl --request POST \
--url "https://api.hyperaze.com/api/v1/checkouts/create" \
--header "Authorization: Bearer $API_KEY" \
--data '{
"plan_id": "<string>"
}'
import requests
url = "https://api.hyperaze.com/api/v1/checkouts/create"
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
data = {
"plan_id": "<plan_id>",
"password": "12345",
"stocks": 1,
"stock_type": "Limited"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/checkouts/create", {
method: "POST",
headers: {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
plan_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/checkouts/create";
$data = json_encode([
"plan_id" => "<string>",
"stocks" => 10,
"active" => true
]);
$options = [
"http" => [
"header" => "Authorization: Bearer <API_KEY>\r\nContent-Type: application/json\r\n",
"method" => "POST",
"content" => $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"
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "http://api.hyperaze.com/api/v1/checkouts/create"
jsonData := []byte(`{"plan_id": "<string>", "stocks": 10, "active": true}`)
req, err := 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("Request error:", err)
return
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import kong.unirest.Unirest;
import kong.unirest.HttpResponse;
public class Main {
public static void main(String[] args) {
HttpResponse<String> response = Unirest.post("http://api.hyperaze.com/api/v1/checkouts/create")
.header("Authorization", "Bearer <API_KEY>")
.header("Content-Type", "application/json")
.body("{\"plan_id\": \"<string>\", \"stocks\": 10, \"active\": true}")
.asString();
System.out.println(response.getBody());
}
}
{
"id": "<string>",
"active": true,
"plan_id": "<string>",
"release_method": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"product_id": "<string>",
"stocks": <integer>,
"claimed": <integer>,
"password": "<string>",
"link": "<string>",
"created_date": "<string>"
}