---
title: "Subscribe"
method: POST
path: "/subscription"
tags: ["Subscription"]
---

# Subscribe

`POST /subscription`

Create a subscription for the current user.

## Request body

- Subscription — 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.
  - `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.

## Response `200`

Subscription was created successfully.

- object
  - `data` 'ok', required

## Changes

- **2025-02-26** `63020ea66b47` — 1 warning
  - removed the request property `allOf[#/components/schemas/Subscription]/frequency`
- **2025-02-17** `a43b29f86639` — 1 breaking, 1 info
  - removed `subschema #1, subschema #2` from the `allOf[#/components/schemas/Subscription]/schedule` request property `oneOf` list
  - added `subschema #1: fixed, subschema #2: weekly` to the `allOf[#/components/schemas/Subscription]/schedule` request property `oneOf` list
- **2025-02-16** `d05a14360ad1` — 1 info
  - added the new optional request property `allOf[#/components/schemas/Subscription]/schedule`
- **2025-02-06** `628874ec2e5b` — 1 info
  - added the new optional request property `allOf[#/components/schemas/Subscription]/next`
- **2024-12-18** `416a8af6f912` — 2 info
  - the `data` response property const value `ok` was added for the status `200`
  - removed the `ok` enum value from the `data` response property for the response status `200`

[Full history](https://skmtc.dev/terminaldotshop/apis/terminal-api/changes/subscription/post.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/cb4577d95656/schema)
