POST:products.json
Commerce APIPOST:products.json

POST:products.json

Description

Create one or multiple products.

Permission bit: "products.create"

Topic: Products

Query Parameters

shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of ProductCreate

[
  {
    "ban_countries": [
      ""
    ],
    "ban_mode": "allow_all_but",
    "brand_id": "br_EQzGqWoY",
    "category_ids": [
      ""
    ],
    "custom_fields": [
      {
        "name": "",
        "value": ""
      }
    ],
    "field_set_id": "pf_EQzGqWoY",
    "google_product_category_code": 499938,
    "handle": "ipod-nano",
    "import_id": "ta_EQzGqWoY",
    "import_index": 56,
    "maximum_quantity": 100,
    "meta_description": "",
    "meta_title": "",
    "minimum_quantity": 0,
    "published": false,
    "published_at": "2014-09-04T12:23:34Z",
    "raw_content": "{}",
    "return_mode": "allowed",
    "review_dimension_set_id": "rs_EQzGqWoY",
    "sales_channel_ids": [
      ""
    ],
    "subscription_only": false,
    "subscription_plans": [
      {
        "align_day_of_month": {
          "value": 5
        },
        "billing_interval_count": 12,
        "discountable": false,
        "fulfillment_interval_count": 1,
        "interval": "annually",
        "limit": 0,
        "price1": 1500,
        "price1_percentage": 50,
        "price1_type": "fixed_off",
        "price2": 1500,
        "price2_percentage": 50
      }
    ],
    "tags": [
      ""
    ],
    "tiered_pricing_mode": "all_variants",
    "title": "IPod Nano - 8GB",
    "type": "bundle"
  }
]

Response Body

Array of Product

Response Body Type

Loading module