Create a product.
If you receive an error message stating "Precondition failed, the store not found.", please first create a store using the Create a store API.
The identifier of your store. You need to generate it yourself. Note that this value must consist of numbers and letters (A-Z, a-z, 0-9), and special characters can only be hyphens (-) or underscores (_). For example, if you have a store called "soft life", you can fill in soft-life or soft_life for the value. Before creating an product using this header, please ensure that you create the store resource first. Otherwise, it may result in errors.
A unique identifier for the product.
The title of the product.
URL friendly unique identifier for the product. It is different from the order slug.
Catogories for the product used for filtering and searching products.
Tags that are used for filtering and search.
URLs of the images.
URL of a product.
To indicate whether a product has been published.
Description of a product.
Variants of a product.
A unique identifier for the product variant.
Available quantity.
A unique identifier for the product variant in the shop
The title of the product variant
The price of the product variant.
URLs of the images.
The original price of the item before an adjustment or a sale.
When using this weight object as the unit_weight
in order.items
, it is considered a Snapshot field
that cannot be changed after creating in AfterShip.
To indicate whether customers are allowed to place an order for the product variant that's out of stock.
The custom product properties.
The date and time when the product was created. ISO 8601.
The date and time when the product was last modified. ISO 8601.