Skip to main content
POST
/
v2
/
products
Create Product
curl --request POST \
  --url https://api.wizcommerce.com/v2/products \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "group_code": "PRD1",
  "grouping_attributes": [
    "<string>"
  ],
  "variants": [
    {
      "sku_id": "66112458-fda7-4a96-8121-9c1d57a8651d",
      "reference_id": "PRD1",
      "name": "8'\''X10'\''",
      "categories": [
        "<string>"
      ],
      "collections": [
        "<string>"
      ],
      "medias": [
        {
          "url": "https://example.com/image1.jpg",
          "order": 1,
          "is_default": true,
          "type": "image"
        }
      ],
      "attributes": [
        {
          "name": "1234567890",
          "value": "red"
        }
      ],
      "product_prices": [
        {
          "price_list_id": "PRC123",
          "price": 100,
          "min_order_quantity": 1,
          "max_order_quantity": 100,
          "step_increment": 1,
          "sale_price": 90,
          "default_order_quantity": 2,
          "volume_tiers": [
            {
              "price": 1,
              "start_quantity": 50000,
              "step_increment": 1
            }
          ]
        }
      ],
      "is_primary": true,
      "priority": 2
    }
  ]
}'
{
  "data": [
    {
      "id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed",
      "reference_id": "SKU123",
      "parent_id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed",
      "sku": "SKU123",
      "name": "Product Name",
      "group_code": "PRD1",
      "medias": [
        {
          "is_default": true,
          "type": "image",
          "url": "https://example.com/image1.jpg"
        }
      ],
      "is_primary": true,
      "status": "active",
      "attributes": [
        {
          "id": "1234567890",
          "name": "color",
          "value": "red"
        }
      ],
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API Key for authentication

Body

application/json

Product Create Request

group_code
string
required

If no grouping is available, the group code will be the sku_id

Example:

"PRD1"

variants
object[]
required
grouping_attributes
string[]

Ordered list of attribute names used to distinguish and group variants under the same product (e.g., size, then shape).

Response

Created

data
object[]