Skip to main content
Skip table of contents

R2 API Resources

The key abstraction of information in REST is a resource.

Any information that can be named can be a resource: a document or image, entities (e.g. a customer, employee), and so on. REST uses a resource identifier to identify the particular resource involved in an interaction between components.

The exchange of information about a resource is done using methods (aka actions). The method is the type of request you send to the server. They are used to perform four possible actions: Create, Read, Update, and Delete (CRUD).

We are now supporting following resources...

Table 1.0: List of resources supported by our APIs

Resources

Method

Filters

Pagination

Path

Description

Accounts Groups

GET

 

 

/Groups

List of Groups

GET

 

 

/Groups/{Id}

Get Group information

POST

 

 

/Groups

Create Group

PUT

 

 

/Groups/{Id}

Update Group

 
 
 
 
 
 

AR Batches

GET

(green star)

 

/arbatches

List of Batches

GET

 

 

/arbatches/{id}

Get Batch information

 
 
 
 
 
 

Assets

GET

(green star)

(green star)

/assets

List of Assets

GET

 

 

/assets/{id}

Get Asset information

GET

(green star)

(green star)

/assets/{id}/changehistory

Get Asset bin and shelf change history

PUT

 

 

/assets/{id}

Update Asset

 
 

Categories

GET

(green star)

(green star)

/categories

List of Categories

 
 

Containers

GET

(green star)

(green star)

/categories

List of Containers

Customers

GET

(green star)

(green star)

/Customers

List of Customers

GET

 

 

/Customers/{Id}

Get Customer information

POST

 

 

/Customers

Create Customer

PUT

 

 

/Customers/{Id}

Update Customer

PATCH

 

 

/Customers/{Id}

Partially update Customer

 
 

Departments

GET

(green star)

(green star)

/Departments

List of Departments

 
 

Employees

GET

(green star)

(green star)

/employees

List of Emp

 
 

Events

GET

(green star)

(green star)

/events

List of Events

GET

 

 

/events/{id}

Get Event information

POST

 

 

/events

Create Event

PUT

 

 

/events/{id}

Update Event information

 
 

Invoices

GET

 

 

/invoices/{id}

Get Invoice information

POST

 

 

/invoices/{id}/post

Post Invoice

 
 

Items

GET

(green star)

(green star)

/Items

List of Items

GET

 

 

/Items{Id}?siteid={sitdeId}

Get Item information

PUT

 

 

/Items/{id}

Update Item information

 
 

Locations

GET

(green star)

(green star)

/locations

List of Locations

 
 

Orders

GET

(green star)

(green star)

/Orders

List of Orders

GET

 

 

/Orders/{Id}

Get Order information

POST

 

 

/Orders

Create Order

POST

 

 

/Orders/{Id}/convert/{type}

Convert Order to a specific type

PUT

 

 

/Orders/{Id}

Update Order

 
 

Projects

GET

(green star)

 

/projects

List of Projects

GET

 

 

/projects/{id}

Get Project information

POST

 

 

/projects

Create Project

PUT

 

 

/projects/{id}

Update Project

 
 

Sites

GET

(green star)

(green star)

/sites

List of Sites

 
 

Sub- Categories

GET

(green star)

(green star)

/subcategories

List of Sub-Categories

 
 

Transfer Orders

GET

(green star)

(green star)

/transfers

List of Transfer Orders

 

Receive entire Object as return while creating a object

Whenever a new object is created or an existing one is update through an API, the system returns the entire object along with all the values that were entered.

User Context

The R2 APIs have been enhanced to address the above issue, and now shall identify 'the user' (through the request header) who has request for the resource.

And the requested data is processed accordingly for each of the 'User Request' separately and simultaneously, and without affecting or overriding each other's changes.

Order of preference for empid:

  1. 'empid' if it exists in UserContext & is not blank

  2. Else 'empid' specified in .ini file.

Order of preference for siteid:

  1. 'siteid' if it exists in UserContext & is not blank

  2. Else default siteid of empid as mentioned in UserContext if empid is not blank

  3. Else default siteid of empid as mentioned in .ini file.

Filters

You can search for relevant records using comparison operators ‘<’, ‘>’, ‘<=’, ’>=’, ‘!=’, ‘=’, and ‘LIKE’.

You can also search the records with multiple fields using conditional operators such as AND and OR.

For example: customerstate="{customerstate}" AND companyname="{companyname}" OR companyname LIKE "%{companyname}%"

You can search records on complex nested conditions also.

For example: customerid="{customerid}" AND (ordertype="{(ordertype}" OR ordertype="{ordertype}") OR shippingboothroomnumber= "{shippingboothroomnumbe}"

If ‘Filters’ are supported for the Verb by a specific API Resource, the same is signified by a Green Star (green star) in the table above.

Pagination

The records are returned in sets of 25 per page. ‘Next-Page’ attribute in the response header is the flag that tells you if another page exists.

If ‘Pagination’ is supported for the Verb by a specific API Resource, the same is signified by a Green Star (green star) in the table above.

To know more about our API's, and to get it on your test environment today, please reach out to our Sales team.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.