2.16.5 • Published 3 years ago

epicor-erp-api v2.16.5

Weekly downloads
45
License
ISC
Repository
github
Last release
3 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

3 years ago

2.16.4

3 years ago

2.16.3

4 years ago

2.16.2

4 years ago

2.16.1

4 years ago

2.15.4

5 years ago

2.15.5

5 years ago

2.15.2

5 years ago

2.15.3

5 years ago

2.15.1

5 years ago

2.16.0

5 years ago

2.15.0

5 years ago

2.14.0

5 years ago

2.13.0

6 years ago

2.12.0

6 years ago

2.11.4

6 years ago

2.11.3

6 years ago

2.11.2

6 years ago

2.11.1

6 years ago

2.11.0

6 years ago

2.10.0

6 years ago

2.9.10

6 years ago

2.9.9

6 years ago

2.9.8

6 years ago

2.9.7

6 years ago

2.9.6

6 years ago

2.9.5

6 years ago

2.9.4

7 years ago

2.9.3

7 years ago

2.9.2

7 years ago

2.9.1

7 years ago

2.9.0

7 years ago

2.8.6

7 years ago

2.8.5

7 years ago

2.8.4

7 years ago

2.8.3

7 years ago

2.8.2

7 years ago

2.8.1

7 years ago

2.8.0

7 years ago

2.7.0

7 years ago

2.6.3

7 years ago

2.6.2

7 years ago

2.6.1

7 years ago

2.6.0

7 years ago

2.5.0

7 years ago

2.4.1

7 years ago

2.4.0

7 years ago

2.3.0

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

8 years ago

1.0.32

8 years ago

1.0.31

8 years ago

1.0.30

8 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago