Sanctions Search API: v2

<back to all web services

GetClients

Clients
The following routes are available for this service:
GET/clientsGet all clients
GetClients Parameters:
NameParameterData TypeRequiredDescription
StatequeryClientStateNoFilter the results to those that have a State matching the state specified
IsValidateMequerybool?NoFilter the results to those that have a IsValidateMe flag matching the specified value
NamequerystringNoFilter the results to those that have a Name including the specified value
DateFromqueryDateTimeNoFilter the results to those that were created after (or on) this date
DateToqueryDateTimeNoFilter the results to those that were created before this date
SubUserNamequerystringNoIf the searches are being accessed by a sub user, specify their username here to only return searches they have permissions to view
PagedRequest Parameters:
NameParameterData TypeRequiredDescription
PageLimitqueryintNoThe maximum number of records to be returned in one page
PageOffsetqueryintNoThe starting point in the list of records from where the data should be fetched. Zero based index.
SortquerystringNoThe term to determine the order in which the data is returned
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
Authenticationheader, bodyAuthenticationYesThe authentication credentials
Authentication Parameters:
NameParameterData TypeRequiredDescription
ApiUserIdheader, bodystringYesThe API User ID provided by us when you signed up to use our API
ApiUserKeyheader, bodystringYesThe API User Key provided by us when you signed up to use our API
ClientState Enum:
Undefined
PendingCompletion
PendingOcr
PendingVerification
Verified
GetClientsResponse Parameters:
NameParameterData TypeRequiredDescription
DataformGetClientsDataNo
GetClientsData Parameters:
NameParameterData TypeRequiredDescription
ClientsformArrayOfClientShortNo
PagedResponse<T> Parameters:
NameParameterData TypeRequiredDescription
MetaformMeta<T>NoThe response Metadata
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNoThe status of the response
ResponseStatus Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformstringNo
MessageformstringNo
StackTraceformstringNo
ErrorsformArrayOfResponseErrorNo
MetaformDictionary<string, string>No
ResponseError Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformstringNo
FieldNameformstringNo
MessageformstringNo
MetaformDictionary<string, string>No
Meta<T> Parameters:
NameParameterData TypeRequiredDescription
LinksformMetaLinksNoPagination links
TotalCountformint?NoThe total number of records for the query
PageLimitformint?NoThe maximum number of records to be returned in one page
PageOffsetformint?NoThe starting point in the list of records from where the data should be fetched. Zero based index.
MetaLinks Parameters:
NameParameterData TypeRequiredDescription
FirstformstringNoThe link to the first page of records
LastformstringNoThe link to the last page of records
NextformstringNoThe link to the next page of records, if applicable
PrevformstringNoThe link to the last page of records, if applicable
Links Parameters:
NameParameterData TypeRequiredDescription
SelfformstringNo
ClientShort Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
DateCreatedformDateTimeNo
NameformstringNo
ReferenceformstringNo
IsValidateMeformboolNo
StateformClientStateNo
LinksformLinksNo
NumOfDocumentsformintNo
PhotoformImageNo
Image Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
OcrIdformint?No
UrlformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /clients HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":{"clients":[{"id":0,"dateCreated":"\/Date(-62135596800000-0000)\/","name":"String","reference":"String","isValidateMe":false,"state":"Undefined","links":{"self":"String"},"numOfDocuments":0,"photo":{"id":0,"name":"String","ocrId":0,"url":"String"}}],"meta":{"links":{"first":"String","last":"String","next":"String","prev":"String","self":"String"},"totalCount":0,"pageLimit":0,"pageOffset":0},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}}