API Version Auth Token Data Sources Server Time
AP Check Update AP Invoice Entry
AR Invoice Entry AR Remittance Entry
GL Account
Adjustments Entry Backflush Kit Issue Issues Entry Part Physical Count Entry Stock Status Stores Transfer
Serial Number Cross Reference WIP Completions Entry
Lot
Multiple Location

Bill of Material
Purchase Order PO Receipts Entry Receipt Transaction Vendor Vendor Contact Vendor Part
Customer Customer Contact Customer Part Product Price Sales Order Serial Number Shipments Entry Shipment Transaction




Multiple Location, Query

Queries existing Multiple Locations using the provided criteria and returns a list of found Multiple Locations.

URL
/api/multiple-location-query
Request Method
POST
Expandable Program
Multiple Location Editor (MLEML)
Required Fields
(at least one field to be used as query criteria)
AUTH_TOKEN
Auth Token
This API call requires an Authentication Token ("Auth Token") for the required field AUTH_TOKEN. Auth Tokens are obtained from Auth Token, Get.
Example Request JSON
{
  "STORES_CODE": "MS",
  "PART_ID": "MOTOR003",
  "ON_HAND_QTY": "> 0",
  "AUTH_TOKEN": ""
}
Full Request JSON
{
  "STORES_CODE": "",
  "PART_ID": "",
  "STOCK_LOCATION": "",
  "ON_HAND_QTY": "",
  "BOOK_QTY": "",
  "PHYSICAL_QTY": "",
  "DATE_LAST_ACT": "",
  "DATE_LAST_RECPT": "",
  "DATE_LAST_ISSUE": "",
  "DATE_LAST_PHY": "",
  "DATE_LAST_PRINT": "",
  "MLFML_USER_1": "",
  "MLFML_USER_2": "",
  "MLFML_USER_3": "",
  "MLFML_USER_4": "",
  "CREATED_BY": "",
  "DATE_CREATED": "",
  "MODIFIED_BY": "",
  "DATE_MODIFIED": "",
  "OPERATOR_ID": "",
  "DATE_LAST_UPDT": "",
  "TIME_LAST_UPDT": "",
  "AUTH_TOKEN": ""
}
QBE Notation
This query uses Expandable Query By Example (QBE) Notation. QBE Notation allows for conditional query criteria.

Not Equal To:
"SO_STATUS": "<>X"

Greater Than:
"ON_HAND_QTY": ">0"

Greater Than Or Equal To:
"EFFECTIVE_DATE": ">=2016-01-01"

Less Than:
"AMOUNT": "<100"

Less Than Or Equal To:
"DATE_APPROVED": "<=2019-05-30"

Between:
"ORDER_QTY": "BETWEEN 10 AND 100"

In:
"LOT_STATUS": "IN A,C"

Wildcard (any length):
"PART_ID": "MOTOR%"

Wildcard (single character):
"SERIAL_NUMBER": "GC0000406_"

Success Response
Returned HTTP status indicates success:

200/OK

Returned JSON contains the Multiple Locations which were found by the query:
[
  {
    "STORES_CODE": "",
    "PART_ID": "",
    "STOCK_LOCATION": "",
    "ON_HAND_QTY": "",
    "BOOK_QTY": "",
    "PHYSICAL_QTY": "",
    "DATE_LAST_ACT": "",
    "DATE_LAST_RECPT": "",
    "DATE_LAST_ISSUE": "",
    "DATE_LAST_PHY": "",
    "DATE_LAST_PRINT": "",
    "MLFML_USER_1": "",
    "MLFML_USER_2": "",
    "MLFML_USER_3": "",
    "MLFML_USER_4": "",
    "CREATED_BY": "",
    "DATE_CREATED": "",
    "MODIFIED_BY": "",
    "DATE_MODIFIED": "",
    "OPERATOR_ID": "",
    "DATE_LAST_UPDT": "",
    "TIME_LAST_UPDT": ""
  }
]
Failure Response
Returned HTTP status indicates failure:

400/Request JSON is invalid.
401/Auth Token was not provided.
401/Auth Token is malformed.
401/Auth Token login failure.
405/Request method must be POST.
500/(Error Message)

Returned JSON contains error information for the failed Multiple Location query:
{
  "MESSAGE": "",
  "MESSAGE_CODE": ""
}
Try the API