- Resource Central
- Batches
Batches
A Batch (also called a Lot) is a group of work order lines that are associated with each other, either for easy picking or for historical records.
Attributes
-
id
uuid
The unique ID of the batch.
-
name
string
LIMIT:
50
The name of the batch.
-
priority
integer
Batch priority level.
Possible values:
1 = Low
2 = Medium
3 = High
4 = Hot (if included)Default value: 2 (Medium)
- type integer
Endpoints
Get a list of batches from the PPG database. View the guide on adding filters to List API calls.
Body Parameters
-
name
string
LIMIT:
50
The name of the batch.
- type integer
-
countOnly
boolean
When "true", will only return a count of the amount of items in the query.
Default value:
false -
limit
integer
A limit on the number of objects to be returned.
Default value:
1000 -
page
integer
Page numbering is zero-based and uses the value of the "limit" argument. (For example, if limit=20, then page=0 will display the hits from 1 to 20.)
-
orderBy
string, array
Order the response by the selected field. Multiple values can be passed, separated by a comma.
Create a batch and get a response.
Body Parameters
-
name
string
LIMIT:
50
REQUIRED
The name of the batch.
- type integer
-
priority
integer
Batch priority level.
Possible values:
1 = Low
2 = Medium
3 = High
4 = Hot (if included)Default value:
2 (Medium)
Get a single batch from the PPG database and return a JSON response.
Body Parameters
Delete a specific batch from the PPG database and return a JSON response.
You cannot delete a batch unless there are no work order lines assigned to it, so you may either need to reassign the work order lines separately, or deallocate the order lines they belong to.