Skip to main content
Version: 202201

Create Product

POST 

/openapi/2022-01/products

Create a new product with the provided details.

Request

Body

    product objectrequired
    titlestringrequired

    Product's title

    briefstring

    Product's briefing description

    descriptionstring

    Product's description

    publishedboolean

    Whether it is published or not

    requires_shippingboolean

    Whether it is required to shipping

    taxableboolean

    Whether it is taxable

    tagsstring

    Tags, separated by comma, for example: tag1,tag2

    vendorstring

    Vendor's name

    vendor_urlstring

    Vendor's URL

    notestring
    seo_titlestring

    SEO title

    seo_descriptionstring

    SEO description

    seo_keywordsstring

    SEO keywords, separated by comma, for example: key1,key2

    handlestring

    Product's handle

    has_only_default_variantbooleanrequired

    Whether it is a single variant

    Default value: true
    inventory_trackingboolean

    Whether to tracking inventory

    inventory_policystring

    Inventory policy: continue, deny, auto_unpublished, required while inventory_tracking is true

    need_variant_imageboolean

    Whether variant image is needed. It's required if has_only_default_variant is false

    spustring

    Product's SPU

    fake_salesint32

    Product's fake sales

    display_fake_salesboolean

    Whether to display fake sales

    options object[]
  • Array [
  • namestringrequired

    Option's name, for example: "color","size".

    valuesstring[]required

    Option's values, for example: ["red", "black"],["small", "large"]

    Default value: []
  • ]
  • images object[]
  • Array [
  • srcstringrequired

    Image's URL

    widthint32

    Image's width in px

    heightint32

    Image's height in px

    altstring

    Image's alt

  • ]
  • variants object[]
  • Array [
  • option1string

    Option 1

    option2string

    Option 2

    option3string

    Option 3

    image object

    Variant's images, e.g.: {"src":"//cn.cdn.shoplazza.com/c8bf5695d347092d7a010f00182581f7.jpeg"}

    srcstringrequired

    Image's URL

    widthint32

    Image's width in px

    heightint32

    Image's height in px

    altstring

    Image's alt

    compare_at_pricestring

    Compare at price ( original price )

    pricestringrequired

    Price, set it to "0.00" if you want to leave the price empty.

    skustring

    SKU

    barcodestring

    The barcode of the variant

    notestring
    inventory_quantityint32

    Inventory quantity

    weightstring
    weight_unitstring

    Unit of weight, possible value are: kg, g, lb, oz

    cost_pricestring

    Cost price

    wholesale_price object[]
  • Array [
  • pricestring
    min_quantityint32

    Mini Order Quantity

  • ]
  • ]
  • unique_tokenstring

    Unique_token is a unique string identifier generated by your app, will be used for idempotency verification, for example: e6cc4df1-d4f5-4ad4-a019-2e0f3ddd6e63

    mixed_wholesaleboolean

    Whether mixed wholesale is supported

Responses

200

Schema
    product object
    idstring
    Example: 9fb9f3c6-2300-42c1-8593-d9008d7cfc09
    titlestring
    Example: Stylish Shirt
    briefstring
    Example: A stylish shirt.
    descriptionstring
    Example:
    publishedboolean
    Default value: true
    Example: true
    requires_shippingboolean
    Default value: true
    Example: true
    taxableboolean
    Default value: true
    Example: true
    tagsstring
    Example: shirt,stylish,cotton
    vendorstring
    Example: Awesome Vendor
    vendor_urlstring
    Example: https://awesomevendor.com
    inventory_quantityinteger
    Default value: 0
    Example: 300
    published_atstring
    Example: 2024-12-03T19:02:30Z
    created_atstring
    Example: 2024-12-03T19:02:30Z
    updated_atstring
    Example: 2024-12-03T19:02:30Z
    notestring
    Example: Special promotion item.
    seo_titlestring
    Example: Buy Stylish Shirt Online
    seo_descriptionstring
    Example: Premium cotton
    seo_keywordsstring
    Example: shirt, cotton, stylish
    handlestring
    Example: stylish-shirt-zbxf
    has_only_default_variantboolean
    Default value: true
    Example: false
    inventory_trackingboolean
    Default value: true
    Example: true
    inventory_policystring
    Example: continue
    need_variant_imageboolean
    Default value: true
    Example: false
    spustring
    Example: SS1234
    fake_salesinteger
    Default value: 0
    Example: 50
    display_fake_salesboolean
    Default value: true
    Example: true
    mixed_wholesaleboolean
    Default value: true
    Example: true
    image object
    srcstring
    Example: //img.fantaskycdn.com/loading.png
    widthinteger
    Default value: 0
    Example: 100
    heightinteger
    Default value: 0
    Example: 100
    pathstring
    Example: loading.png
    altstring
    Example:
    images object[]
  • Array [
  • idstring
    Example: 15333433-a0d5-44c9-941b-2c59ea07683e
    product_idstring
    Example: 9fb9f3c6-2300-42c1-8593-d9008d7cfc09
    positioninteger
    Default value: 0
    Example: 1
    srcstring
    Example: //img.fantaskycdn.com/loading.png
    widthinteger
    Default value: 0
    Example: 100
    heightinteger
    Default value: 0
    Example: 100
    altstring
    Example:
    created_atstring
    Example: 2024-12-03T19:02:30Z
    updated_atstring
    Example: 2024-12-03T19:02:30Z
  • ]
  • options object[]
  • Array [
  • idstring
    Example: 8e40555e-a152-45fc-9587-fe85280701c5
    product_idstring
    Example: 9fb9f3c6-2300-42c1-8593-d9008d7cfc09
    positioninteger
    Default value: 0
    Example: 1
    namestring
    Example: Size
    valuesstring[]
  • ]
  • variants object[]
  • Array [
  • idstring
    Example: d7c7f9ba-f824-46b6-94af-1c2d1befaf27
    product_idstring
    Example: 9fb9f3c6-2300-42c1-8593-d9008d7cfc09
    image_idstring
    Example:
    created_atstring
    Example: 2024-12-03T19:02:30Z
    updated_atstring
    Example: 2024-12-03T19:02:30Z
    titlestring
    Example: Small-Red
    option1string
    Example: Small
    option2string
    Example: Red
    option3string
    Example:
    image
    positioninteger
    Default value: 0
    Example: 1
    compare_at_pricestring
    Example: 29.99
    pricestring
    Example: 19.99
    skustring
    Example: SS1234-RD-S
    barcodestring
    Example: 123456789012
    notestring
    Example: Limited
    inventory_quantityinteger
    Default value: 0
    Example: 100
    weightstring
    Example: 0.50
    weight_unitstring
    Example: kg
    cost_pricestring
    Example: 12.99
    wholesale_price object[]
  • Array [
  • pricestring
    Example: 19.99
    min_quantityinteger
    Default value: 0
    Example: 1
  • ]
  • extend
  • ]
  • category