---
title: "Update subscription"
method: PUT
path: "/billing/subscription"
tags: ["billing"]
---

# Update subscription

`PUT /billing/subscription`

## Request

- Base URL: `https://api.leadsforge.ai`
- URL: `https://api.leadsforge.ai/billing/subscription`
- Auth: API key in header `Authorization`

Update subscription

## Request body

- UpdateSubscriptionRequest
  - `billingPeriod` 'monthly' | 'yearly', required
  - `exportCreditsTier` integer, required

## Response `200`

Redirect URL

- ChargebeeRedirectResponse
  - `url` string

## Other responses

- `202`: Accepted
- `400`: Bad Request
- `403`: Forbidden - code purchase_requires_approval: the purchase needs a human review before it can go through and the customer should contact support. Nothing was charged
- `500`: Internal Server Error

---

[API](https://skmtc.dev/leadsforge/apis/leadsforge-api.md) - [All operations](https://skmtc.dev/leadsforge/apis/leadsforge-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leadsforge/apis/leadsforge-api/revisions/b4a6596215b5?raw)
