Skip to content

Put product recommendations

PUT/admin/v1/stores/{store_id}/products/{product_id}/recommendations
  • products:write

Replace the merchant's picks: up to ten related and ten complementary products, in order.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • product_idstringrequired

    The product's ID, like prod_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • relatedarray of strings
  • complementaryarray of strings

Returns

200 Both lists, with the new picks.

Errors

  • 404not_foundNo such product.
  • 422validation_failedToo many, repeated, the product itself, in both lists, or unknown.