- How to manage automatic product data download with curl command
- How to register as an existing customer
curl 'https://shop-api.rocksafety.com/api/product-data-download/download/csv'
-u 'useremail:userpassword'
-H 'Content-Type: application/x-www-form-urlencoded'
-H 'Content-Language: en'
--data 'short_description[en]=1&unit=1'
- There is a download center url after the curl command. After the last "/" sign there is a download format. It can be csv|json|xlsx
- parameter -u : authentication parameter, username and password with a following format : user email address, semicolon, user password
- first parameter -H : Mandatory without changes (Content-Type)
- second parameter -H : you can set up a download language. Value of Content-Language can be : hu|en|de|nl|fr|pl|ro|ru|sr
- you can set up any parameters from the available parameters, but you can separate it with & sign
- short_description[hu]=1 (Short description)
- short_description[en]=1 (Short description )
- short_description[de]=1 (Short description )
- short_description[nl]=1 ( Short description )
- short_description[fr]=1 ( Short description )
- short_description[pl]=1 ( Short description )
- short_description[ro]=1 ( Short description )
- short_description[ru]=1 ( Short description )
- short_description[sr]=1 ( Short description )
- description[hu]=1 (Long description)
- description[en]=1 ( Long description )
- description[de]=1 ( Long description )
- description[nl]=1 ( Long description )
- description[fr]=1 ( Long description )
- description[pl]=1 ( Long description )
- description[ro]=1 ( Long description )
- description[ru]=1 ( Long description )
- description[sr]=1 ( Long description )
- category[hu]=1 ( Category )
- category[en]=1 ( Category)
- category[de]=1 ( Category )
- category[nl]=1 ( Category )
- category[fr]=1 ( Category )
- category[pl]=1 ( Category )
- category[ro]=1 ( Category )
- category[ru]=1 ( Category )
- category[sr]=1 ( Category )
- main_description[hu]=1 (Main description)
- main_description[en]=1 ( Main description )
- main_description[de]=1 ( Main description )
- main_description[nl]=1 ( Main description )
- main_description[fr]=1 ( Main description )
- main_description[pl]=1 ( Main description )
- main_description[ro]=1 ( Main description )
- main_description[ru]=1 ( Main description )
- main_description[sr]=1 ( Main description )
- product_variant_article_number_old=1 (Old product number)
- product_article_number=1 (Main product number)
- product_article_number_old=1 (Old main product number)
- package=1 (products in a package)
- carton=1 (products in a carton)
- weight=1 (weight)
- volume=1 (volume)
- price=1 (price)
- unit=1 (unit)
- image=1 (product picture)
- warehouse_erd=1 (stock (Érd))
- warehouse_center=1 (stock (Center))
- warehouse_vam=1 (stock (Bonded warehouse))
- gtin=1 (GTIN (EAN))
- tariff_number=1 (Customs tariff number)
- certificates=1 (certificates)
example.:
curl 'https://shop-api.rocksafety.com/api/product-data-download/download/xlsx' -u 'user@user.hu:userpwd' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Content-Language: hu' --data 'short_description[hu]=1&unit=1&product_article_number=1' > rocksafetyproducts.xlsx
Follow the next steps for the registration:
- Click on the Login menu.
- Check your customer number on one of your invoices.
- Click on the REGISTRATION label.
- Please type your Customer Code and Tax number.
- Please set your name, email and password to finish the registration.