Commerce

Duplicate a product

Copies a product with its options, variants and (by default) images. The copy starts as a draft.

post/v1/commerce/products/{productId}/duplicate

Path parameters

productIdstring required

Platform-native id.

Request body

accountIdstring required
titlestring required
status'draft' | 'active'
includeImagesboolean

Response

Product duplicated

Example response

{
  "product": {
    "variants": [
      {
        "price": {
          "amount": "19.90",
          "currency": "USD"
        },
        "compareAtPrice": {
          "amount": "19.90",
          "currency": "USD"
        }
      }
    ]
  }
}

Changes

Changed in 2 of the 60 revisions of this API.2