Add product
At fabric, the term products refers to items, variants, and/or bundles.
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.
"517fa9dfd42d8b00g1o3k312"
Unique request ID
"263e731c-45c8-11ed-b878-0242ac120002"
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 =
"XP-123345"
24-character system-generated category ID
"QWE1234CCVFDDERW21"
Supported product types
ITEM
, VARIANT
, BUNDLE
"ITEM"
Represents the current status of product. This value takes precedence over isActive
if both are sent in the request.
DRAFT
, LIVE
"LIVE"
Determines if the Product is published or unpublished. Status parameter takes precedence
true
Array of product attributes
Details of product attributes
ID or SKU of parent product
Bundle ID or SKU
{
"en-US": {
"attributes": [
{ "id": "W123333RRTT555y1", "value": "blue" }
]
},
"en-IN": {
"attributes": [
{ "id": "W123333RRTT555AA", "value": "blue" }
]
}
}
Response
Details of Item by ID
Product ID
"AASSBCC12334FCD12334V"
Unique product ID that maps to fabric's standard attribute called SKU
. <br /> <b>Note:</b> sku
shouldn't include ;
or =
"XP-123345"
Supported product types
ITEM
, VARIANT
, BUNDLE
"ITEM"
true: Product is active <br /> false: Product is inactive
true
true: Product has a Draft version <br /> false: Product doesn't have a Draft version
true
true: Product has a Live version <br /> false: Product doesn't have a Live version
true
Represents the current status of product. This value takes precedence over isActive
if both are sent in the request.
DRAFT
, LIVE
"LIVE"
Attributes of product
Details of product attributes
Localized attribute names
{
"en-US": {
"attributes": [
{
"id": "4e7329dfd5288b0011332366",
"name": "Color",
"type": "string",
"isDeleted": false,
"value": "blue",
"isInherited": true
}
]
}
}
Parent item ID of the Variant
Product variants by ID
24-character system-generated category ID of product
"6h7329dfd5288b001133231d"
Items or variants that are part of Bundle by ID
Time of product creation (UTC)
"2021-09-14T22:10:30.618Z"
Time of last update to product (UTC)
"2021-09-14T22:10:30.618Z"
Was this page helpful?