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": [
    "365bc6ba-22fb-42b5-9354-96795de09903"
  ],
  "OnlyWithErrors": true,
  "Source": "sample string 2",
  "SubSource": "sample string 3",
  "ConfigId": "209d5a86-176b-47dd-b9cf-24aa5a82ab3f",
  "InventoryItemIds": [
    "6c02df1a-6f6d-49ab-b064-c04b4a6cfaff"
  ],
  "SelectedRegions": [
    {
      "Item1": 1,
      "Item2": 2
    }
  ],
  "Token": "c285bd6d-4609-4c4e-9f98-6e9c4e925b6f",
  "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": "a19f775e-824c-4563-8a5f-a49652a34845",
          "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": "a12cc14d-fe4e-48cc-952a-ee4d9bc31acb",
      "RelatedProducts": [
        {
          "TemplateId": "6748119a-4043-41ec-b197-c8864b408a64",
          "ProductId": 2,
          "Name": "sample string 3",
          "LinkAssigned": true,
          "Type": 0
        }
      ],
      "OldRelatedProducts": [
        {
        }
      ],
      "AssociatedTemplates": [
        {
          "TemplateId": "e77cf847-e651-4e93-bee8-1f6e5d05257d",
          "UsedConfigId": "0416720d-5f98-485e-8db2-137d5639ba2c",
          "Name": "sample string 3",
          "Site": "sample string 4"
        }
      ],
      "Children": [
        {
          "ChildId": "bebdcc3d-8269-4122-a3bb-05648168cd01",
          "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": "52bd70ba-056a-4073-9b67-ba83f907ed3f",
          "TemplateId": "c6f3fc63-1ab7-4ff4-8aef-258bb6192b64",
          "InventoryItemId": "44bd5c33-ab80-4e9c-a7de-fffd5a374ce6",
          "ConfigId": "8447963f-cecd-4885-a14d-776c83099c78",
          "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": "36c4440a-f080-473b-bbfe-ecbfd36fae4a",
          "Images": [
            {
              "ImageName": "sample string 1",
              "ImageURL": "sample string 2",
              "Path": "sample string 3",
              "ImageId": "c98770e2-0082-4601-b0e1-4faa26f10563",
              "ParentImageId": "3f61e463-e73d-42d2-a13d-f75be71e8892"
            }
          ]
        }
      ],
      "Store": "sample string 5",
      "ConvertedWeight": 6.1,
      "Attributes": [
        {
        }
      ],
      "IdentifierType": "sample string 7",
      "Version": 8,
      "ListingId": "e751ebbf-1ccf-4645-812d-7c2988bf40f1",
      "TemplateId": "463c254d-e36c-4bbb-a3dd-5fd4baeee2b9",
      "InventoryItemId": "30c25df9-da35-4d3a-9521-2114239c9288",
      "ConfigId": "3e932762-6dd4-4566-9441-705dc6688071",
      "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
}