Use this call to create templates in Linnworks and can also be used to push the template to a channel. This will create the template even if it returns null. This will also push the template to the channel depending on what the status is set as.
Name | Type | Description |
---|---|---|
items | List<BigCommerceListing> | Bigcommerce templates |
force | Boolean | force |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/Listings/ProcessBigcommerceListings
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
items=[
{
"Adjustments": 64,
"Width": 2.1,
"Height": 3.1,
"Depth": 4.1,
"Attributes": [
{
"Name": "sample string 1",
"Type": 0,
"MaxLength": 2,
"Label": "sample string 3",
"Value": "sample string 4",
"ExtendedProperty": "sample string 5",
"Default": true
}
],
"VarAttributes": [
{
"Name": "sample string 1",
"ExtendedProperty": "sample string 2",
"Type": "sample string 3",
"TypeLabel": "sample string 4"
}
],
"Children": [
{
"StockItemId": "ec6954b3-52a2-43f8-b62b-894ea40400ad",
"ChildId": "3fa2d577-0287-4d36-af33-16ba98214989",
"SkuId": 3,
"SKU": "sample string 4",
"UPC": "sample string 5",
"Name": "sample string 6",
"Price": 7.1,
"ManageStock": true,
"CollisionNumber": 9,
"Status": 0,
"Quantity": 10,
"Weight": 11.1,
"InStockChannel": true,
"ProductImageURL": "sample string 13",
"OptionsValues": [
{
"OptionId": 1,
"ValueId": 2,
"Name": "sample string 3",
"Label": "sample string 4"
}
]
}
],
"OldChildren": [
{
"StockItemId": "ec6954b3-52a2-43f8-b62b-894ea40400ad",
"ChildId": "3fa2d577-0287-4d36-af33-16ba98214989",
"SkuId": 3,
"SKU": "sample string 4",
"UPC": "sample string 5",
"Name": "sample string 6",
"Price": 7.1,
"ManageStock": true,
"CollisionNumber": 9,
"Status": 0,
"Quantity": 10,
"Weight": 11.1,
"InStockChannel": true,
"ProductImageURL": "sample string 13",
"OptionsValues": [
{
"OptionId": 1,
"ValueId": 2,
"Name": "sample string 3",
"Label": "sample string 4"
}
]
}
],
"OptionSet": {
"Id": 1,
"Name": "sample string 2",
"MappedFromBC": true,
"Options": [
{
"Id": 1,
"IdV3": 2,
"OptionName": "sample string 3",
"OptionDisplayName": "sample string 4",
"MappedFromBC": true,
"AssignmentId": 6,
"Values": [
{
"MappedFromBC": true,
"Id": 1,
"IdV3": 1,
"SortOrder": 2,
"Label": "sample string 3",
"OptionValueData": {
"ImageUrl": "sample string 1",
"Color": "sample string 2"
}
}
],
"Type": "sample string 7"
}
]
},
"Images": [
{
"Id": 1,
"Thumb": true,
"sortOrder": 3,
"IsChild": true,
"ImageId": "7b970133-7863-46ac-be33-1836563202e4",
"URL": "sample string 6",
"Label": "sample string 7",
"Show": true,
"IsNative": true
}
],
"Version": 5,
"ListingId": "aaa26b9e-d538-4235-94b6-2f93733d6e72",
"TemplateId": "0975d724-ead2-4780-82d1-b5886f739725",
"InventoryItemId": "45fd6a98-9a0d-40e7-89f1-cb5e9403aab7",
"ConfigId": "42cefdb3-354d-4bce-a986-173e967a9f45",
"UsedConfigName": "sample string 10",
"ProductId": 11,
"UpdateConfig": true,
"Type": 0,
"ListingURL": "sample string 13",
"Name": "sample string 14",
"Description": "sample string 15",
"ShortDescription": "sample string 16",
"SKU": "sample string 17",
"Barcode": "sample string 18",
"TitleSource": "sample string 19",
"Price": 20.1,
"Weight": 21.1,
"ShowListing": true,
"ManageStock": true,
"Quantity": 24,
"IsReadOnly": true,
"Categories": [
{
"Id": "sample string 1",
"Name": "sample string 2",
"Path": "sample string 3",
"Default": true
}
],
"HasCollisions": true,
"UseMainItemImages": true,
"Status": 0,
"Site": "sample string 28",
"IsErrorMsg": true,
"CustomFields": [
{
"Id": 1,
"BigCommerceId": 2,
"FlexSettingsItemId": "3932f2c8-4aef-444d-ba50-cfdcd8e18939",
"Name": "sample string 4",
"Value": "sample string 5"
}
]
}
]&force=true
This is an example of the response JSON. Results will vary depending on your data.