getAllowedWarehouses

This call is deprecated. Use Account Administration API instead.

The corresponding new call is: GET /v1/user/warehouse.

Retrieve warehouses that the specified user has access to. API call getWarehouses, on the other hand, returns all warehouses.

Input parameters

Parameter name Description Possible value Required
lang Retrieve item names in a specific language. If omitted, API will return item names in the default language of your Erply account.
Possible values:
  • 'eng' - English
  • 'spa' - Spanish
  • 'ger' - German
  • 'swe' - Swedish
  • 'fin' - Finnish
  • 'rus' - Russian
  • 'est' - Estonian
  • 'lat' - Latvian
  • 'lit' - Lithuanian
  • 'gre' - Greek
string
userID User ID. If omitted, list of all locations will be returned. integer
selectedWarehouseID If, for example the list of warehouses is needed to populate a dropdown list and one of the items must be preselected (when modifying an existing document), send this input parameter. The selected item must be present in the list even when user technically does not have access to that warehouse. (We want to avoid a situation where user edits an invoice and system silently changes the warehouse in which the sale was done.) integer

Response

Field name Type Description
warehouseID integer ID of the warehouse
name string Name of the warehouse