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

GET | 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": "83685941-d16b-4207-915e-6a4d25ac09bf",
  "InventoryItemIds": [
    "d9dc47c1-308c-4d0c-a412-9aafbccc34f9"
  ],
  "SelectedRegions": [
    {
      "Item1": 1,
      "Item2": 2
    }
  ],
  "Token": "d323bd9e-ce34-473b-82a9-79ac27e75892",
  "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": "533a1b81-c520-402a-858f-db3565fb0a10",
          "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": "6018b566-7294-4229-9f05-9f51fdf68323",
      "RelatedProducts": [
        {
          "TemplateId": "9de0d25c-b568-454b-bf58-f1be96ed3e9e",
          "ProductId": 2,
          "Name": "sample string 3",
          "LinkAssigned": true,
          "Type": 0
        }
      ],
      "OldRelatedProducts": [
        {
        }
      ],
      "AssociatedTemplates": [
        {
          "TemplateId": "e8a7f456-b596-48a9-a0a7-9faa012c7a1f",
          "UsedConfigId": "3fecaa87-fdda-4d15-8018-058369d804f2",
          "Name": "sample string 3",
          "Site": "sample string 4"
        }
      ],
      "Children": [
        {
          "ChildId": "8d94a8b6-915c-4178-88d9-c35892ea346e",
          "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": "f0533867-55f4-4e3d-b880-94492535451f",
          "TemplateId": "fa94ba17-ca99-4f88-9518-c79ad8779d3d",
          "InventoryItemId": "5c2b5735-44cc-4c6c-bf53-7a7377c50998",
          "ConfigId": "030be941-6bd0-46e6-99f3-70574f2bd340",
          "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": "279d23ec-52cf-4b40-ba9f-e24a4837e2b9",
          "Images": [
            {
              "ImageName": "sample string 1",
              "ImageURL": "sample string 2",
              "Path": "sample string 3",
              "ImageId": "a4168484-502e-4451-a50c-3d4a4c1d5e94",
              "ParentImageId": "5e1767cb-edab-426e-8b72-321d530a6652"
            }
          ]
        }
      ],
      "Store": "sample string 5",
      "ConvertedWeight": 6.1,
      "Attributes": [
        {
        }
      ],
      "IdentifierType": "sample string 7",
      "Version": 8,
      "ListingId": "177ad5ec-f94f-4185-9637-25a4eb748b07",
      "TemplateId": "e8fc0ce6-05d7-4d8b-940a-a666b8da39db",
      "InventoryItemId": "e8629625-f44b-4516-9b28-606ed63a08fd",
      "ConfigId": "03dbf8d9-12fe-4651-ac05-520b51bdea3d",
      "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
}