# GET /api/v1/billing/pricing-config

> Get Pricing Config

- **Tag:** billing
- **Operation ID:** `get_pricing_config_api_v1_billing_pricing_config_get`

## Description

Return billing pricing configuration derived from the single discount knob.

The frontend uses this to render annual savings and badge labels without
duplicating the discount percentage. Changing the discount on the backend
(``ANNUAL_DISCOUNT_PCT``) automatically updates every UI surface.

**Returns:**
- `annual_discount_pct`: Fractional annual discount (e.g. `0.1667`).
- `annual_discount_label`: Human label for the annual badge.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Responses

### 200 — Successful Response

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/billing/pricing-config' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/billing/pricing-config', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/billing/pricing-config", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/billing/get-pricing-config
- OpenAPI slice: https://www.ondayzero.com/docs/reference/billing/get-pricing-config/openapi.json
- Other endpoints in **billing**: https://www.ondayzero.com/docs/reference/billing
