shop.rights

Returns access rights of current user to Shop-Script app.

Parameters

  • format GET Optional

    Sets response format. Available options: json (default), xml.

Return value

Backend user’s or courier’s access rights data array with the following keys:

  • backend int Common access rights to the store backend.
  • customers int Access rights to the customers management.
  • design int Access rights to design editing.
  • importexport int Access rights to data import & export.
  • marketing int Access rights to marketing tools.
  • orders int Access rights to orders management.
  • pages int Access rights to editing info pages.
  • reports int Access rights to repors.
  • services int Access rights to services management.
  • setscategories int Access rights to product categories and sets management.
  • settings int Access rights to settings.
  • setup_marketing int Access rights marketing tools settings.
  • type.[...] int Access rights to product type [...].
  • workflow_actions.[...] int Access rights to order action with ID [...].

If an authorized user is a courier then additional keys are available in the response:

  • orders int 1.
  • order_edit int Value of courier’s property "Edit orders".
  • customer_edit int Value of courier’s property "Edit customers".

Example

https://demo1.webasyst.com/api.php/shop.rights?