Update product
With this endpoint, you can update details of a single product, which could be an items, variant, or a bundles. Note:
1. When product type is Variant
, it can be added either via SKU or ID.
2. When product type is Item
, either parentCategoryId
or parentCategorySKU
must be specified.
3. When product type is Bundle, associated items or variants can also be added either via SKU or via ID.
4. At least one product must be specified.
Authorizations
S2S access token (JWT) from fabric Identity service (during Login)
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
Unique request ID
Path Parameters
24-character system-generated product ID
Query Parameters
Comma-separated locale codes of product. The service throws a 400 error if the locale isn't supported. Standard locales can be found at https://www.rfc-editor.org/rfc/rfc5646. <br /> Note: The recommended way to get the locale is by invoking multi-channel service.
Determines the version of the product applicable for this operation (endpoint action). If the status is DRAFT
, only the Draft version of the product, if it exists, is considered for the operation.
DRAFT
, LIVE
Body
Request body for creating Items, Variants and Bundles
Unique product ID that maps to fabric's standard attribute called SKU
. <br /> <b>Note:</b> sku
shouldn't include ;
or =
24-character system-generated category ID
Determines if the Product is published or unpublished. Status parameter takes precedence
Supported product types
ITEM
, VARIANT
, BUNDLE
Array of product attributes
ID or SKU of parent product
Bundle ID or SKU
Product variants by ID
Response
Details of Item by ID
Product ID
Unique product ID that maps to fabric's standard attribute called SKU
. <br /> <b>Note:</b> sku
shouldn't include ;
or =
Supported product types
ITEM
, VARIANT
, BUNDLE
true: Product is active <br /> false: Product is inactive
true: Product has a Draft version <br /> false: Product doesn't have a Draft version
true: Product has a Live version <br /> false: Product doesn't have a Live version
Represents the current status of product. This value takes precedence over isActive
if both are sent in the request.
DRAFT
, LIVE
Attributes of product
Localized attribute names
Parent item ID of the Variant
Product variants by ID
24-character system-generated category ID of product
Items or variants that are part of Bundle by ID
Time of product creation (UTC)
Time of last update to product (UTC)
Was this page helpful?