---
title: "Create Subscription"
method: POST
path: "/v1/public/subscriptions"
tags: ["Subscriptions"]
---

# Create Subscription

`POST /v1/public/subscriptions`

## Request body

- SubscriptionCreatePayload
  - `cid` string, required
  - `items` SubscriptionItemInput[], required
    - `id` string, required
    - `amount` integer, required
    - `price` number, nullable
    - `name` string, nullable
  - `subscription_status` string, required
  - `currency` string, nullable
  - `start_date` string, date, nullable
  - `total_price` number, nullable
  - `frequency` integer, nullable
  - `frequency_time` string, nullable
  - `tax` number, nullable
  - `shipping_cost_tax_status` string, nullable

## Response `200`

OK

- SubscriptionDetailSchema
  - `id` string, required
  - `status` string, nullable
  - `subscription_status` string, nullable
  - `created_at` string, date-time, required
  - `contact_info` SubscriptionContactSchema[], required
    - `id` string, required
    - `name` string, nullable
    - `email` string, nullable
    - `phone` string, nullable
  - `items` SubscriptionItemSchema[], required
    - `id` string, required
    - `name` string, nullable
    - `price` number, nullable
    - `status` string, nullable
    - `amount` integer, required
  - `number_item` integer, required
  - `start_date` string, date, nullable
  - `currency` string, nullable
  - `total_price` number, nullable
  - `prior_to_time` string, nullable
  - `frequency` integer, nullable
  - `frequency_time` string, nullable
  - `tax` number, nullable
  - `shipping_cost_tax_status` string, nullable

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/sankahq/apis/ninjaapi.md) · [All operations](https://skmtc.net/sankahq/apis/ninjaapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sankahq/ninjaapi/versions/c273ff62266a/schema)
