Create a product variant
POST/v1/menu/products/:id/variants
Creates a variant on an existing product. name, original_price, price, and sku are required; all other fields are optional. cost and packaging_price are write-only — accepted, never returned. Local validation covers price <= original_price and field limits against the values in this request; a value that compares fine here may still be rejected at save time if it conflicts with the product’s persisted original_price.
Required scope: menu:write
Request
Responses
- 201
- 401
- 403
- 404
- 422
The created variant.
Unauthenticated — the request is missing a credential, or the Bearer token / API key is invalid, expired, or revoked.
Insufficient scope — the credential is authenticated but lacks a scope the endpoint requires.
Not found — no resource matches the id in the path (or it belongs to a different company).
Validation failed — the request body failed schema validation. errors[] lists every offending field.