Loyalty.lt
Xml import

Which element names the importer recognises

Every field the parser reads, with the element names accepted for each. Read this rather than hardcoding the list: the aliases grow as feeds in the wild need them. Only name and price are required per product.

GET/{locale}/shop/xml-import/field-mappings

Every field the parser reads, with the element names accepted for each. Read this rather than hardcoding the list: the aliases grow as feeds in the wild need them. Only name and price are required per product.

Authorization

apiKey apiSecret
X-API-Key<token>

Partner API key from the Partners Portal. Always sent together with X-API-Secret.

In: header

X-API-Secret<token>

Partner API secret. Always sent together with X-API-Key.

In: header

Path Parameters

locale*string

Locale code

Value in

  • "lt"
  • "en"

Response Body

application/json

curl -X GET "https://example.com/lt/shop/xml-import/field-mappings"
{  "success": true,  "data": {    "product_fields": {      "name": [        "name",        "title",        "product_name"      ],      "ean": [        "ean",        "ean13",        "barcode"      ]    },    "offer_fields": {      "price": [        "price",        "regular_price"      ],      "stock_quantity": [        "stock",        "quantity"      ]    },    "category_fields": {      "categories": [        "categories/category",        "category"      ]    }  }}