2.16.5 • Published 2 years ago

epicor-erp-api v2.16.5

Weekly downloads
45
License
ISC
Repository
github
Last release
2 years ago

Epicor ERP API

A wrapper for Epicor ERP REST API.

Warning: methods in this package are built for a specific purpose and may not fit yours!

Usage

Create a connection:

const Epicor = require('epicor-erp-api')

const connection = new Epicor({
  serverUrl: process.env['SERVER_URL'],
  username: process.env['USERNAME'],
  password: process.env['PASSWORD'],
  strictSSL: process.env['SKIP_CERT_VERIFICATION'] !== 'true'
})

Access methods on individual services. Services have a set of common methods as well as some methods specific to the service.

const myCustomers = connection.Customers.find('CustNum > \'123\'')

To pass a company in the callSettings, specify it when creating the Epicor connection, or call the setConnectionCompany later:

const connection = new Epicor({
  ...,
  company: '700'
})

...

connection.setConnectionCompany('800')

Common methods on services

  • create(record): create a record, populating default values where not supplied. Returns a promise that will resolve to the created record.
  • update(record) - update a single record, based on the key (specific to the collection / connection). Throw an error if the record does not exist. Returns updated record.
    • this does not do any conflict resolution
    • this does not merge values with the existing record, so it will error if certain required fields are not populated
  • get(recordKeyObject) - retrieve an existing record using the given selector (an object with the id populated). Null if not found.
  • find(whereClause, options): return a stream of record matching the condition. Available options:
    • pageSize (defaults to 25): how many records to return at one time. This will automatically retrieve additional pages if available.
    • limit (defaults to 0 = no limit)

Available Services

Customers

Wrapper for CustomersSvc.

Specific methods:

  • create will retrieve the default territory
2.16.5

2 years ago

2.16.4

2 years ago

2.16.3

3 years ago

2.16.2

3 years ago

2.16.1

3 years ago

2.15.4

4 years ago

2.15.5

4 years ago

2.15.2

4 years ago

2.15.3

4 years ago

2.15.1

4 years ago

2.16.0

4 years ago

2.15.0

4 years ago

2.14.0

4 years ago

2.13.0

4 years ago

2.12.0

5 years ago

2.11.4

5 years ago

2.11.3

5 years ago

2.11.2

5 years ago

2.11.1

5 years ago

2.11.0

5 years ago

2.10.0

5 years ago

2.9.10

5 years ago

2.9.9

5 years ago

2.9.8

5 years ago

2.9.7

5 years ago

2.9.6

5 years ago

2.9.5

5 years ago

2.9.4

5 years ago

2.9.3

5 years ago

2.9.2

5 years ago

2.9.1

5 years ago

2.9.0

6 years ago

2.8.6

6 years ago

2.8.5

6 years ago

2.8.4

6 years ago

2.8.3

6 years ago

2.8.2

6 years ago

2.8.1

6 years ago

2.8.0

6 years ago

2.7.0

6 years ago

2.6.3

6 years ago

2.6.2

6 years ago

2.6.1

6 years ago

2.6.0

6 years ago

2.5.0

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.36

6 years ago

1.0.35

6 years ago

1.0.34

6 years ago

1.0.33

6 years ago

1.0.32

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago