---
title: "Update subscription"
method: PUT
path: "/subscription/{id}"
tags: ["Subscription"]
---

# Update subscription

`PUT /subscription/{id}`

Update card, address, or interval for an existing subscription.

## Path parameters

- `id` string, required — ID of the subscription to update.

## Request body

- object
  - `cardID` string — New payment method ID for the subscription.
  - `addressID` string — New shipping address ID for the subscription.
  - `schedule` union — New schedule for the subscription.
    - object
      - `type` 'fixed', required
    - object
      - `type` 'weekly', required
      - `interval` integer, required

## Response `200`

Updated subscription information.

- object
  - `data` Subscription, required — Subscription to a Terminal shop product.
    - `id` string, required — Unique object identifier. The format and length of IDs may change over time.
    - `productVariantID` string, required — ID of the product variant being subscribed to.
    - `price` integer, required — Price of the subscription in cents (USD).
    - `quantity` integer, required — Quantity of the subscription.
    - `addressID` string, required — ID of the shipping address used for the subscription.
    - `cardID` string, required — ID of the card used for the subscription.
    - `schedule` union — Schedule of the subscription.
      - object
        - `type` 'fixed', required
      - object
        - `type` 'weekly', required
        - `interval` integer, required
    - `next` string — Next shipment and billing date for the subscription.
    - `created` string, required — Date the subscription was created.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2025-04-23** `bf623569cd3c` — 1 info
  - added the required property `data/allOf[#/components/schemas/Subscription]/price` to the response with the `200` status
- **2025-04-18** `87fca5875059` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/terminaldotshop/apis/terminal-api/changes/subscription/:id/put.md)

---

[API](https://skmtc.dev/terminaldotshop/apis/terminal-api.md) · [All operations](https://skmtc.dev/terminaldotshop/apis/terminal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/terminaldotshop/terminal-api/revisions/84ef614abb97/schema)
