Create a plan
Creates a plan and its price table. When the plan is sold through Stripe it is mirrored into the Stripe catalog; if that mirroring fails the plan is still created and the response carries stripe_sync_error.
POST
/
platform
/
api
/
v1
/
billing
/
plans
Create a plan
curl --request POST \
--url https://chat.wiseapp360.com/platform/api/v1/billing/plans \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"plan": {
"name": "Growth",
"slug": "growth",
"description": "For teams that already run support on several channels.",
"position": 2,
"active": true,
"public": true,
"default_for_signup": false,
"trial_days": 14,
"trial_ai_actions": 200,
"included_agents": 10,
"included_inboxes": 5,
"included_ai_actions": 5000,
"included_captain_documents": 50,
"features": [
"channel_whatsapp",
"captain_integration",
"kanban_board",
"sla"
],
"providers": [
"stripe",
"asaas"
],
"addon_rules": {
"extra_agents": {
"enabled": true,
"max_quantity": 20
}
},
"prices": [
{
"currency": "USD",
"interval": "month",
"amount_cents": 4900
},
{
"currency": "USD",
"interval": "year",
"amount_cents": 49000
},
{
"currency": "BRL",
"interval": "month",
"amount_cents": 24900
}
]
}
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
plan: {
name: 'Growth',
slug: 'growth',
description: 'For teams that already run support on several channels.',
position: 2,
active: true,
public: true,
default_for_signup: false,
trial_days: 14,
trial_ai_actions: 200,
included_agents: 10,
included_inboxes: 5,
included_ai_actions: 5000,
included_captain_documents: 50,
features: ['channel_whatsapp', 'captain_integration', 'kanban_board', 'sla'],
providers: ['stripe', 'asaas'],
addon_rules: {extra_agents: {enabled: true, max_quantity: 20}},
prices: [
{currency: 'USD', interval: 'month', amount_cents: 4900},
{currency: 'USD', interval: 'year', amount_cents: 49000},
{currency: 'BRL', interval: 'month', amount_cents: 24900}
]
}
})
};
fetch('https://chat.wiseapp360.com/platform/api/v1/billing/plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/platform/api/v1/billing/plans"
payload = { "plan": {
"name": "Growth",
"slug": "growth",
"description": "For teams that already run support on several channels.",
"position": 2,
"active": True,
"public": True,
"default_for_signup": False,
"trial_days": 14,
"trial_ai_actions": 200,
"included_agents": 10,
"included_inboxes": 5,
"included_ai_actions": 5000,
"included_captain_documents": 50,
"features": ["channel_whatsapp", "captain_integration", "kanban_board", "sla"],
"providers": ["stripe", "asaas"],
"addon_rules": { "extra_agents": {
"enabled": True,
"max_quantity": 20
} },
"prices": [
{
"currency": "USD",
"interval": "month",
"amount_cents": 4900
},
{
"currency": "USD",
"interval": "year",
"amount_cents": 49000
},
{
"currency": "BRL",
"interval": "month",
"amount_cents": 24900
}
]
} }
headers = {
"api_access_token": "<api-key>",
"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://chat.wiseapp360.com/platform/api/v1/billing/plans",
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([
'plan' => [
'name' => 'Growth',
'slug' => 'growth',
'description' => 'For teams that already run support on several channels.',
'position' => 2,
'active' => true,
'public' => true,
'default_for_signup' => false,
'trial_days' => 14,
'trial_ai_actions' => 200,
'included_agents' => 10,
'included_inboxes' => 5,
'included_ai_actions' => 5000,
'included_captain_documents' => 50,
'features' => [
'channel_whatsapp',
'captain_integration',
'kanban_board',
'sla'
],
'providers' => [
'stripe',
'asaas'
],
'addon_rules' => [
'extra_agents' => [
'enabled' => true,
'max_quantity' => 20
]
],
'prices' => [
[
'currency' => 'USD',
'interval' => 'month',
'amount_cents' => 4900
],
[
'currency' => 'USD',
'interval' => 'year',
'amount_cents' => 49000
],
[
'currency' => 'BRL',
'interval' => 'month',
'amount_cents' => 24900
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/platform/api/v1/billing/plans"
payload := strings.NewReader("{\n \"plan\": {\n \"name\": \"Growth\",\n \"slug\": \"growth\",\n \"description\": \"For teams that already run support on several channels.\",\n \"position\": 2,\n \"active\": true,\n \"public\": true,\n \"default_for_signup\": false,\n \"trial_days\": 14,\n \"trial_ai_actions\": 200,\n \"included_agents\": 10,\n \"included_inboxes\": 5,\n \"included_ai_actions\": 5000,\n \"included_captain_documents\": 50,\n \"features\": [\n \"channel_whatsapp\",\n \"captain_integration\",\n \"kanban_board\",\n \"sla\"\n ],\n \"providers\": [\n \"stripe\",\n \"asaas\"\n ],\n \"addon_rules\": {\n \"extra_agents\": {\n \"enabled\": true,\n \"max_quantity\": 20\n }\n },\n \"prices\": [\n {\n \"currency\": \"USD\",\n \"interval\": \"month\",\n \"amount_cents\": 4900\n },\n {\n \"currency\": \"USD\",\n \"interval\": \"year\",\n \"amount_cents\": 49000\n },\n {\n \"currency\": \"BRL\",\n \"interval\": \"month\",\n \"amount_cents\": 24900\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_access_token", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://chat.wiseapp360.com/platform/api/v1/billing/plans")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"plan\": {\n \"name\": \"Growth\",\n \"slug\": \"growth\",\n \"description\": \"For teams that already run support on several channels.\",\n \"position\": 2,\n \"active\": true,\n \"public\": true,\n \"default_for_signup\": false,\n \"trial_days\": 14,\n \"trial_ai_actions\": 200,\n \"included_agents\": 10,\n \"included_inboxes\": 5,\n \"included_ai_actions\": 5000,\n \"included_captain_documents\": 50,\n \"features\": [\n \"channel_whatsapp\",\n \"captain_integration\",\n \"kanban_board\",\n \"sla\"\n ],\n \"providers\": [\n \"stripe\",\n \"asaas\"\n ],\n \"addon_rules\": {\n \"extra_agents\": {\n \"enabled\": true,\n \"max_quantity\": 20\n }\n },\n \"prices\": [\n {\n \"currency\": \"USD\",\n \"interval\": \"month\",\n \"amount_cents\": 4900\n },\n {\n \"currency\": \"USD\",\n \"interval\": \"year\",\n \"amount_cents\": 49000\n },\n {\n \"currency\": \"BRL\",\n \"interval\": \"month\",\n \"amount_cents\": 24900\n }\n ]\n }\n}")
.asString();{
"id": 3,
"name": "Growth",
"slug": "growth",
"description": "For teams that already run support on several channels.",
"position": 2,
"active": true,
"public": true,
"default_for_signup": false,
"trial_days": 14,
"trial_ai_actions": 200,
"included_agents": 10,
"included_inboxes": 5,
"included_ai_actions": 5000,
"included_captain_documents": 50,
"features": [
"channel_whatsapp",
"captain_integration",
"kanban_board",
"sla"
],
"display_features": [
"whatsapp",
"captain_ai",
"kanban",
"sla"
],
"providers": [
"stripe",
"asaas"
],
"addon_rules": {
"extra_agents": {
"enabled": true,
"max_quantity": 20
},
"extra_inboxes": {
"enabled": false
}
},
"captain_models": {
"chat": {
"allowed": [
"claude-sonnet-5",
"claude-haiku-4-5-20251001"
],
"default": "claude-haiku-4-5-20251001"
}
},
"shopify_plan_handle": null,
"stripe_product_id": "prod_R2kQvHnZ9xLmTa",
"prices": [
{
"id": 11,
"currency": "USD",
"interval": "month",
"amount_cents": 4900,
"stripe_price_id": "price_1Q8xKzLhmFSOYwNq"
},
{
"id": 12,
"currency": "USD",
"interval": "year",
"amount_cents": 49000,
"stripe_price_id": "price_1Q8xL4LhmFSOYwNq"
},
{
"id": 13,
"currency": "BRL",
"interval": "month",
"amount_cents": 24900,
"stripe_price_id": null
}
],
"subscriptions_count": 42,
"created_at": "2026-02-11T09:14:03Z",
"updated_at": "2026-09-02T17:41:55Z"
}{
"error": "Unauthorized"
}{
"error": "Resource not found"
}{
"message": "Validation failed",
"attributes": [
"name cannot be blank"
]
}Autorizações
Corpo
application/jsonapplication/x-www-form-urlencoded
Resposta
Plan created
A plan of the catalog, with every field an operator edits.
⌘I
Create a plan
curl --request POST \
--url https://chat.wiseapp360.com/platform/api/v1/billing/plans \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"plan": {
"name": "Growth",
"slug": "growth",
"description": "For teams that already run support on several channels.",
"position": 2,
"active": true,
"public": true,
"default_for_signup": false,
"trial_days": 14,
"trial_ai_actions": 200,
"included_agents": 10,
"included_inboxes": 5,
"included_ai_actions": 5000,
"included_captain_documents": 50,
"features": [
"channel_whatsapp",
"captain_integration",
"kanban_board",
"sla"
],
"providers": [
"stripe",
"asaas"
],
"addon_rules": {
"extra_agents": {
"enabled": true,
"max_quantity": 20
}
},
"prices": [
{
"currency": "USD",
"interval": "month",
"amount_cents": 4900
},
{
"currency": "USD",
"interval": "year",
"amount_cents": 49000
},
{
"currency": "BRL",
"interval": "month",
"amount_cents": 24900
}
]
}
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
plan: {
name: 'Growth',
slug: 'growth',
description: 'For teams that already run support on several channels.',
position: 2,
active: true,
public: true,
default_for_signup: false,
trial_days: 14,
trial_ai_actions: 200,
included_agents: 10,
included_inboxes: 5,
included_ai_actions: 5000,
included_captain_documents: 50,
features: ['channel_whatsapp', 'captain_integration', 'kanban_board', 'sla'],
providers: ['stripe', 'asaas'],
addon_rules: {extra_agents: {enabled: true, max_quantity: 20}},
prices: [
{currency: 'USD', interval: 'month', amount_cents: 4900},
{currency: 'USD', interval: 'year', amount_cents: 49000},
{currency: 'BRL', interval: 'month', amount_cents: 24900}
]
}
})
};
fetch('https://chat.wiseapp360.com/platform/api/v1/billing/plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/platform/api/v1/billing/plans"
payload = { "plan": {
"name": "Growth",
"slug": "growth",
"description": "For teams that already run support on several channels.",
"position": 2,
"active": True,
"public": True,
"default_for_signup": False,
"trial_days": 14,
"trial_ai_actions": 200,
"included_agents": 10,
"included_inboxes": 5,
"included_ai_actions": 5000,
"included_captain_documents": 50,
"features": ["channel_whatsapp", "captain_integration", "kanban_board", "sla"],
"providers": ["stripe", "asaas"],
"addon_rules": { "extra_agents": {
"enabled": True,
"max_quantity": 20
} },
"prices": [
{
"currency": "USD",
"interval": "month",
"amount_cents": 4900
},
{
"currency": "USD",
"interval": "year",
"amount_cents": 49000
},
{
"currency": "BRL",
"interval": "month",
"amount_cents": 24900
}
]
} }
headers = {
"api_access_token": "<api-key>",
"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://chat.wiseapp360.com/platform/api/v1/billing/plans",
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([
'plan' => [
'name' => 'Growth',
'slug' => 'growth',
'description' => 'For teams that already run support on several channels.',
'position' => 2,
'active' => true,
'public' => true,
'default_for_signup' => false,
'trial_days' => 14,
'trial_ai_actions' => 200,
'included_agents' => 10,
'included_inboxes' => 5,
'included_ai_actions' => 5000,
'included_captain_documents' => 50,
'features' => [
'channel_whatsapp',
'captain_integration',
'kanban_board',
'sla'
],
'providers' => [
'stripe',
'asaas'
],
'addon_rules' => [
'extra_agents' => [
'enabled' => true,
'max_quantity' => 20
]
],
'prices' => [
[
'currency' => 'USD',
'interval' => 'month',
'amount_cents' => 4900
],
[
'currency' => 'USD',
'interval' => 'year',
'amount_cents' => 49000
],
[
'currency' => 'BRL',
'interval' => 'month',
'amount_cents' => 24900
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/platform/api/v1/billing/plans"
payload := strings.NewReader("{\n \"plan\": {\n \"name\": \"Growth\",\n \"slug\": \"growth\",\n \"description\": \"For teams that already run support on several channels.\",\n \"position\": 2,\n \"active\": true,\n \"public\": true,\n \"default_for_signup\": false,\n \"trial_days\": 14,\n \"trial_ai_actions\": 200,\n \"included_agents\": 10,\n \"included_inboxes\": 5,\n \"included_ai_actions\": 5000,\n \"included_captain_documents\": 50,\n \"features\": [\n \"channel_whatsapp\",\n \"captain_integration\",\n \"kanban_board\",\n \"sla\"\n ],\n \"providers\": [\n \"stripe\",\n \"asaas\"\n ],\n \"addon_rules\": {\n \"extra_agents\": {\n \"enabled\": true,\n \"max_quantity\": 20\n }\n },\n \"prices\": [\n {\n \"currency\": \"USD\",\n \"interval\": \"month\",\n \"amount_cents\": 4900\n },\n {\n \"currency\": \"USD\",\n \"interval\": \"year\",\n \"amount_cents\": 49000\n },\n {\n \"currency\": \"BRL\",\n \"interval\": \"month\",\n \"amount_cents\": 24900\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_access_token", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://chat.wiseapp360.com/platform/api/v1/billing/plans")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"plan\": {\n \"name\": \"Growth\",\n \"slug\": \"growth\",\n \"description\": \"For teams that already run support on several channels.\",\n \"position\": 2,\n \"active\": true,\n \"public\": true,\n \"default_for_signup\": false,\n \"trial_days\": 14,\n \"trial_ai_actions\": 200,\n \"included_agents\": 10,\n \"included_inboxes\": 5,\n \"included_ai_actions\": 5000,\n \"included_captain_documents\": 50,\n \"features\": [\n \"channel_whatsapp\",\n \"captain_integration\",\n \"kanban_board\",\n \"sla\"\n ],\n \"providers\": [\n \"stripe\",\n \"asaas\"\n ],\n \"addon_rules\": {\n \"extra_agents\": {\n \"enabled\": true,\n \"max_quantity\": 20\n }\n },\n \"prices\": [\n {\n \"currency\": \"USD\",\n \"interval\": \"month\",\n \"amount_cents\": 4900\n },\n {\n \"currency\": \"USD\",\n \"interval\": \"year\",\n \"amount_cents\": 49000\n },\n {\n \"currency\": \"BRL\",\n \"interval\": \"month\",\n \"amount_cents\": 24900\n }\n ]\n }\n}")
.asString();{
"id": 3,
"name": "Growth",
"slug": "growth",
"description": "For teams that already run support on several channels.",
"position": 2,
"active": true,
"public": true,
"default_for_signup": false,
"trial_days": 14,
"trial_ai_actions": 200,
"included_agents": 10,
"included_inboxes": 5,
"included_ai_actions": 5000,
"included_captain_documents": 50,
"features": [
"channel_whatsapp",
"captain_integration",
"kanban_board",
"sla"
],
"display_features": [
"whatsapp",
"captain_ai",
"kanban",
"sla"
],
"providers": [
"stripe",
"asaas"
],
"addon_rules": {
"extra_agents": {
"enabled": true,
"max_quantity": 20
},
"extra_inboxes": {
"enabled": false
}
},
"captain_models": {
"chat": {
"allowed": [
"claude-sonnet-5",
"claude-haiku-4-5-20251001"
],
"default": "claude-haiku-4-5-20251001"
}
},
"shopify_plan_handle": null,
"stripe_product_id": "prod_R2kQvHnZ9xLmTa",
"prices": [
{
"id": 11,
"currency": "USD",
"interval": "month",
"amount_cents": 4900,
"stripe_price_id": "price_1Q8xKzLhmFSOYwNq"
},
{
"id": 12,
"currency": "USD",
"interval": "year",
"amount_cents": 49000,
"stripe_price_id": "price_1Q8xL4LhmFSOYwNq"
},
{
"id": 13,
"currency": "BRL",
"interval": "month",
"amount_cents": 24900,
"stripe_price_id": null
}
],
"subscriptions_count": 42,
"created_at": "2026-02-11T09:14:03Z",
"updated_at": "2026-09-02T17:41:55Z"
}{
"error": "Unauthorized"
}{
"error": "Resource not found"
}{
"message": "Validation failed",
"attributes": [
"name cannot be blank"
]
}