updateAccountSubscription
curl --request POST \
--url https://alphainsider.com/api/updateAccountSubscription \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://alphainsider.com/api/updateAccountSubscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/updateAccountSubscription"
payload = {}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/updateAccountSubscription",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://alphainsider.com/api/updateAccountSubscription"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": {
"account_subscription_id": "oPajv9WU3wtwtBYLQxm4z",
"user_id": "user_1",
"status": "pending",
"product_id": "7wswTAd1xbDAEQkPhbBn6",
"type": "standard",
"timeframe": "month",
"level": 0,
"name": "Standard Account Subscription",
"next_product_id": "qkV9qPfpxr4wWMaZKprdI",
"next_type": "pro",
"next_timeframe": "month",
"next_level": 1,
"next_name": "Pro Account Monthly Subscription",
"invoice_id": "NJ9Fo2OSoM5MRy5ithwnw",
"limits": {
"new_order": 50,
"new_post": 100,
"like": 100,
"max_sessions": 100,
"max_api_tokens": 50,
"max_strategies": 5,
"max_subscriptions": 10,
"max_open_orders": 100,
"max_bots": 0
},
"end_date": null,
"updated_at": "2024-10-08T16:30:00.062Z",
"created_at": "2024-08-30T13:40:27.343Z"
}
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}Subscriptions
updateAccountSubscription
Update account subscription.
POST
/
updateAccountSubscription
updateAccountSubscription
curl --request POST \
--url https://alphainsider.com/api/updateAccountSubscription \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://alphainsider.com/api/updateAccountSubscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/updateAccountSubscription"
payload = {}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/updateAccountSubscription",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://alphainsider.com/api/updateAccountSubscription"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": {
"account_subscription_id": "oPajv9WU3wtwtBYLQxm4z",
"user_id": "user_1",
"status": "pending",
"product_id": "7wswTAd1xbDAEQkPhbBn6",
"type": "standard",
"timeframe": "month",
"level": 0,
"name": "Standard Account Subscription",
"next_product_id": "qkV9qPfpxr4wWMaZKprdI",
"next_type": "pro",
"next_timeframe": "month",
"next_level": 1,
"next_name": "Pro Account Monthly Subscription",
"invoice_id": "NJ9Fo2OSoM5MRy5ithwnw",
"limits": {
"new_order": 50,
"new_post": 100,
"like": 100,
"max_sessions": 100,
"max_api_tokens": 50,
"max_strategies": 5,
"max_subscriptions": 10,
"max_open_orders": 100,
"max_bots": 0
},
"end_date": null,
"updated_at": "2024-10-08T16:30:00.062Z",
"created_at": "2024-08-30T13:40:27.343Z"
}
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}Headers
User API token.
Body
application/json
⌘I