Search

saveWarehouse

Create or update a store (location, warehouse).

To retrieve a list of locations, see getWarehouses.

Input parameters

Parameter nameDescriptionPossible valueRequired
warehouseIDInteger
nameWarehouse name. Use either general parameter "name" or one or more of the following parameters if you need to set the names in specific languages.String
nameESTString
nameENGString
nameLATString
nameFINString
nameRUSString
nameGREString
codeWarehouse code.String
storeRegionID

Store region ID, available only if "Store regions" module has been enabled on your account.

To get a list of store regions, see getStoreRegions.

Integer
assortmentID

Assortment ID.

An assortment defines which product can be sold and/or purchased in this location.

Using assortments requires the "Assortments" extra module which customer support can enable on your account.

To get a list of assortments and their contents, see getAssortments and getAssortmentProducts.

Integer
priceListIDWarehouse first price listInteger
priceListID2Warehouse second price listInteger
priceListID3Warehouse third price listInteger
storeGroupsA comma-separated list of store groupsString
companyNameSet a custom "company name" for this location.

Typically you should not use this field. This may be needed only if the location is a separate corporate entity: your business is a franchise chain that operates in a single ERPLY account, instead of using a separate account for each entity.
String
companyCodeSet a custom "company registry number" for this location. See the comment above.String
companyVatNumberSet a custom "company VAT number" for this location. See the comment above.String
addressIDSet the ID of location's address. The ID MUST be one of the addresses on your company card.

(It is not possible to edit company information or add corporate addresses via API, and API call getCompanyInfo does not return a list of all corporate addresses. Therefore this field is probably useful only if the address has been defined in ERPLY back office beforehand, and you know its ID.)
Integer
phoneSet the location's phone number. This information is displayed for example on invoice and receipt printouts.

If you do not specify a phone number for this location, the printouts will display general corporate phone number, from your company card. (The same comment also applies to the fields below.)
String
faxSet the location's fax number.String
emailSet the location's e-mail address.String
websiteSet the location's web site address.String
bankSet the location's bank name.String
accountSet the location's bank account number.String
swiftSet the location's bank BIC/SWIFT code.String
ibanSet the location's IBAN (international bank account number).String
shift1StartSalon-specific attribute. Available only if Salon / Spa module is enabled on your account.ISO time (hh:mm), am/pm allowed
shift1EndSalon-specific attribute. Available only if Salon / Spa module is enabled on your account.ISO time (hh:mm), am/pm allowed
shift2StartSalon-specific attribute. Available only if Salon / Spa module is enabled on your account.ISO time (hh:mm), am/pm allowed
shift2EndSalon-specific attribute. Available only if Salon / Spa module is enabled on your account.ISO time (hh:mm), am/pm allowed
*************Additional attributes associated with this item.
Attributes must be supplied as a flat list, each attribute defined by the following set of three parameters. Replace # with set number (1, 2, 3, ...). When updating an existing entry, API will only update the attributes specified in input data and leave all other existing attributes unchanged. To delete an attribute, set its value to 'null' or 'undefined'.
attributeName#Attribute name. Name can only contain the following symbols: A-Z, a-z, 0-9, dash and underscore.String
attributeType#Attribute type, possible types are 'text', 'int' and 'double'. By default 'text'.String
attributeValue#Value of the attribute. Set value to 'null' or 'undefined' to delete an attribute.
'text' attribute can be any string, maximum 255 characters.
'int' must be a signed 32-bit integer.
'double' must be a decimal number.
String

Response

Field nameTypeDescription
warehouseIDIntegerID of the newly-created or updated item