getSuppliers

This call is deprecated. We recommend to use PIM API instead.

The corresponding new call is: GET /v1/supplier.

Retrieve suppliers.

Suppliers can be associated with products (see getProducts) and purchase orders / purchase invoices (see getPurchaseDocuments).

Input parameters

Parameter name Description Possible value Required
supplierID Supplier ID. integer
searchName Search from supplier name, e-mail or phone. string
searchPersonFullName Search from person full name. string
searchPersonFirstName Search from person first name. string
searchPersonLastName Search from person last name. string
searchVATNo Search from supplier VAT no. string
searchRegistryCode Search from supplier registry code. Exact matches only. string
searchAttributeName Name of attribute to search from. Both "searchAttributeName" and "searchAttributeValue" have to be specified. Error 1030 will be returned if value is an array. string
searchAttributeValue Attribute value to search for. Error 1030 will be returned if value is an array. string
supplierManagerID Supplier manager. See getEmployees. integer
groupID Supplier group ID. See getSupplierGroups. integer
docuraEDIEnabled Integer (1 or 0)
mode SUPPLIERS, CONTACTS or ALL.
By default ALL.

Erply makes a distiction between 1) companies who are suppliers in their own right, and 2) persons who are marked as contact persons of some other supplier. Option "SUPPLIERS" returns only the first ones, "CONTACTS" returns only the second ones and "ALL" returns both.
string
changedSince Retrieve only items that have been added or modified since the specified timestamp. Use it to keep a local database in sync with Erply. Integer (Unix timestamp)
orderBy 'supplierID', 'name', 'group' or 'lastChanged'. By default 'name'.
orderByDir Sort direction: 'asc' (ascending order) or 'desc' (descending order). By default, items are sorted in ascending order. string
recordsOnPage Number of records API should return. By default 20, at most 100. integer
pageNo API returns at most recordsOnPage items at a time. To retrieve the next recordsOnPage items, send a new request with pageNo incremented by one. By default, API returns "page 1". integer

Response

Field name Type Description
supplierID integer Supplier ID
supplierType string COMPANY or PERSON.

  • For companies, the following attributes are set: fullName, companyName (both have the same value).
  • For persons, the following attributes are set: fullName, firstName, lastName. fullName is a combination of latter two: "lastName, firstName".

fullName can be used for displaying supplier's name wherever needed.

Guidelines for applications with a supplier edit form:
  • Companies should have one name field and the attribute that is edited should be companyName.
  • Persons should have separate fields for given name and surname (respective attributes: firstName, lastName).

Note: API call saveSupplier also has an input parameter "fullName" (when using that, system tries to interpret and split the name as required), but it should be used only when brokering data from some other system where a better data format is not available.
fullName string Full name of the supplier, use for displaying supplier name.
companyName string For companies only.
firstName string (Given name.) For persons only.
lastName string (Surname.) For persons only.
groupID integer Supplier group ID
groupName string
phone string
mobile string
email string
fax string
code string National ID number (for persons) / Registry code (for companies).
integrationCode string Corresponding supplier identifier in a system integrated with Erply (eg. accounting software)
vatrateID integer ID of a VAT rate
currencyCode string Currency code, e.g. "EUR"
deliveryTermsID integer ID of delivery terms
countryID integer ID of supplier's country
countryName string Supplier country
countryCode string Supplier country, as a two-letter country code (ISO 3166-1 alpha-2)
address string One of supplier's addresses. Only for concise displaying of supplier information. To manage addresses, use API calls getAddresses and saveAddress.
GLN string
docuraEDIEnabled Integer (0 or 1)
attributes array Additional attributes. Each item looks like this:

Field nameTypeDescription
attributeNameStringAttribute name
attributeTypeStringAttribute type
attributeValueStringAttribute value
**** **** To retrieve the following fields, set input parameter responseMode = "detail". These fields are not included in the output by default.
vatNumber string Supplier VAT number.
skype string
website string
bankName string Name of supplier's bank.
bankAccountNumber string Number of supplier's bank account.
bankIBAN string IBAN number of supplier's bank account.
bankSWIFT string BIC/SWIFT identifier of supplier's bank account.
birthday Date (yyyy-mm-dd) Person birthday
companyID integer ID of company (if user is a contact person of a particular company)
parentCompanyName string
supplierManagerID integer Supplier manager ID
supplierManagerName string
paymentDays integer Default payment period.
notes string
lastModified Unix timestamp
added Unix timestamp
**** **** End of extra output fields