Sanctions Search API: v2

<back to all web services

GetDbsSearches

import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


@DataContract
open class GetDbsSearches : PagedRequest()
{
    /**
    * Filter the results to those that have a Name including the specified value
    */
    @DataMember
    @ApiMember(Description="Filter the results to those that have a Name including the specified value", ParameterType="query")
    var name:String? = null

    /**
    * Filter the results to those that were created after (or on) this date
    */
    @DataMember
    @ApiMember(Description="Filter the results to those that were created after (or on) this date", ParameterType="query")
    var dateFrom:Date? = null

    /**
    * Filter the results to those that were created before this date
    */
    @DataMember
    @ApiMember(Description="Filter the results to those that were created before this date", ParameterType="query")
    var dateTo:Date? = null

    /**
    * Filter the results to those where the applicant has provided their information (true), or not (false), or either (null)
    */
    @DataMember
    @ApiMember(Description="Filter the results to those where the applicant has provided their information (true), or not (false), or either (null)", ParameterType="query")
    var isApplicantInfoCompleted:Boolean? = null

    /**
    * Filter the results to those where the ID Checker has verified the applicant's ID (true), or not (false), or either (null)
    */
    @DataMember
    @ApiMember(Description="Filter the results to those where the ID Checker has verified the applicant's ID (true), or not (false), or either (null)", ParameterType="query")
    var isIdCheckCompleted:Boolean? = null

    /**
    * Filter the results to those where the application is complete and ready to be submitted (true), or not (false), or either (null)
    */
    @DataMember
    @ApiMember(Description="Filter the results to those where the application is complete and ready to be submitted (true), or not (false), or either (null)", ParameterType="query")
    var isApplicationCompleted:Boolean? = null

    /**
    * Filter the results to those where the application has been submitted (true), or not (false), or either (null)
    */
    @DataMember
    @ApiMember(Description="Filter the results to those where the application has been submitted (true), or not (false), or either (null)", ParameterType="query")
    var isApplicationSubmitted:Boolean? = null

    /**
    * Filter the results to those where the application has been disclosed (true), or not (false), or either (null)
    */
    @DataMember
    @ApiMember(Description="Filter the results to those where the application has been disclosed (true), or not (false), or either (null)", ParameterType="query")
    var isApplicationDisclosed:Boolean? = null

    /**
    * If the searches are being accessed by a sub user, specify their username here to only return searches they have permissions to view
    */
    @DataMember
    @ApiMember(Description="If the searches are being accessed by a sub user, specify their username here to only return searches they have permissions to view", ParameterType="query")
    var subUserName:String? = null
}

@DataContract
open class PagedRequest : BaseRequest()
{
    /**
    * The maximum number of records to be returned in one page
    */
    @DataMember(Name="page[limit]")
    @SerializedName("page[limit]")
    @ApiMember(Description="The maximum number of records to be returned in one page", ParameterType="query")
    var pageLimit:Int? = null

    /**
    * The starting point in the list of records from where the data should be fetched. Zero based index.
    */
    @DataMember(Name="page[offset]")
    @SerializedName("page[offset]")
    @ApiMember(Description="The starting point in the list of records from where the data should be fetched. Zero based index.", ParameterType="query")
    var pageOffset:Int? = null

    /**
    * The term to determine the order in which the data is returned
    */
    @DataMember
    @ApiMember(Description="The term to determine the order in which the data is returned", ParameterType="query")
    var sort:String? = null
}

@DataContract
open class BaseRequest : IBaseRequest
{
    /**
    * The authentication credentials
    */
    @DataMember
    @ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")
    var authentication:Authentication? = null
}

@DataContract
open class Authentication
{
    /**
    * The API User ID provided by us when you signed up to use our API
    */
    @DataMember
    @ApiMember(Description="The API User ID provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body")
    var apiUserId:String? = null

    /**
    * The API User Key provided by us when you signed up to use our API
    */
    @DataMember
    @ApiMember(Description="The API User Key provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body")
    var apiUserKey:String? = null
}

@DataContract
open class GetDbsSearchesResponse
{
    @DataMember
    @SerializedName("data") var Data:GetDbsSearchesData? = null
}

open class GetDbsSearchesData : PagedResponse<GetDbsSearches>()
{
    var searches:ArrayOfDbsSearchShort? = null
}

open class PagedResponse<T> : BaseResponse()
{
    /**
    * The response Metadata
    */
    @ApiMember(Description="The response Metadata")
    var meta:Meta<T>? = null
}

open class BaseResponse : IBaseDataResponse, IHasResponseStatus
{
    /**
    * The status of the response
    */
    @ApiMember(Description="The status of the response")
    var responseStatus:ResponseStatus? = null
}

open class ArrayOfResponseError : ArrayList<ResponseError>()
{
}

open class Meta<T>
{
    /**
    * Pagination links
    */
    @ApiMember(Description="Pagination links")
    var links:MetaLinks? = null

    /**
    * The total number of records for the query
    */
    @ApiMember(Description="The total number of records for the query")
    var totalCount:Int? = null

    /**
    * The maximum number of records to be returned in one page
    */
    @ApiMember(Description="The maximum number of records to be returned in one page")
    var pageLimit:Int? = null

    /**
    * The starting point in the list of records from where the data should be fetched. Zero based index.
    */
    @ApiMember(Description="The starting point in the list of records from where the data should be fetched. Zero based index.")
    var pageOffset:Int? = null
}

open class MetaLinks : Links()
{
    /**
    * The link to the first page of records
    */
    @ApiMember(Description="The link to the first page of records")
    var first:String? = null

    /**
    * The link to the last page of records
    */
    @ApiMember(Description="The link to the last page of records")
    var last:String? = null

    /**
    * The link to the next page of records, if applicable
    */
    @ApiMember(Description="The link to the next page of records, if applicable")
    var next:String? = null

    /**
    * The link to the last page of records, if applicable
    */
    @ApiMember(Description="The link to the last page of records, if applicable")
    var prev:String? = null
}

open class Links
{
    @ApiMember()
    var self:String? = null
}

open class ArrayOfDbsSearchShort : ArrayList<DbsSearchShort>()
{
}

open class DbsSearchShort
{
    var id:Long? = null
    var dateSearched:Date? = null
    var dateUpdated:Date? = null
    var status:String? = null
    var disclosureStatus:String? = null
    var isApplicantInfoCompleted:Boolean? = null
    var isIdCheckCompleted:Boolean? = null
    var isApplicationCompleted:Boolean? = null
    var isApplicationSubmitted:Boolean? = null
    var isApplicationDisclosed:Boolean? = null
    var disclosureLevel:String? = null
    var name:String? = null
    var reference:String? = null
}

Kotlin GetDbsSearches DTOs

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

HTTP + SOAP11

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

POST /soap11 HTTP/1.1 
Host: api.sanctionssearch.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: GetDbsSearches

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>

<GetDbsSearches xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Authentication>
    <ApiUserId>String</ApiUserId>
    <ApiUserKey>String</ApiUserKey>
  </Authentication>
  <Sort>String</Sort>
  <page_x005B_limit_x005D_>0</page_x005B_limit_x005D_>
  <page_x005B_offset_x005D_>0</page_x005B_offset_x005D_>
  <DateFrom>0001-01-01T00:00:00</DateFrom>
  <DateTo>0001-01-01T00:00:00</DateTo>
  <IsApplicantInfoCompleted>false</IsApplicantInfoCompleted>
  <IsApplicationCompleted>false</IsApplicationCompleted>
  <IsApplicationDisclosed>false</IsApplicationDisclosed>
  <IsApplicationSubmitted>false</IsApplicationSubmitted>
  <IsIdCheckCompleted>false</IsIdCheckCompleted>
  <Name>String</Name>
  <SubUserName>String</SubUserName>
</GetDbsSearches>

</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>

<GetDbsSearchesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Data>
    <ResponseStatus>
      <ErrorCode>String</ErrorCode>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
      <Errors>
        <ResponseError>
          <ErrorCode>String</ErrorCode>
          <FieldName>String</FieldName>
          <Message>String</Message>
          <Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </Meta>
        </ResponseError>
      </Errors>
      <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Meta>
    </ResponseStatus>
    <Meta>
      <Links>
        <Self>String</Self>
        <First>String</First>
        <Last>String</Last>
        <Next>String</Next>
        <Prev>String</Prev>
      </Links>
      <PageLimit>0</PageLimit>
      <PageOffset>0</PageOffset>
      <TotalCount>0</TotalCount>
    </Meta>
    <Searches>
      <SearchRecord>
        <DateSearched>0001-01-01T00:00:00</DateSearched>
        <DateUpdated>0001-01-01T00:00:00</DateUpdated>
        <DisclosureLevel>String</DisclosureLevel>
        <DisclosureStatus>String</DisclosureStatus>
        <Id>0</Id>
        <IsApplicantInfoCompleted>false</IsApplicantInfoCompleted>
        <IsApplicationCompleted>false</IsApplicationCompleted>
        <IsApplicationDisclosed>false</IsApplicationDisclosed>
        <IsApplicationSubmitted>false</IsApplicationSubmitted>
        <IsIdCheckCompleted>false</IsIdCheckCompleted>
        <Name>String</Name>
        <Reference>String</Reference>
        <Status>String</Status>
      </SearchRecord>
    </Searches>
  </Data>
</GetDbsSearchesResponse>

</soap:Body>
</soap:Envelope>