---
title: "Create Variant"
method: POST
path: "/v3/productvariant"
---

# Create Variant

`POST /v3/productvariant`

## Path parameters

- `id` integer, required
- `echo` boolean, required

## Request body

- object
  - `name` string, required — Variant name
  - `cost` integer — Variant cost
  - `price` integer — Variance price
  - `primaryId` integer — SKU
  - `properties` object — Use this if you want to add the variant to option. Within the object include this "your option name":"Your variant name"

## Response `201`

201

- object
  - `id` integer
  - `dateCreated` string
  - `dateModified` string
  - `name` string
  - `productId` integer
  - `primaryId` string
  - `price` string
  - `cost` string
  - `notifyOnLowStock` boolean
  - `hideOnNoStock` boolean
  - `tags` object[]
  - `isActive` boolean
  - `isDeleted` boolean
  - `onHand` integer
  - `properties` object
  - `productProperties` object

## Other responses

- `400` — 400

---

[API](https://skmtc.net/mxmerchant/apis/checkout-api.md) · [All operations](https://skmtc.net/mxmerchant/apis/checkout-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mxmerchant/checkout-api/revisions/6807b698abcb/schema)
