POST public-api/ic/purchaseorder/FindOrdersByASNTrackbyValues
This method finds the purchase orders that match the supplied preliminary (Advance Shipping Notice) track-by values. At least one of order number, container id, lot, or serial number must be supplied; if all of them are empty the order is reported as not found. If an order number is supplied it is matched directly; otherwise the container id, lot, and serial number are matched against the preliminary track-by information, and orders in Draft, Cancelled, Closed, Rejected, Deleted, or Complete status are excluded. A successful search that matches nothing is reported as success with no data rather than as an error. Note: This is a Post API to avoid limitations inherent to passing parameters on the URL.
Request Information
URI Parameters
None.
Body Parameters
OrderSimpleSearch| Name | Description | Type | Additional information |
|---|---|---|---|
| SearchForPurchaseOrders | boolean |
None. |
|
| OrderNumber | string |
None. |
|
| ContainerId | string |
None. |
|
| Lot | string |
None. |
|
| SerialNumber | string |
None. |
|
| RetrySearchContainerIdInClosedOrders | boolean |
None. |
Request Formats
application/json
{
"SearchForPurchaseOrders": true,
"OrderNumber": "sample string 2",
"ContainerId": "sample string 3",
"Lot": "sample string 4",
"SerialNumber": "sample string 5",
"RetrySearchContainerIdInClosedOrders": true
}
Response Information
Resource Description
WaspResultOfListOfSimpleModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of SimpleModel |
None. |
|
| Messages | Collection of WtResult |
None. |
|
| BatchNumber | integer |
None. |
|
| HasError | boolean |
None. |
|
| HasHttpError | boolean |
None. |
|
| HasMessage | boolean |
None. |
|
| HasSuccessWithMoreDataRemaining | boolean |
None. |
|
| TotalRecordsLongCount | integer |
None. |
Response Formats
application/json
{
"Data": [
{
"Id": 1,
"Name": "sample string 2",
"AssetGroupContainerId": 3
},
{
"Id": 1,
"Name": "sample string 2",
"AssetGroupContainerId": 3
}
],
"Messages": [
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
},
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
}
],
"BatchNumber": 1,
"HasError": false,
"HasHttpError": false,
"HasMessage": true,
"HasSuccessWithMoreDataRemaining": false,
"TotalRecordsLongCount": 1
}