This page documents all the APIs available in your custom applications. Authentication is automatically taken care of in the background.

Events

The following methods are called by Nedap Harmony inside your application.

events.onAction = async (action) => {
  log('Received action', action)
}

A new action is created by the reader. The action object is defined as in the API Reference.

Methods

The following methods can be called by your application.

Master data

const masterData = apiFunctions.findMasterData(type, references)

// type is a string
// references is an array of strings

// masterData is an array of MasterDataItem

Documents

const documents = apiFunctions.findDocuments(type, references)

// type is a string
// references is an array of strings

// documents is an array of Document

apiFunctions.createOrReplaceDocument(type, reference, contents)

// type is a string, type of the document
// reference is a string, reference identifier of the document
// contents is any JSON content, contents of the document

Trigger

apiFunctions.triggerReadPoint({type: value})

// value is a string, one of ["RfidStartReading", "RfidStopReading", "GpoChangeStatus", "SoundPlay"]

Did this page help you?