Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Listings /ProcessMagentoListings

Allows 150 calls per minute

Response: Void



Use this call to create templates in Linnworks and can also be used to push the template to a channel. This will create the template even if it returns null. This will also push the template to the channel depending on what the status is set as.

Parameters

NameTypeDescription
itemsList<MagentoListing>Magento listings
forceBooleanforce

Example Request

The following request format is required for this method.

Endpoint URL

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

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.

items=[
  {
    "Adjustments": 64,
    "Images": [
      {
        "Base": true,
        "Small": true,
        "Thumb": true,
        "IsChild": true,
        "ImageId": "bee46790-e2c6-4aa9-a971-ab5e7e009f17",
        "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": "2c8d388e-c4ec-4792-bc1a-29dfa2f3cd70",
    "RelatedProducts": [
      {
        "TemplateId": "d93255ad-bf64-4053-b4e0-27bde0a36df5",
        "ProductId": 2,
        "Name": "sample string 3",
        "LinkAssigned": true,
        "Type": 0
      }
    ],
    "OldRelatedProducts": [
      {
        "TemplateId": "d93255ad-bf64-4053-b4e0-27bde0a36df5",
        "ProductId": 2,
        "Name": "sample string 3",
        "LinkAssigned": true,
        "Type": 0
      }
    ],
    "AssociatedTemplates": [
      {
        "TemplateId": "ab306fab-ae83-49ee-b087-4a4107f63c60",
        "UsedConfigId": "e13f1611-2ef5-4095-a2aa-f62f98cdff5b",
        "Name": "sample string 3",
        "Site": "sample string 4"
      }
    ],
    "Children": [
      {
        "ChildId": "4a7e267f-bed4-47c4-a9a4-2adc17a5bb67",
        "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": "9d48b322-aff3-4f3f-ba90-5eb1b48660c5",
        "TemplateId": "f14a0659-638a-4d6e-b748-f51bfa9475af",
        "InventoryItemId": "e64340e0-7962-4e14-9e4f-cefcd07b4860",
        "ConfigId": "762165c8-6b4b-4000-9013-dc1973a1798b",
        "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": [
      {
        "ChildId": "4a7e267f-bed4-47c4-a9a4-2adc17a5bb67",
        "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": "9d48b322-aff3-4f3f-ba90-5eb1b48660c5",
        "TemplateId": "f14a0659-638a-4d6e-b748-f51bfa9475af",
        "InventoryItemId": "e64340e0-7962-4e14-9e4f-cefcd07b4860",
        "ConfigId": "762165c8-6b4b-4000-9013-dc1973a1798b",
        "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
      }
    ],
    "ChildrenImages": [
      {
        "ChildId": "60ac72c6-e3e0-4307-ab75-d5fabb57acc7",
        "Images": [
          {
            "ImageName": "sample string 1",
            "ImageURL": "sample string 2",
            "Path": "sample string 3",
            "ImageId": "84107201-3973-4daa-924e-8b012a09050d",
            "ParentImageId": "b1e87cc9-6a9d-40d5-91e3-4bd832de27ea"
          }
        ]
      }
    ],
    "Store": "sample string 5",
    "ConvertedWeight": 6.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 7",
    "Version": 8,
    "ListingId": "04c9063e-8813-4c8c-a462-258589a4867a",
    "TemplateId": "cb8f3812-6cf0-4489-983d-7901155cc9de",
    "InventoryItemId": "f2552a67-94b9-4ccc-978d-b4add50a73d6",
    "ConfigId": "6d897afc-574c-4169-af23-1583e40416bf",
    "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": [
      {
        "Id": "sample string 1",
        "Name": "sample string 2",
        "Path": "sample string 3",
        "Default": true
      }
    ],
    "HasCollisions": true,
    "UseMainItemImages": true,
    "Status": 0,
    "Site": "sample string 31",
    "IsErrorMsg": true
  }
]&force=true

Response

This is an example of the response JSON. Results will vary depending on your data.