Endpoint - Listing Update

Endpoint is used when customer selects a list of items to be created or updated.

Endpoint is used when customer selects a list of items to be created or updated.

Request

Post

ProductsListingsRequest

Field NameTypeDescription
AuthorizationTokenStringAuthorization Token from the customers integration.
TypeListingUpdateTypeDetermines if the relevant products need creating or updating on the channel. See ListingUpdateType
ListingsProductListing[]Array of listings for which the above action to be performed. See ProductListing
SettingsConfiguratorGeneralSetting[]The filled out customer settings that were provided in ConfiguratorSettings response by the developer. See ConfiguratorGeneralSetting

ListingUpdateType (Flagged Enum)

Field NameNumeric ValueDescription
CREATE0Create listing
UPDATE1Update Listing

ProductListing

Field NameTypeDescription
ConfiguratorIdIntegerIs used to lookup settings, if required.
TemplateIdIntegerLinnworks unique reference.
ExternalListingIdIntegerUnique listingid.
SKUStringChannel SKU.
TitleStringListing title.
DescriptionStringListing description.
QuantityIntegerAvailable quantity to sell.
ImagesProductImage[]List of images for the non variation item along with the selected tags/ list of images for the variation parent item along with the selected tags. See ProductImage table.
PriceDecimalListing price.
CategoriesString[]Selected categories.
ShippingMethodsProductShipping[]Selected shipping. See ProductShipping table
AttributesListingAttribute[]Attributes associated with non variation/variation parent item. See ListingAttribute table.
VariationsProductVariation[]List of variation items (will be empty for non variation items). See ProductVariationTable.
VariationOptionsProductOption[]List of variation options. See ProductOption table.

ProductImage

Field NameTypeDescription
UrlStringUrl to an image.
TagsString[]Selected tags for the image (e.g "Basket image", "Large image" etc)

ProductShipping

Field NameTypeDescription
PriceDecimalShipping price for the shipping method.
ShippingMethodIDStringShipping method id/tag.

ListingAttribute

Field NameTypeDescription
IsCustomAttributeBooleanWill be false, unless attribute was created by the customer.
AttributeIDStringWill not be set if it is a custom attribute created by the customer (only available if IsCustomAttributesAllowed is set to true). Attribute id will be based on the ID provided in the GetAttributesByCategory call).
AttributeValueStringValue set by the customer for the given attribute.

ProductVariation

Field NameTypeDescription
SKUStringVariation child SKU.
TitleStringVariation child title.
QuantityIntegerVariation child available quantity.
ImagesProductImage[]See description above in ProductImage table.
PriceDecimalVariation listing price.
OptionValuesVariationOption[]Option values set for given variation item. See VariationOption table.
AttributeSettingsListingAttribute[]List of attributes for this variation child item. See ListingAttribute table.

VariationOption

Field NameTypeDescription
ValueProductOptionValueThe value set for this variation option for the given variation item (e.g. "S" or "M" ). See ProductOptionValue table.
PositionIntegerThe position this option name should be used (e.g. size should be before colour).
NameStringOption name (e.g. "Size").

ProductOptionValue

Field NameTypeDescription
PositionIntegerWhich position this option value should be displayed for this option.
ValueStringOption value (e.g. "S", "M", "L").

ProductOption

Field NameTypeDescription
ValuesProductOptionValueAll available values associated with this option name. See ProductOptionValue table.
PositionIntegerThe position this option name should be used (e.g. size should be before colour).
NameStringOption name (e.g. "Size").

ConfiguratorGeneralSetting

Field NameTypeDescription
ConfiguratorIdIntegerRelated configurator Id.
SettingsProductSettingsProduct Setting.

ProductSettings

Field NameTypeDescription
PaymentMethodsString[]String list of payment methods.
GeneralSettingsSetting[]Settings that were set with the GENERAL GroupNameValueType
ReturnsSettingsSetting[]Settings that were set with the RETURN GroupNameValueType
ShippingSettingsSetting[]Settings that were set with the SHIPPING GroupNameValueType
PaymentSettingsSetting[]Settings that were set with the PAYMENT GroupNameValueType
VariationSettingsSetting[]Settings that were set with the VARIATION GroupNameValueType
AttributeSettingsSetting[]Unused.

Setting

Field NameTypeDescription
IDStringConfigItemId that was provided in GetConfiguratorSettings call.
ValueString[]Customer selected value for this setting.

Sample

{
  "AuthorizationToken": "0dfdbaf3e4d5434f825e774e31bcc148",
  "Listings": [
    {
      "Attributes": [
        {
          "AttributeID": "Brand Name",
          "AttributeValue": "CoolProducts",
          "IsCustomAttribute": false
        },
        {
          "AttributeID": "Condition",
          "AttributeValue": "new",
          "IsCustomAttribute": false
        }
      ],
      "Categories": [
        "3"
      ],
      "ConfiguratorId": 13,
      "Description": "This is a high quality item",
      "ExternalListingId": "",
      "Images": [
        {
          "Tags": [
            "Main_image"
          ],
          "Url": "https://server.com/images.linnlive.com/f9a059eb1008300ab7eea8d586dd5000/bf24d3f3-1830-4ad4-ad8e-f01b9bbb00f1.jpg"
        },
        {
          "Tags": [
            "Main_image"
          ],
          "Url": "https://server.com/images.linnlive.com/f9a059eb1008300ab7eea8d586dd5000/bf24d3f3-1830-4ad4-ad8e-f01b9bbb00f1.jpg"
        }
      ],
      "Price": 10,
      "Quantity": 1,
      "SKU": "XYZ",
      "ShippingMethods": [
        {}
      ],
      "TemplateId": 2,
      "Title": "T-shirt",
      "VariationOptions": [
        {
          "Name": "Gender",
          "Position": 1,
          "Values": [
            {
              "Position": 1,
              "value": "Women"
            },
            {
              "Position": 2,
              "value": "Men"
            }
          ]
        }
      ],
      "Variations": [
        {
          "AttributeSettings": [
            {}
          ],
          "Images": [
            {}
          ],
          "OptionValues": [
            {
              "Name": "Gender",
              "Position": 1,
              "Value": "Women"
            }
          ],
          "Price": 10,
          "Quantity": 5,
          "SKU": "XYZ-1",
          "Title": "Nice Women’s T-shirt. One size."
        },
        {
          "AttributeSettings": [
            {}
          ],
          "Images": [
            {}
          ],
          "OptionValues": [
            {
              "Name": "Gender",
              "Position": 2,
              "Value": "Men"
            }
          ],
          "Price": 10,
          "Quantity": 3,
          "SKU": "XYZ-2",
          "Title": "Nice Men’s T-shirt. One size."
        }
      ],
      "Settings": [
        {
          "ConfiguratorId": 13,
          "Settings": {
            "GeneralSettings": [
              {}
            ],
            "PaymentMethods": [],
            "PaymentSettings": [
              {}
            ],
            "ReturnsSettings": [
              {
                "ID": "ReturnCost",
                "Values": [
                  "Buyer"
                ]
              },
              {
                "ID": "ReturnDays",
                "Values": [
                  "14"
                ]
              }
            ],
            "ShippingSettings": [
              {
                "ID": "ShippedFromCountry",
                "Values": [
                  "United Kingdom"
                ]
              },
              {
                "ID": "ShippedFromTown",
                "Values": [
                  "Chichester"
                ]
              },
              {
                "ID": "ShippedFromPostCode",
                "Values": [
                  "PO19 8DJ"
                ]
              }
            ],
            "VariationSettings": [
              {
                "ID": "VariationTheme",
                "Values": [
                  "Color-Size"
                ]
              }
            ]
          }
        }
      ],
      "Type": "CREATE"
    }
  ]
}

Response

ProductsListingResponse

Field NameTypeDescription
ChannelFeedIdStringId for the feed that corresponds to the batch of products that were created, updated or deleted. If the channel does not use feeds, a feed id needs to be generated by the external developer.
ErrorStringDefines if there was an error with the request and returns it.

Sample

{
  "ChannelFeedId": "123",
  "Error": null
}