get https://api.w2globaldata.com/cases/
The section below describes how to call the Search Case endpoint. If no search criteria is entered, the endpoint will retrieve the top 100 cases.
How to use
To call the endpoint you will need to perform a HTTP GET request to the URL:
URL | API Version |
---|---|
https://api.w2globaldata.com/Cases?RiskGroup=low&PageNumber=0&PageSize=1 | 1.5 + |
Pagination options
There are two required pagination options that need to be provided in the query string.
- PageNumber
- PageSize
The page size is the number of results we wish to return per page. The page size has a range of 1-1000. The page number is the zero-based index of the page we wish to return.
Searchable field
- Type
- Forename
- Surname
- Client Reference
- Day of Birth
- Month of Birth
- Year of Birth
- Postcode
- Risk Group
- Tags
When searching using a risk group name, a full name must be given i.e. 'low' or 'high'. Risk group names are case-sensitive.
Example Search Response
The case(s) will be returned, if found.
{
"count": 1,
"caseSummarys": [
{
"id": "ce04915e-4baa-4b1a-a964-da90e1c6306f",
"type":"Person",
"forename": "John",
"surname": "Preston",
"dayOfBirth": 1,
"monthOfBirth": 3,
"yearOfBirth": 2010,
"clientReference": "efg",
"riskGroup": "low",
"lastUpdatedDate": "2021-08-06T14:19:28.7628906Z",
"email": "[email protected]",
"tags": [
"test"
]
}
],
"stats": {
"totalCount": 3,
"pageCount": 3
}
}