---
title: "Update subscription"
method: PATCH
path: "/accounts/payment/subscription"
tags: ["Payment"]
---

# Update subscription

`PATCH /accounts/payment/subscription`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/payment/subscription`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/payment/subscription/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates the current subscription

## Request body

- object
  - `items` SubItem[], required
    - `id` string: Subscription item ID
    - `quantity` number, required: Quantity
    - `price` string: Price ID

## Response `200`

Subscription updated successfully

- object
  - `data` object, required: Stripe subscription object

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: No subscription found

## Changes

- **2025-06-12** `4979dfd00eda`: 1 info
  - added the required property `data` to the response with the `200` status
- **2025-06-10** `964e2801b73d`: 2 breaking, 2 info
  - added the new required request property `items/items/quantity`
  - the `items/items/` request property type changed from no type to `object`
  - added the new optional request property `items/items/id`
  - added the new optional request property `items/items/price`

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/payment/subscription/patch.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
