{
"data": [
{
"success": [
{
"id": "AASSBCC12334FCD12334V",
"sku": "XP-123345"
}
],
"errors": [
{
"id": "AASSBCC12334FCD23456A",
"sku": "XP-23456",
"message": [
"Attribute ID 6d7329dfd5288b0011332311 can not be null"
]
}
]
}
]
}{
"message": "Request is invalid",
"type": "Bad request",
"errors": [
{
"type": "CLIENT_ERROR",
"message": "Invalid request. Unable to find or create product"
}
]
}{
"type": "UNAUTHORIZED_ERROR",
"message": "The requester is unauthorized"
}{
"type": "REQUEST_DENIED",
"message": "User doesn't have the required permission"
}{
"type": "CONFLICT",
"message": "Unable to update as there is a conflict with a unique attribute.",
"errors": [
{
"type": "CONFLICT",
"message": "<ID> already exists"
}
]
}{
"type": "PAYLOAD_LIMIT_EXCEEDED_ERROR",
"message": "Payload exceeds maximum configured size"
}{
"message": "Internal Server Error",
"type": "SERVER_ERROR"
}Add Products
At fabric, the term products refers to items, variants, and/or bundles.
With this endpoint, you can add up to 25 products. Refer to the
examples added for each type. Note:
1. If product type is Variant, they can be added using either SKU or ID.
2. When product type is Item, either parentCategoryId or parentCategorySKU must be specified.
3. When product type is Bundle, items in a bundle can be added using either SKU or ID.
4. In the response you can see the products that are added successfully and the ones that couldn’t be added.
{
"data": [
{
"success": [
{
"id": "AASSBCC12334FCD12334V",
"sku": "XP-123345"
}
],
"errors": [
{
"id": "AASSBCC12334FCD23456A",
"sku": "XP-23456",
"message": [
"Attribute ID 6d7329dfd5288b0011332311 can not be null"
]
}
]
}
]
}{
"message": "Request is invalid",
"type": "Bad request",
"errors": [
{
"type": "CLIENT_ERROR",
"message": "Invalid request. Unable to find or create product"
}
]
}{
"type": "UNAUTHORIZED_ERROR",
"message": "The requester is unauthorized"
}{
"type": "REQUEST_DENIED",
"message": "User doesn't have the required permission"
}{
"type": "CONFLICT",
"message": "Unable to update as there is a conflict with a unique attribute.",
"errors": [
{
"type": "CONFLICT",
"message": "<ID> already exists"
}
]
}{
"type": "PAYLOAD_LIMIT_EXCEEDED_ERROR",
"message": "Payload exceeds maximum configured size"
}{
"message": "Internal Server Error",
"type": "SERVER_ERROR"
}Authorizations
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"
Was this page helpful?
