---
title: "Read checkout availability"
method: GET
path: "/billing/config"
tags: ["Billing"]
---

# Read checkout availability

`GET /billing/config`

## Request

- Base URL: `https://gtmswag.com/api/v1`
- URL: `https://gtmswag.com/api/v1/billing/config`
- Auth: HTTP bearer

Whether campaign checkout is available in this workspace (`mode` `sandbox`, `live` or `disabled`). `canPay` is true only for a signed-in owner or admin; keys always get false.

## Response `200`

Success: `{"data": BillingConfig}`.

- BillingConfigResponse: The success body: `{"data": BillingConfig}`.
  - `data` BillingConfig, required: Whether campaign checkout is available in this workspace.
    - `enabled` boolean, required
    - `mode` 'sandbox' | 'live' | 'disabled', required
    - `canPay` boolean, required

## Other responses

- `401`: Not authenticated: `AUTH_REQUIRED`. no credentials, or an OAuth token on a route that only takes workspace keys; the key is malformed, unknown or revoked.
- `429`: Too many requests: `RATE_LIMIT`. more than 240 requests in the current minute for this workspace (REST and MCP share the limit); wait `retryAfterMs`.
- `default`: Any other refusal or failure, such as 403 CSRF (a cross-origin `Origin` header), 403 HTTPS_REQUIRED or 500 INTERNAL_ERROR, with what to do next.

---

[API](https://skmtc.dev/gtmswag/apis/gtm-swag-api.md) · [All operations](https://skmtc.dev/gtmswag/apis/gtm-swag-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gtmswag/apis/gtm-swag-api/revisions/9ff86fa99afe?raw)
