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

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Workspace billing gateway mismatch (billing-provider-mismatch)

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`](https://pubnio.com/api/v1/docs#tag/billing/POST/api/v1/workspaces/{workspaceId}/billing/checkout) and [`POST /api/v1/workspaces/{workspaceId}/billing/portal`](https://pubnio.com/api/v1/docs#tag/billing/POST/api/v1/workspaces/{workspaceId}/billing/portal).

## Response body

```json
{
  "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`.

## Related

- [Billing problems](https://pubnio.com/docs/problems/#billing)
- [API reference](https://pubnio.com/docs/api/)

Source: https://pubnio.com/docs/problems/billing-provider-mismatch/index.mdx
