XM
Members
Add Products in Bulk
This documentation is now outdated, please find the latest docs for this endpoint here
Path:
1
POST https://{baseurl}/api-product/v1/product/bulk/insert
Copied!
Enables you to add products in bulk.
Headers
Content-Type : application/json
x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }
Authorization: The JWT access token from the Login API. This is applicable only for a logged in user (not for guest user).

Parameters

Type : requestBody
Name : The criteria to add products in bulk.
Required: true

Sample Request

Path:
1
POST https://{baseurl}/api-product/v1/product/bulk/insert
Copied!
1
[
2
{
3
"nodeName": "MASTER->Furniture->Living->Sofas",
4
"sku": "capio-product",
5
"attributeValues": [
6
{
7
"name": "Display Name",
8
"value": "capio product two"
9
},
10
{
11
"name": "Vendor Id",
12
"value": "abc"
13
}
14
]
15
}
16
]
Copied!

Sample Response

Success Code: 200
Message: OK
Description: You will see this message when the products are added in bulk.
1
{
2
"success": [
3
{
4
"sku": "capio-product",
5
"itemId": "60c7e6c73db9ec0008723078",
6
"itemIdSeq": 83,
7
"message": "SKU created successfully"
8
}
9
],
10
"failed": [],
11
"itemIds": [
12
"60c7e6c73db9ec0008723078"
13
]
14
}
Copied!

Sample Response

Success Code: 200
Message: OK
Description: You will see this message when the SKU is duplicate.
1
{
2
"success": [],
3
"failed": [
4
{
5
"sku": "capio-product",
6
"message": "SKU duplicate Value"
7
}
8
],
9
"itemIds": []
10
}
Copied!

Sample Response

Success Code: 200
Message: OK
Description: You will see this message when the SKU is not found.
1
{
2
"success": [],
3
"failed": [
4
{
5
"sku": "capio-test-one",
6
"message": "SKU node not found"
7
}
8
],
9
"itemIds": []
10
}
Copied!
Error Code: 401
Message: Unauthorized
Description: You will see this error when the Authorization (JWT token from the Login APIs) is not valid.
1
{
2
"code": "INVALID_AUTHORIZATION_TOKEN",
3
"message": "Invalid Authorization Token"
4
}
Copied!

Change Log

  • June - 2021 First Updated
Last modified 1mo ago
Copy link
Contents
Change Log