Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The product's ID.
Query Parameters
Comma-separated fields that should be included in the returned data. if a field is prefixed with +
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.
Body
The product variant's details.
The variant's title.
The variant's prices.
The variant's SKU.
The variant's EAN.
The variant's UPC.
The variant's barcode.
The variant's HS code.
The variant's MID code.
Whether it's allowed to order this variant when it's out of stock.
Whether Medusa manages the variant's inventory quantity. If disabled, the product variant is always considered in stock.
The sorting order of the variant among other variants in the product.
The variant's weight.
The variant's length.
The variant's height.
The variant's width.
The variant's origin country.
The variant's material.
The variant's metadata, used to store custom key-value pairs.
The variant's options, where the key is an option's name, and the value is the option's value.
{ "Color": "Black" }
The variant's inventory items to create.
Pass additional custom data to the API route. This data is passed to the underlying workflow under the additional_data
parameter.
Response
OK
The product's details.
The product's details.