Skip to content

Plan upgrade required (plan-required)

PubNio plan-required problem, HTTP 402: The workspace plan lacks the entitlement the call needs: ads insights, ad writes, analytics history as old as from, or branded connect pages (brandedConnectPages).

HTTP 402 Plan upgrade required. The workspace plan lacks the entitlement the call needs: ads insights, ad writes, analytics history as old as from, or branded connect pages (brandedConnectPages).

When it happens

It also fires when the plan has it but billing is inactive.

43 of 175 API operations declare it.

Response body

{
  "type": "https://pubnio.com/docs/problems/plan-required/",
  "status": 402,
  "title": "Plan upgrade required",
  "detail": "Ads insights and reporting need the Pro plan or higher; this workspace is on Pay as you go.",
  "code": "plan_required",
  "entitlement": "adsInsights",
  "currentPlan": "payg",
  "minimumPlan": "pro",
  "fundingUrl": "/app/1d3e5f70-2a4b-4c6d-8e0f-123456789abc/settings?tab=billing",
  "canManageBilling": false,
  "nextAction": "Ask a workspace owner to upgrade to Pro at /app/1d3e5f70-2a4b-4c6d-8e0f-123456789abc/settings?tab=billing. Connecting and listing ad accounts works on every plan.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
Field Type Always present
entitlement "adsInsights", "adsWrite", "analyticsHistory", "brandedConnectPages" Yes
currentPlan "payg", "pro", "platform", "enterprise" Yes
minimumPlan "payg", "pro", "platform", "enterprise" Yes
fundingUrl string Yes
canManageBilling boolean Yes
nextAction string Yes
param string No
earliestDate string No

Recovery for agents

  • When canManageBilling is false, hand fundingUrl to a workspace owner. For analytics, a from on or after earliestDate works on the current plan.
  • Do what nextAction says.
  • param is the field to change.

Retryable

No: the SDKs mark HTTP 402 not retryable.

Limits

  • Match on type or code, not on detail.

Type to search…

↑↓ navigate↵ selectEsc close