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/update
curl --request POST \
--url "https://api.hyperaze.com/api/v1/checkouts/update" \
--header "Authorization: Bearer $API_KEY" \
--data '{
"id": "<string>",
"active": false
}'
import requests
url = "https://api.hyperaze.com/api/v1/checkouts/update"
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
data = {
"id": "<string>",
"active": False,
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/checkouts/update", {
method: "POST",
headers: {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
id: "<string>",
active: false,
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
<?php
$url = "http://api.hyperaze.com/api/v1/checkouts/update";
$data = json_encode([
"id" => "<string>"
]);
$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/update"
jsonData := []byte(`{"id": "<string>"}`)
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/update")
.header("Authorization", "Bearer <API_KEY>")
.header("Content-Type", "application/json")
.body("{\"id\": \"<string>\"}")
.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/update" \
--header "Authorization: Bearer $API_KEY" \
--data '{
"id": "<string>",
"active": false
}'
import requests
url = "https://api.hyperaze.com/api/v1/checkouts/update"
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
data = {
"id": "<string>",
"active": False,
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
fetch("https://api.hyperaze.com/api/v1/checkouts/update", {
method: "POST",
headers: {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
id: "<string>",
active: false,
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
<?php
$url = "http://api.hyperaze.com/api/v1/checkouts/update";
$data = json_encode([
"id" => "<string>"
]);
$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/update"
jsonData := []byte(`{"id": "<string>"}`)
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/update")
.header("Authorization", "Bearer <API_KEY>")
.header("Content-Type", "application/json")
.body("{\"id\": \"<string>\"}")
.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>"
}