Catalog

Import Servlet

In order to import Categories and Items, we have created dedicated endpoints :

Parameters :

Examples

Paramters samples values

  • Datas
    • idCatalog : 555
    • encoding : UTF-8
  • Categories
    • categoryUpdateModeInputName : CREATE_OR_UPDATE
    • categoryCSVInputName : categories-file.csv
  • Items
    • itemUpdateModeInputName : CREATE_OR_UPDATE
    • itemCSVInputName : items-file.csv

Curl example

Using Curl : curl -k -X POST 'https://localhost:8443/loyaltyoperator/ImportCatalog.do' \ --header 'Authorization: Basic ' \ --header 'Content-Type: multipart/form-data' \ -F 'idCatalog="35726"' \ -F 'encoding="UTF-8"' \ -F categoryCSVInputName=@"/mnt/c/adelya/TU/in/dataCateg.csv" \ -F itemCSVInputName=@"/mnt/c/adelya/TU/in/dataItem.csv"