List available plans
Returns the plans the account can subscribe to, already filtered by its billing currency and by the gateways that charge it, together with the gateways available for checkout. Requires the administrator role.
GET
/
enterprise
/
api
/
v1
/
accounts
/
{account_id}
/
billing
/
plans
List available plans
curl --request GET \
--url https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_access_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans")
.header("api_access_token", "<api-key>")
.asString();{
"currency": "USD",
"gateway": "stripe",
"gateways": [
{
"id": 2,
"kind": "stripe",
"name": "Credit card",
"default": true,
"requires_billing_profile": false
}
],
"contact_sales": false,
"read_only": false,
"plans": [
{
"id": 3,
"slug": "growth",
"name": "Growth",
"description": "For teams that already run support on several channels.",
"position": 2,
"included_agents": 10,
"included_inboxes": 5,
"included_ai_actions": 5000,
"included_captain_documents": 50,
"trial_days": 14,
"display_features": [
"whatsapp",
"captain_ai",
"kanban",
"sla"
],
"current": true,
"gateway_ids": [
2
],
"prices": [
{
"id": 11,
"currency": "USD",
"interval": "month",
"amount_cents": 4900,
"current": true
},
{
"id": 12,
"currency": "USD",
"interval": "year",
"amount_cents": 49000,
"current": false
}
]
}
]
}{
"error": "Unauthorized"
}{
"error": "Resource not found"
}Autorizações
Resposta
Success
Plan catalog for the account, already filtered by currency and available gateways.
⌘I
List available plans
curl --request GET \
--url https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_access_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/billing/plans")
.header("api_access_token", "<api-key>")
.asString();{
"currency": "USD",
"gateway": "stripe",
"gateways": [
{
"id": 2,
"kind": "stripe",
"name": "Credit card",
"default": true,
"requires_billing_profile": false
}
],
"contact_sales": false,
"read_only": false,
"plans": [
{
"id": 3,
"slug": "growth",
"name": "Growth",
"description": "For teams that already run support on several channels.",
"position": 2,
"included_agents": 10,
"included_inboxes": 5,
"included_ai_actions": 5000,
"included_captain_documents": 50,
"trial_days": 14,
"display_features": [
"whatsapp",
"captain_ai",
"kanban",
"sla"
],
"current": true,
"gateway_ids": [
2
],
"prices": [
{
"id": 11,
"currency": "USD",
"interval": "month",
"amount_cents": 4900,
"current": true
},
{
"id": 12,
"currency": "USD",
"interval": "year",
"amount_cents": 49000,
"current": false
}
]
}
]
}{
"error": "Unauthorized"
}{
"error": "Resource not found"
}