Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Listings /GetMagentoTemplates

Allows 150 calls per minute

Response: PagedResult<MagentoListing>



Use this call to return all created Magento templates.

Parameters

NameTypeDescription
parametersGetTemplatesParametersObject of GetMagentoTemplatesParameters

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Listings/GetMagentoTemplates

Headers

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

Request Body

This is an example of the request structure. Results will vary depending on your data.

parameters={
  "TemplateIds": [
    "affc2073-e00a-46b8-be34-7dfc65f460a2"
  ],
  "OnlyWithErrors": true,
  "Source": "sample string 2",
  "SubSource": "sample string 3",
  "ConfigId": "8e00537a-180e-4e5a-bb34-1b63eb9ca68e",
  "InventoryItemIds": [
    "ca5d5314-8ee5-443c-90cd-b0d35d9e1f4b"
  ],
  "SelectedRegions": [
    {
      "Item1": 1,
      "Item2": 2
    }
  ],
  "Token": "53bece5d-d012-4825-b8e4-ca8c48c28570",
  "TemplatesType": 0,
  "PageNumber": 1,
  "EntriesPerPage": 2,
  "SiteFilter": {
    "Source": "sample string 1",
    "SubSource": "sample string 2",
    "Sites": "sample string 3",
    "SelectedSites": [
      "sample string 3"
    ]
  }
}

Response

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": "b1154e9a-a2d2-490d-950b-b8fd2aae2084",
          "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": "82901445-a3b5-4c06-9644-fff14277d8a6",
      "RelatedProducts": [
        {
          "TemplateId": "3f56173b-0224-4234-9bcf-f1947490c194",
          "ProductId": 2,
          "Name": "sample string 3",
          "LinkAssigned": true,
          "Type": 0
        }
      ],
      "OldRelatedProducts": [
        {
        }
      ],
      "AssociatedTemplates": [
        {
          "TemplateId": "d0554c41-f02b-46aa-b2e0-81b40e809e98",
          "UsedConfigId": "77d34cc5-274f-4ab1-aac0-c15945cc6bff",
          "Name": "sample string 3",
          "Site": "sample string 4"
        }
      ],
      "Children": [
        {
          "ChildId": "c4abdb9d-2a36-49f8-afef-52ee8c9768af",
          "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": "4a37ca6d-cd1a-4ad2-9034-ae8f3e99a89b",
          "TemplateId": "2df44487-4a7b-44c8-a8a9-4cf8369a36b9",
          "InventoryItemId": "86056db1-f0b2-47d3-973b-ce01244408fa",
          "ConfigId": "eef6d425-1ff4-450f-a3b7-0fc671d274bb",
          "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": "46a1bb2c-b84c-48ad-a87e-f5d68d082639",
          "Images": [
            {
              "ImageName": "sample string 1",
              "ImageURL": "sample string 2",
              "Path": "sample string 3",
              "ImageId": "d84f0c7c-9ac0-43b6-ae31-357a5454f29a",
              "ParentImageId": "49765bbe-cc36-4809-8946-a2e45a39c2e0"
            }
          ]
        }
      ],
      "Store": "sample string 5",
      "ConvertedWeight": 6.1,
      "Attributes": [
        {
        }
      ],
      "IdentifierType": "sample string 7",
      "Version": 8,
      "ListingId": "1d19bb3e-b7b9-4d36-afd1-f4537e389338",
      "TemplateId": "90d0d256-b5dc-480b-8de4-977d04a82a53",
      "InventoryItemId": "d4c3dba9-11df-4f6d-9434-e2626ec0a2a6",
      "ConfigId": "6e47fe2a-bb2f-4d97-ab6b-7ff7ceb6b4fc",
      "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
}