Get allocation by query

Finds allocation details based on filter criteria

Request
header Parameters
required
object

x-site-context value

Request Body schema: application/json
limit
integer <int32>
Default: 10

Numbers of records to be returned

offset
integer <int64>
Default: 0

Number of records to skipped

sortBy
string
Default: "updatedAt"

Sorting criteria based on attributes

sortDirection
string
Default: "desc"

Sorting direction such as ascending or descending

Enum: "asc" "desc"
required
object
Default: {}

Filter criteria.
Note: To filter records, the json structure should be similar to target entity structure. That is, order, shipment, etc.

Responses
200

Matched Allocations

404

Data Not Found/Valid

500

Internal Server Error

post/allocation/query
Request samples
application/json
{
  • "limit": 10,
  • "offset": 0,
  • "sortBy": "updatedAt",
  • "sortDirection": "desc",
  • "filters": {
    }
}
Response samples
application/json
[
  • {
    }
]