Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Listings /CreateMagentoTemplates

Allows 150 calls per minute

Response: PagedResult<MagentoListing>



Use this call to return a template based on the configurator setting you have requested. This allows you to see the template which can then be retuned to the ProcessMagentoListing endpoint which will build the listing.

Parameters

NameTypeDescription
parametersProcessTemplatesParametersObject of TemplatesParameters

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Listings/CreateMagentoTemplates

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={
  "Source": "sample string 1",
  "SubSource": "sample string 2",
  "ConfigId": "c894b090-7314-4c6b-8ffa-90c19f9df91c",
  "InventoryItemIds": [
    "b5c6fdb5-529b-461a-8d2a-e776d8022b1e"
  ],
  "SelectedRegions": [
    {
      "Item1": 1,
      "Item2": 2
    }
  ],
  "Token": "0f710f99-9f6f-49dd-bf5d-51ff368f889f",
  "TemplatesType": 0
}

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": "6d4811ae-ca7d-4dc8-94f7-01eee8c09036",
          "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": "251af05e-b07d-4d3b-b357-9e7edce3cd3d",
      "RelatedProducts": [
        {
          "TemplateId": "77dccb97-4fb0-410a-8575-7e6dc775c374",
          "ProductId": 2,
          "Name": "sample string 3",
          "LinkAssigned": true,
          "Type": 0
        }
      ],
      "OldRelatedProducts": [
        {
        }
      ],
      "AssociatedTemplates": [
        {
          "TemplateId": "b7efa8ec-bf14-413f-b2e7-ec5f88fcff05",
          "UsedConfigId": "82696635-78dd-4fa7-989c-2445a0daa76e",
          "Name": "sample string 3",
          "Site": "sample string 4"
        }
      ],
      "Children": [
        {
          "ChildId": "efdcbfcd-4445-4154-a966-83f75f552dd0",
          "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": "59b516ea-57f2-4c00-84dc-72f70475473d",
          "TemplateId": "bb063a6f-4cb7-41bb-8569-b50f1e799eea",
          "InventoryItemId": "d6666162-99d4-480b-8732-1ea2e0afae35",
          "ConfigId": "55c44756-cc47-4d25-a04d-aeb51e1c8387",
          "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": "9114d278-93cd-47fc-ba04-76949f8a7bc1",
          "Images": [
            {
              "ImageName": "sample string 1",
              "ImageURL": "sample string 2",
              "Path": "sample string 3",
              "ImageId": "9f46b012-9655-4fe9-8007-117f33f2c161",
              "ParentImageId": "a31fb304-b86e-4fee-99d8-34a98b12c3cf"
            }
          ]
        }
      ],
      "Store": "sample string 5",
      "ConvertedWeight": 6.1,
      "Attributes": [
        {
        }
      ],
      "IdentifierType": "sample string 7",
      "Version": 8,
      "ListingId": "4c3a264f-8f72-43eb-9559-913536608067",
      "TemplateId": "e253b6d2-6b68-4bf8-8264-07af39b0dbcd",
      "InventoryItemId": "56bd5e66-936a-4afe-8733-786479fd0321",
      "ConfigId": "70dee4ea-3f8b-48bc-b3f4-1f6737e387db",
      "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
}