getEvents

Retrieve events or appointments.

In Erply backend, events (appointments) are listed in the Calendar » Tasks module.

To edit or add an event, use saveEvent.

Input parameters

Parameter name Description Possible value Required
eventID Retrieve one specific event. integer
description Search for an event, by any text contained in event name (description). string
employeeID Filter events by employee (assignee, stylist). integer
submitterID Filter events by creator. integer
supllierID Filter events by supplier. integer
statusID Filter events by status. integer
typeID Filter events by type. integer
customerID Retrieve events associated with one customer. integer
customerIDs Comma-separated list of customer IDs. Retrieve events associated with multiple customers. string
startDateTimeFrom ISO date and time string ("yyyy-mm-dd hh:mm:ss")
startDateTimeUntil ISO date and time string ("yyyy-mm-dd hh:mm:ss")
endDateTimeFrom ISO date and time string ("yyyy-mm-dd hh:mm:ss")
endDateTimeUntil ISO date and time string ("yyyy-mm-dd hh:mm:ss")
resourceID integer
projectID integer
warehouseID Filter events by location.

Salon-specific attribute. Available only if Salon / Spa module is enabled on your account.
integer
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
getAllSalonEvents This is an event type filter. getAllSalonEvents = 1 returns all special spa/salon events (appointments, employee breaks, lunches, vacations, sick days), except for the events that represent employee work schedule. Integer (0 or 1)
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)
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
orderBy Possible values: "eventID", "startTime", "endTime", "type", "status", "customerName", "employeeName", "submitterName". By default: "startTime" string
orderByDir Sort direction: 'asc' (ascending order) or 'desc' (descending order). By default, items are sorted in descending order. string
recordsOnPage Number of records API should return. By default 20, at most 1000. 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
eventID integer ID of existing document. If this parameter is present, then an existing event is updated.
description string Event name or description.
typeID integer Event type ID. For all event types, see getEventTypes.
typeName string Event type name.
startTime string Datetime (yyyy-mm-dd hh:mm:ss). Start date and time of the event, eg. 2010-05-18 15:40:00 (in the account's default timezone).
endTime string Datetime (yyyy-mm-dd hh:mm:ss). End date and time of the event, eg. 2010-05-18 16:00:00 (in the account's default timezone).
customerID integer ID of the customer related to this event (eg. a phone call or a meeting with particular customer).
customerName string Name of the customer.
contactID integer ID of the customer's contact person.
contactName string Name of the contact person.
projectID integer ID of the project associated with this event.
projectName string Name of the project.
employeeID integer Employee whom this task was assigned to.
employeeName string Employee name.
submitterID integer Employee who entered or assigned this task.
submitterName string Submitter name.
supplierID integer Supplier ID.
supplierName string Supplier name.
statusID integer Event status ID. For all event statuses, see getEventStatuses.
statusName string Event status name.
completed 0 or 1, by default 0 1 if this event is completed, otherwise 0
resourceID integer Resource associated with this event.
resourceName string Resource name.
productID integer Product ID. This is a salon-specific field — the service (eg. a haircut or coloring) associated with this appointment.

API only returns this field if Salon / SPA module is enabled on your account.
productName integer Product name. API only returns this field if Salon / SPA module is enabled on your account.
warehouseID integer Location / salon ID. API only returns this field if Salon / SPA module is enabled on your account.
checkInTime integer Unix timestamp. API only returns this field if Salon / SPA module is enabled on your account.
checkOutTime integer Unix timestamp. API only returns this field if Salon / SPA module is enabled on your account.
serviceStartTime integer Unix timestamp. API only returns this field if Salon / SPA module is enabled on your account.
type string Special codename of the event type. This is only available for special spa/salon events, if you are using the respective module. Possible values: APPOINTMENT, SCHEDULE, BREAK, LUNCH, VACATION, SICKDAY.
status string Name of the event status. If Salon / SPA module is enabled, possible values: SCHEDULED, CHECKEDIN, NOSHOW, BEINGSERVICED, CHECKEDOUT, NONE.
notes string Longer description, associated e-mail message or anything else.
lastModified Unix timestamp
attributes array Additional attributes. Each item looks like this:

Field nameTypeDescription
attributeNameStringAttribute name
attributeTypeStringAttribute type
attributeValueStringAttribute value
added integer Unix timestamp. Item's creation time. To retrieve this field, set input parameter responseMode = "detail". This field is not included in the output by default.