POST
/
catalog
/
products
/
{id}
/
variants
/
bulk-update
curl --request POST \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/products/{id}/variants/bulk-update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "id": "<string>",
    "update_other_variants": true,
    "shipping": {
      "is_free_shipping": false,
      "is_fixed_cost_shipping": false,
      "fixed_cost_shipping_price": 123,
      "is_shipping_price_include_tax": true,
      "availability_description": "<string>",
      "ships_internationally": true,
      "mid_code": "<string>",
      "country_of_origin": "<string>"
    },
    "packaging": {
      "pack_width": 123,
      "pack_height": 123,
      "pack_length": 123,
      "pack_dry_weight": 123,
      "units_per_pack": 123,
      "vertical_rotation": true,
      "shipper_width": 123,
      "shipper_height": 123,
      "shipper_length": 123,
      "shipper_dry_weight": 123,
      "units_per_shipper": 123
    }
  }
]'
{
  "message": "<string>",
  "success": true,
  "content": {
    "variants": [
      {
        "id": "<string>",
        "update_other_variants": true,
        "shipping": {
          "is_free_shipping": false,
          "is_fixed_cost_shipping": false,
          "fixed_cost_shipping_price": 123,
          "is_shipping_price_include_tax": true,
          "availability_description": "<string>",
          "ships_internationally": true,
          "mid_code": "<string>",
          "country_of_origin": "<string>"
        },
        "packaging": {
          "pack_width": 123,
          "pack_height": 123,
          "pack_length": 123,
          "pack_dry_weight": 123,
          "units_per_pack": 123,
          "vertical_rotation": true,
          "shipper_width": 123,
          "shipper_height": 123,
          "shipper_length": 123,
          "shipper_dry_weight": 123,
          "units_per_shipper": 123
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

product id

Body

application/json · object[]
id
string

variant id

update_other_variants
boolean

if true, same data will be updated to other variants which are not mentioned in request body.

shipping
object
packaging
object

Response

200 - application/json
OK
message
string
success
boolean
content
object