---
title: "Create Order"
method: POST
path: "/v1/subscription/order"
tags: ["subscription"]
---

# Create Order

`POST /v1/subscription/order`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/subscription/order`
- Auth: HTTP bearer

## Request body

- OrderPayload
  - `checkout_token` string, required
  - `payment_gateway` 'RAZORPAY' | 'LEMON_SQUEEZY' | 'DODO_PAYMENTS', required: Payment gateways. Canonical definition — subscription schemas re-export it, and settings.india_payment_gateway (the kill switch) uses it.
  - `redirect_url` string, nullable
  - `name` string, nullable
  - `email` string, nullable
  - `phone_number` string, nullable
  - `is_business` boolean
  - `business_name` string, nullable
  - `tax_id` string, nullable
  - `tax_country_code` string, nullable
  - `country_code` string, nullable
  - `address` string, nullable
  - `cancel_existing_subscription` boolean

## Response `200`

Successful Response

- OrderResponse
  - `id` string, required
  - `url` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
