POST public-api/locations/getlocationsbycode
This method returns existing locations by name. Each requested location is returned as its own result entry, so a single call can succeed for some locations and report a retrieval or site access error for others. Submitting an empty list returns every active location instead, capped by the tenant's configured maximum page size; note that this all-locations form does not populate the custom field values or notes that the by-code form returns. It requires access to the Site where the Location is located. Note: This is a Post API to avoid limitations inherent to passing parameters on the URL.
Request Information
URI Parameters
None.
Body Parameters
Collection of LocationCodeWithSiteName| Name | Description | Type | Additional information |
|---|---|---|---|
| LocationCode | string |
None. |
|
| SiteName | string |
None. |
Request Formats
application/json
[
{
"LocationCode": "sample string 1",
"SiteName": "sample string 2"
},
{
"LocationCode": "sample string 1",
"SiteName": "sample string 2"
}
]
Response Information
Resource Description
WaspResultOfListOfWaspResultOfLocationModelInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of WaspResultOfLocationModelInfo |
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": [
{
"Data": {
"RowNumber": 1,
"LocationId": 2,
"SiteName": "sample string 3",
"ZoneName": "sample string 4",
"LocationCode": "sample string 5",
"LocationDescription": "sample string 6",
"UsageTypeName": "sample string 7",
"LocationSaleable": 1,
"DefaultLocation": true,
"LocationRecordStatus": 0,
"LocationNotes": "sample string 8",
"AllLocationNotes": [
{
"NoteText": "sample string 1",
"NoteDate": "2026-11-05T21:57:31.8425256+00:00",
"UserLogon": "sample string 2"
},
{
"NoteText": "sample string 1",
"NoteDate": "2026-11-05T21:57:31.8425256+00:00",
"UserLogon": "sample string 2"
}
],
"CustomFields": [
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-11-05T21:57:31.8425256+00:00",
"DcfValueRecordStatus": 0
},
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-11-05T21:57:31.8425256+00:00",
"DcfValueRecordStatus": 0
}
],
"LocationSequence": 1.0,
"LocationWidth": 1.0,
"LocationHeight": 1.0,
"LocationDepth": 1.0,
"DimensionUnit": "sample string 9",
"LocationVolume": 1.0,
"LocationMaxWeight": 1.0,
"WeightUnit": "sample string 10",
"LocationMaxVolume": 1.0,
"VolumeUnit": "sample string 11",
"ParentLocation": "sample string 12",
"ChildrenLocations": 13,
"LastUpdated": "2026-11-05T21:57:31.8425256+00:00"
},
"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
},
{
"Data": {
"RowNumber": 1,
"LocationId": 2,
"SiteName": "sample string 3",
"ZoneName": "sample string 4",
"LocationCode": "sample string 5",
"LocationDescription": "sample string 6",
"UsageTypeName": "sample string 7",
"LocationSaleable": 1,
"DefaultLocation": true,
"LocationRecordStatus": 0,
"LocationNotes": "sample string 8",
"AllLocationNotes": [
{
"NoteText": "sample string 1",
"NoteDate": "2026-11-05T21:57:31.8425256+00:00",
"UserLogon": "sample string 2"
},
{
"NoteText": "sample string 1",
"NoteDate": "2026-11-05T21:57:31.8425256+00:00",
"UserLogon": "sample string 2"
}
],
"CustomFields": [
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-11-05T21:57:31.8425256+00:00",
"DcfValueRecordStatus": 0
},
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-11-05T21:57:31.8425256+00:00",
"DcfValueRecordStatus": 0
}
],
"LocationSequence": 1.0,
"LocationWidth": 1.0,
"LocationHeight": 1.0,
"LocationDepth": 1.0,
"DimensionUnit": "sample string 9",
"LocationVolume": 1.0,
"LocationMaxWeight": 1.0,
"WeightUnit": "sample string 10",
"LocationMaxVolume": 1.0,
"VolumeUnit": "sample string 11",
"ParentLocation": "sample string 12",
"ChildrenLocations": 13,
"LastUpdated": "2026-11-05T21:57:31.8425256+00:00"
},
"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
}
],
"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
}