Get partner plan
Overview
Get a single plan for the authenticated partner (usage-based: for editing; plan-based: read-only).
Prerequisites
- A bearer token. Callable with Partner tokens.
- The
planIdof the record you are targeting.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
GET /api/v1/partner/plans/{planId}
Authentication
- Requires a bearer token in the
Authorization: Bearer <bearer-token>header. - Who can call it: Partner tokens.
- Sits in the authenticated group, with no extra route-level guard.
getPartnerPlanresolves the partner viagetAuthPartner(403 if none).- You must link the plan to the partner via
company_plans(planBelongsToCompany) else 403. - Usage-based, then must be
plan_type=usage-based AND is_admin_managed=0else 403; plan-based, then must beplan_type=plan-based AND is_admin_managed=1else 403. - 404 if the plan id doesn't exist.
Rate limit
- No rate limit.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
planId | integer | Required | Digits only. |
Path parameters
| Param | In | Type | Required | Description |
|---|---|---|---|---|
planId | path | integer | Yes | Plan ID (route [0-9]+). Must belong to the partner. |
Response
200 OK · 200
200{
"data": {
"data": {
"id": 4,
"plan_name": "Gold",
"price": 4,
"status": "active",
"plan_type": "plan-based",
"is_admin_managed": true,
"features": [
{
"feature_name": "ai_response",
"enabled": true,
"overage_rate": "0.0800",
"hard_stop": false,
"partner_billing_enabled": true
}
],
"plan_review_sites": [
{
"review_site_id": 1,
"pull_frequency": "daily",
"review_site": {
"id": 1,
"name": "Yelp",
"auth_type": "cookie"
}
}
]
},
"meta": {
"read_only": true
}
}
}Errors
| Status | Meaning |
|---|---|
401 | The bearer token is missing, expired or invalid |
403 | Returned if none |
404 | Returned if the plan id doesn't exist |
500 | Unexpected server error |
Example request
curl --request GET \
--url "https://production-api.shoutaboutus.com/api/v1/partner/plans/123" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 8 days ago
Did this page help you?
