This API is used to link the uniware product SKU code with the channel SKU code.
NAME
DETAILS
Endpoint:
/services/rest/v1/channel/createChannelItemType
Request Type:
POST
Level:
Tenant
Scheme:
HTTPS
Header (Content-Type):
application/json
Header (Authorization):
bearer {access-token}, Eg.: bearer b30f3aea-7978-49bb-9ea7-33eddfc80afa
Request Payload
{
"channelItemType" : {
"channelCode" : "CUSTOM" ,
"channelProductId" : "SKUD2" ,
"sellerSkuCode" : "SKUD2" ,
"skuCode" : "SKUD2" ,
"blockedInventory" : 0 ,
"live" : "true" ,
"disabled" : "true"
}
}
Request Payload Details
LEVEL
PARAMETER
TYPE
DESCRIPTION
MANDATORY
NOTES
1
ChannelCode
string
Channel code
Yes
1.1
channelProductId
string
Unique product id on channel used for seller SKU
Yes
1.2
sellerSkuCode
string
Product SKU on channel
Yes
1.3
skuCode
string
Product SKU on Uniware
Yes
1.4
blockedInventory
INT
To block some item for sku on channel else “0”
No
We can block inventory of a product for a specific channel, that keeps it blocked to be sold on this channel once stock goes down by that blocked number
1.5
live
boolean
true/false
No
Set to true, will make listing as Active in uniware, if the SKU is live on a marketplace
Set to false, will make the listing as inactive. if the SKU is not live on a marketplace
1.6
disabled
boolean
true/false
No
Set to true = will disabled the inventory of a particular product for a specific channel
Set to false = will re-enabled the inventory of a particular product for a specific channel
Response Payload
{
"successful" : true ,
"message" : "string" ,
"errors" : [
{
"code" : 0 ,
"fieldName" : "string" ,
"description" : "string" ,
"message" : "string" ,
"errorParams" : {
"additionalProp1" : { } ,
"additionalProp2" : { } ,
"additionalProp3" : { }
}
}
] ,
"warnings" : [
{
"code" : 0 ,
"message" : "string" ,
"description" : "string"
}
] ,
"itemType" : null ,
"channelProductId" : "SKUD2"
}
Response Payload Details
LEVEL
PARAMETER
TYPE
DESCRIPTION
NOTES
1
successful
true
Request success status
-
2
message
string
Response message
-
3
errors
list
List of errors (if any)
-
3.1
code
number
Error code
-
3.2
fieldName
string
Field with error
-
3.3
description
string
Error description
-
3.4
message
string
Error message
-
3.5
errorParams
object
Parameters with error
-
3.5.1
additionalProp1
object
Parameter 1 with error
-
3.5.2
additionalProp2
object
Parameter 2 with error
-
3.5.3
additionalProp3
object
Parameter 3 with error
-
4
warnings
list
List of warnings (if any)
-
4.1
code
number
Warning code
-
4.2
message
string
Warning message
-
4.3
description
string
Warning description
-
Error Codes
Refer Response Codes section to know about specific errors codes.