Use this call to return all created Magento templates.
Name | Type | Description |
---|---|---|
parameters | GetTemplatesParameters | Object of GetMagentoTemplatesParameters |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Listings/GetMagentoTemplates
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.
parameters={
"TemplateIds": [
"b1ebd66b-4b6e-4485-8dd2-57310980c841"
],
"OnlyWithErrors": true,
"Source": "sample string 2",
"SubSource": "sample string 3",
"ConfigId": "c390bc2f-ebae-4e4b-8de3-dd4e98922885",
"InventoryItemIds": [
"f13909d7-63cc-48e1-9094-f16d828336a9"
],
"SelectedRegions": [
{
"Item1": 1,
"Item2": 2
}
],
"Token": "a1ca1b7e-a3ab-4b06-8d79-597708a89be1",
"TemplatesType": 0,
"PageNumber": 1,
"EntriesPerPage": 2,
"SiteFilter": {
"Source": "sample string 1",
"SubSource": "sample string 2",
"Sites": "sample string 3",
"SelectedSites": [
"sample string 3"
]
}
}
This is an example of the response JSON. Results will vary depending on your data.
{
"Items": [
{
"Adjustments": 64,
"Images": [
{
"Base": true,
"Small": true,
"Thumb": true,
"IsChild": true,
"ImageId": "20ceed92-4719-41e7-a650-625ce8dbed59",
"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": "5800b518-d448-4fa1-beeb-4c462a268550",
"RelatedProducts": [
{
"TemplateId": "6ec5bb47-862c-4eb4-b7c2-9bdb63b5af62",
"ProductId": 2,
"Name": "sample string 3",
"LinkAssigned": true,
"Type": 0
}
],
"OldRelatedProducts": [
{
}
],
"AssociatedTemplates": [
{
"TemplateId": "9c120999-1e23-4caf-9ecc-63f3e0965767",
"UsedConfigId": "d5c39f0a-97cf-47c3-b9bf-05065833a36c",
"Name": "sample string 3",
"Site": "sample string 4"
}
],
"Children": [
{
"ChildId": "49cc1695-5c2a-4a76-a4d6-d242e46bbb01",
"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": "66cd1c76-ea90-4d76-ad3e-a6e763fcba69",
"TemplateId": "ac2c8268-1d33-478b-9238-3526a6f2b2fc",
"InventoryItemId": "f6231fff-3a32-43bc-a51a-cdefc2beec0f",
"ConfigId": "be5cf7fd-b77c-4779-b0b2-ef2e0c0eb759",
"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": [
{
}
],
"ChildrenImages": [
{
"ChildId": "3c7d1f35-a44a-4fc2-8213-233c5bec7cab",
"Images": [
{
"ImageName": "sample string 1",
"ImageURL": "sample string 2",
"Path": "sample string 3",
"ImageId": "f7bb173e-a9e3-4eb6-8325-a71ace891fd3",
"ParentImageId": "71769127-b530-418b-b425-f535c13a5794"
}
]
}
],
"Store": "sample string 5",
"ConvertedWeight": 6.1,
"Attributes": [
{
}
],
"IdentifierType": "sample string 7",
"Version": 8,
"ListingId": "8efb2535-e081-4cde-8e7c-7d09add400c1",
"TemplateId": "adf49dca-2eaa-4773-9580-ded733e496b4",
"InventoryItemId": "7fe241c9-0362-4059-af61-00d25fc1f585",
"ConfigId": "a52ae6cd-cc47-4f45-b717-c160f90c1e42",
"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": [
{
}
],
"HasCollisions": true,
"UseMainItemImages": true,
"Status": 0,
"Site": "sample string 31",
"IsErrorMsg": true
}
],
"TotalItems": 1,
"CurrentPage": 2,
"EntriesPerPage": 3
}