Get All Terminals (using POST)
POST {{terminal-service-api}}/terminal
Understanding How Filter Data
[Click here]
To view search conditions GET(
[https://terminal-service-api.staging.azapay.ng/allowed-query/search-condition
](https://terminal-service-api.staging.azapay.ng/terminal/allowed-query/search-condition))To view allowed search field GET(
[https://terminal-service-api.staging.azapay.ng/allowed-query/fields/terminal](https://terminal-service-api.staging.azapay.ng/allowed-query/fields/terminal)[
](https://terminal-service-api.staging.azapay.ng/terminal/allowed-query/fields/terminal))
NOTE: If the result of GET(baseUrl/allowed-query/fields/terminal
) has .deleted
make sure to add a filter to ensure that only non-deleted data are returned
Example
{
"filter": "true",
"more": "true",
"pageNumber": 1,
"batchNumber": 10,
"sort": "ASC",
"orderBy": "terminal.name",
"groups": [
{
"filterGroupCondition": "AND",
"filters": [
{
"searchCondition": "AND",
"filterOption": "eq",
"field": "terminal.deleted",
"value": "false",
"dataType": "bool"
}
]
}
]
}
Request Body
{"filter"=>true, "more"=>true, "pageNumber"=>1, "batchNumber"=>10, "sort"=>"ASC", "orderBy"=>"terminal.name", "groups"=>[{"filterGroupCondition"=>"AND", "filterSearchCondition"=>"AND", "filters"=>[{"filterOption"=>"cn", "field"=>"terminal.name", "value"=>"New", "dataType"=>"string"}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
ApI-Key | string | ||
Business-Id | string |