Skip to content

Workspace billing gateway mismatch (billing-provider-mismatch)

PubNio billing-provider-mismatch problem, HTTP 409: The workspace's billing customer belongs to another gateway than the one this environment runs.

HTTP 409 Workspace billing gateway mismatch. The workspace’s billing customer belongs to another gateway than the one this environment runs.

When it happens

2 operations declare it: POST /api/v1/workspaces/{workspaceId}/billing/checkout and POST /api/v1/workspaces/{workspaceId}/billing/portal.

Response body

{
  "type": "https://pubnio.com/docs/problems/billing-provider-mismatch/",
  "status": 409,
  "title": "Workspace billing gateway mismatch",
  "detail": "Workspace billing belongs to gateway 'stripe', not 'fake'.",
  "code": "billing_provider_mismatch",
  "workspaceGateway": "stripe",
  "requestedGateway": "fake",
  "nextAction": "Use the matching billing gateway or run the dev billing reset script.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
Field Type Always present
workspaceGateway "fake", "stripe" Yes
requestedGateway "fake", "stripe" Yes
nextAction string Yes

Recovery for agents

  • Do what nextAction says.

Retryable

No: the SDKs mark HTTP 409 not retryable.

Limits

  • Match on type or code, not on detail.

Type to search…

↑↓ navigate↵ selectEsc close