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<MagentoListing> | Magento listings |
force | Boolean | force |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Listings/ProcessMagentoListings
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,
"Images": [
{
"Base": true,
"Small": true,
"Thumb": true,
"IsChild": true,
"ImageId": "539658b8-f3b6-4f24-9e52-e23fd19b957e",
"URL": "sample string 6",
"Label": "sample string 7",
"Show": true,
"IsNative": true
}
],
"VarAttributes": [
{
"Title": "sample string 1",
"Prices": [
{
"SelectValue": "sample string 1",
"SelectLabel": "sample string 2",
"PriceDiff": 3.1,
"IsFixed": true
}
],
"Id": "sample string 2",
"Code": "sample string 3",
"ExtendedProperty": "sample string 4",
"Type": "sample string 5",
"Label": "sample string 6",
"Value": "sample string 7",
"Requirement": 0
}
],
"AttributesSetId": "sample string 2",
"AttributesSetName": "sample string 3",
"ParentTemplateId": "18c761b8-5751-45b4-877b-745e8a504645",
"RelatedProducts": [
{
"TemplateId": "8c4b64f0-c156-4079-844c-85cddd1f9f70",
"ProductId": 2,
"Name": "sample string 3",
"LinkAssigned": true,
"Type": 0
}
],
"OldRelatedProducts": [
{
"TemplateId": "8c4b64f0-c156-4079-844c-85cddd1f9f70",
"ProductId": 2,
"Name": "sample string 3",
"LinkAssigned": true,
"Type": 0
}
],
"AssociatedTemplates": [
{
"TemplateId": "d7af849d-2366-4cf8-9e1e-9f95e4a7ea91",
"UsedConfigId": "a5300cf8-2134-4efd-bb1d-a20fe7528b49",
"Name": "sample string 3",
"Site": "sample string 4"
}
],
"Children": [
{
"ChildId": "586d189c-11b9-4b63-ab08-ad831c8e7552",
"CollisionNumber": 2,
"AddWebsite": true,
"IsAssigned": true,
"CustomPrice": true,
"CalculatedPrice": 6.1,
"ConvertedWeight": 7.1,
"Attributes": [
{
"Id": "sample string 1",
"Code": "sample string 2",
"Type": "sample string 3",
"Variation": true,
"Label": "sample string 5",
"Value": "sample string 6",
"ExtendedProperty": "sample string 7",
"Default": true
}
],
"IdentifierType": "sample string 8",
"Version": 9,
"ListingId": "c12d5d5e-15a4-4b3a-828e-b77d8161ec2b",
"TemplateId": "1dbce750-fefd-4dd5-a199-72ca81820295",
"InventoryItemId": "7e2a0d04-775d-472d-b274-b72edf99826c",
"ConfigId": "ac0b96b3-9d3a-4ed5-bd50-a393a3a3b811",
"UsedConfigName": "sample string 14",
"ProductId": 15,
"UpdateConfig": true,
"Type": 0,
"ListingURL": "sample string 17",
"Name": "sample string 18",
"Description": "sample string 19",
"ShortDescription": "sample string 20",
"SKU": "sample string 21",
"Barcode": "sample string 22",
"TitleSource": "sample string 23",
"Price": 24.1,
"Weight": 25.1,
"ShowListing": true,
"ManageStock": true,
"Quantity": 28,
"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 32",
"IsErrorMsg": true
}
],
"OldChildren": [
{
"ChildId": "586d189c-11b9-4b63-ab08-ad831c8e7552",
"CollisionNumber": 2,
"AddWebsite": true,
"IsAssigned": true,
"CustomPrice": true,
"CalculatedPrice": 6.1,
"ConvertedWeight": 7.1,
"Attributes": [
{
"Id": "sample string 1",
"Code": "sample string 2",
"Type": "sample string 3",
"Variation": true,
"Label": "sample string 5",
"Value": "sample string 6",
"ExtendedProperty": "sample string 7",
"Default": true
}
],
"IdentifierType": "sample string 8",
"Version": 9,
"ListingId": "c12d5d5e-15a4-4b3a-828e-b77d8161ec2b",
"TemplateId": "1dbce750-fefd-4dd5-a199-72ca81820295",
"InventoryItemId": "7e2a0d04-775d-472d-b274-b72edf99826c",
"ConfigId": "ac0b96b3-9d3a-4ed5-bd50-a393a3a3b811",
"UsedConfigName": "sample string 14",
"ProductId": 15,
"UpdateConfig": true,
"Type": 0,
"ListingURL": "sample string 17",
"Name": "sample string 18",
"Description": "sample string 19",
"ShortDescription": "sample string 20",
"SKU": "sample string 21",
"Barcode": "sample string 22",
"TitleSource": "sample string 23",
"Price": 24.1,
"Weight": 25.1,
"ShowListing": true,
"ManageStock": true,
"Quantity": 28,
"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 32",
"IsErrorMsg": true
}
],
"ChildrenImages": [
{
"ChildId": "31b0d7d6-40da-47d2-b6af-f4f953dc2bf9",
"Images": [
{
"ImageName": "sample string 1",
"ImageURL": "sample string 2",
"Path": "sample string 3",
"ImageId": "40db9b40-d021-4ba9-a046-a5b028a7a0cd",
"ParentImageId": "2cd3d185-a181-447d-a6ab-2963ebae8dec"
}
]
}
],
"Store": "sample string 5",
"ConvertedWeight": 6.1,
"Attributes": [
{
"Id": "sample string 1",
"Code": "sample string 2",
"Type": "sample string 3",
"Variation": true,
"Label": "sample string 5",
"Value": "sample string 6",
"ExtendedProperty": "sample string 7",
"Default": true
}
],
"IdentifierType": "sample string 7",
"Version": 8,
"ListingId": "f2920d89-d35d-478d-aa91-7097ca20bd45",
"TemplateId": "7b89977b-60b9-4487-8e03-aac354a35115",
"InventoryItemId": "9d326aba-e638-481c-a05b-009e675107f2",
"ConfigId": "da091120-2a4e-4196-8eff-0f7e9b8119bb",
"UsedConfigName": "sample string 13",
"ProductId": 14,
"UpdateConfig": true,
"Type": 0,
"ListingURL": "sample string 16",
"Name": "sample string 17",
"Description": "sample string 18",
"ShortDescription": "sample string 19",
"SKU": "sample string 20",
"Barcode": "sample string 21",
"TitleSource": "sample string 22",
"Price": 23.1,
"Weight": 24.1,
"ShowListing": true,
"ManageStock": true,
"Quantity": 27,
"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 31",
"IsErrorMsg": true
}
]&force=true
This is an example of the response JSON. Results will vary depending on your data.