---
title: "Create subscription"
method: POST
path: "/appReseller/v1/subscriptions"
tags: ["AppResellerSubscription"]
---

# Create subscription

`POST /appReseller/v1/subscriptions`

## Request

- Base URL: `https://marketplace.appdirect.com/api`
- URL: `https://marketplace.appdirect.com/api/appReseller/v1/subscriptions`
- Auth: none declared
- TypeScript: <https://skmtc.dev/appdirect/apis/companies/docs/appReseller/v1/subscriptions/post.ts> (a function with typed inputs; its response is checked against the schema)

Note: This endpoint is being deprecated. // Create a new subscription on behalf of a user who is a member of a marketplace company linked to the current reseller company

## Request body

- AppResellerBillingSubscriptionCreationRequestWS
  - `targetCompanyId` string, required: (Required) ID of the company in which the Reseller will create the new subscription
  - `targetUserId` string, required: (Required) ID of the user for whom the Reseller will create the new subscription
  - `paymentPlanId` string, required: (Required) Edition Payment Plan ID
  - `parentSubscriptionId` string, nullable: ID of an add-on product's parent subscription
  - `orderLines` string, required: Unit type and quantity

## Response `200`

Success

- AppResellerSubscriptionWS
  - `id` string, required: Subscription ID
  - `createdOn` number, required: Creation date of the subscription, in Unix timestamp format
  - `activeOrder` AppResellerSubscriptionActiveOrderWS, required
    - `id` string, required: Order ID
    - `createdOn` number, required: Creation date of the order, in Unix timestamp format
    - `status` string, required: Order status (valid values are INITIALIZED, PENDING_USER_APPROVAL, PENDING_REMOTE_CREATION, PENDING_MANUAL_RECOVERY, PENDING_ASYNCHRONOUS_CREATION, FREE_TRIAL, ACTIVE, FINISHED, ONE_TIME, CANCELLED, SUSPENDED, FREE_TRIAL_EXPIRED, FREE_TRIAL_CANCELLED, DELETED, FAILED, UPCOMING, PENDING_MIGRATION_ACTIVATION, PENDING_DELAYED_PROVISIONING)
    - `frequency` string, required: Frequency (valid values are MONTHLY, QUARTERLY, SIX_MONTHS, YEARLY, TWO_YEARS, THREE_YEARS, DAILY)
    - `totalFee` string, required: Total fee for the order
    - `editionName` string, required: Edition name
    - `orderCartId` string: Order cart ID
    - `orderLines` OrderLineDetailsWS[]: Unit type and quantity
      - `unit` string, nullable, required: Pricing Unit
      - `quantity` string, nullable, required: Quantity
    - `paymentPlanId` string: Edition Payment Plan ID
  - `company` CompanyAssociation, required: A minimum version of a company: includes only the company ID and name
    - `id` string, required: Company ID
    - `name` string, required: Company name
  - `user` UserAssociation, required: A minimum version of a user: includes only the user ID, first name, and last name
    - `id` string, required: User ID
    - `firstName` string, required: User first name
    - `lastName` string, required: User last name
  - `applicationName` string, required: Name of the application related to the subscription
  - `pendingEventType` 'SUBSCRIPTION_ORDER' | 'SUBSCRIPTION_CHANGE' | 'SUBSCRIPTION_CANCEL' | 'SUBSCRIPTION_NOTICE' | 'USER_ASSIGNMENT' | 'USER_UNASSIGNMENT' | 'USER_UPDATED' | 'ADDON_ORDER' | 'ADDON_CHANGE' | 'ADDON_CANCEL' | 'ADDON_BIND' | 'ADDON_UNBIND'
  - `status` string, required: Subscription status (valid values are INITIALIZED, FAILED, FREE_TRIAL, FREE_TRIAL_EXPIRED, ACTIVE, SUSPENDED, or CANCELLED)
  - `referenceCode` string: Code provided by Resellers and Sales Agents while purchasing a subscription

## Other responses

- `401`: Unauthorized
- `409`: Subscription already created

## Changes

- **2026-11-06** `1fc240f06971`: 6 breaking, 10 info
  - added the new required request property `orderLines`
  - added the new required request property `paymentPlanId`
  - added the new required request property `targetCompanyId`
  - added the new required request property `targetUserId`
  - …12 more

[Operation history](https://skmtc.dev/appdirect/apis/companies/changes/appReseller/v1/subscriptions/post.md)

---

[API](https://skmtc.dev/appdirect/apis/companies.md) - [All operations](https://skmtc.dev/appdirect/apis/companies/llms.txt) - [OpenAPI document](https://skmtc.dev/appdirect/apis/companies/revisions/1fc240f06971?raw)
