Simplified.ID API: v2

<back to all web services

GetClientGpg45

Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports SimplifiedID.Api2.ServiceModel.Operations.Clients
Imports SimplifiedID.Api2.ServiceModel.Operations.Base
Imports SimplifiedID.Api2.ServiceModel.Types

Namespace Global

    Namespace SimplifiedID.Api2.ServiceModel.Operations.Base

        Public Partial Class ArrayOfResponseError
            Inherits List(Of ResponseError)
        End Class

        <DataContract>
        Public Partial Class BaseRequest
            Implements IBaseRequest
            '''<Summary>
            '''The authentication credentials
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="The authentication credentials", IsRequired:=true, ParameterType:="header, body")>
            Public Overridable Property Authentication As Authentication Implements IBaseRequest.Authentication
        End Class

        Public Partial Class BaseResponse
            Implements IBaseDataResponse
            Implements IHasResponseStatus
            '''<Summary>
            '''The status of the response
            '''</Summary>
            <ApiMember(Description:="The status of the response")>
            Public Overridable Property ResponseStatus As ResponseStatus Implements IHasResponseStatus.ResponseStatus
        End Class

        <DataContract>
        Public Partial Class ResponseError
            <DataMember(Order:=1)>
            Public Overridable Property ErrorCode As String

            <DataMember(Order:=2)>
            Public Overridable Property FieldName As String

            <DataMember(Order:=3)>
            Public Overridable Property Message As String

            <DataMember(Order:=4)>
            Public Overridable Property Meta As Dictionary(Of String, String)
        End Class

        <DataContract>
        Public Partial Class ResponseStatus
            <DataMember(Order:=1)>
            Public Overridable Property ErrorCode As String

            <DataMember(Order:=2)>
            Public Overridable Property Message As String

            <DataMember(Order:=3)>
            Public Overridable Property StackTrace As String

            <DataMember(Order:=4)>
            Public Overridable Property Errors As ArrayOfResponseError

            <DataMember(Order:=5)>
            Public Overridable Property Meta As Dictionary(Of String, String)
        End Class
    End Namespace

    Namespace SimplifiedID.Api2.ServiceModel.Operations.Clients

        <DataContract>
        Public Partial Class GetClientGpg45
            Inherits BaseRequest
            <DataMember>
            <ApiMember(IsRequired:=true, ParameterType:="path")>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class GetClientGpg45Data
            Inherits BaseResponse
            '''<Summary>
            '''Links related to this client's GPG 45 projection
            '''</Summary>
            <ApiMember(Description:="Links related to this client's GPG 45 projection")>
            Public Overridable Property Links As Links

            '''<Summary>
            '''The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification'
            '''</Summary>
            <ApiMember(Description:="The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification'")>
            Public Overridable Property Gpg45 As Gpg45Projection
        End Class

        <DataContract>
        Public Partial Class GetClientGpg45Response
            <DataMember>
            Public Overridable Property Data As GetClientGpg45Data
        End Class
    End Namespace

    Namespace SimplifiedID.Api2.ServiceModel.Types

        <DataContract>
        Public Partial Class Authentication
            '''<Summary>
            '''The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User)
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User)", IsRequired:=true, ParameterType:="header, body")>
            Public Overridable Property ApiUserId As String

            '''<Summary>
            '''The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key)
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key)", IsRequired:=true, ParameterType:="header, body")>
            Public Overridable Property ApiUserKey As String

            '''<Summary>
            '''The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id).
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id).", ParameterType:="header, body")>
            Public Overridable Property UserId As String
        End Class

        Public Partial Class gpg45_address
            '''<Summary>
            '''Street address lines, most specific first
            '''</Summary>
            <ApiMember(Description:="Street address lines, most specific first")>
            Public Overridable Property street As List(Of String)

            '''<Summary>
            '''City / town / district
            '''</Summary>
            <ApiMember(Description:="City / town / district")>
            Public Overridable Property locality As String

            '''<Summary>
            '''Postcode
            '''</Summary>
            <ApiMember(Description:="Postcode")>
            Public Overridable Property postal_code As String

            '''<Summary>
            '''Country code (ISO 3166-1 alpha-3)
            '''</Summary>
            <ApiMember(Description:="Country code (ISO 3166-1 alpha-3)")>
            Public Overridable Property country_code As String
        End Class

        Public Partial Class gpg45_assurance_details
            '''<Summary>
            '''The type of check: validation, verification, counter_fraud or activity_history
            '''</Summary>
            <ApiMember(Description:="The type of check: validation, verification, counter_fraud or activity_history")>
            Public Overridable Property assurance_type As String

            '''<Summary>
            '''The GPG 45 score achieved for this check: score_1 to score_4
            '''</Summary>
            <ApiMember(Description:="The GPG 45 score achieved for this check: score_1 to score_4")>
            Public Overridable Property assurance_classification As String

            '''<Summary>
            '''The checks that produced this assurance, matched by check_id
            '''</Summary>
            <ApiMember(Description:="The checks that produced this assurance, matched by check_id")>
            Public Overridable Property evidence_ref As List(Of gpg45_evidence_ref)
        End Class

        Public Partial Class gpg45_assurance_process
            '''<Summary>
            '''Always 'gpg45' for the DVS trust framework
            '''</Summary>
            <ApiMember(Description:="Always 'gpg45' for the DVS trust framework")>
            Public Overridable Property policy As String

            '''<Summary>
            '''The GPG 45 identity profile code that was met (e.g. M1A, H1A). Null if no profile's requirements were fully met
            '''</Summary>
            <ApiMember(Description:="The GPG 45 identity profile code that was met (e.g. M1A, H1A). Null if no profile's requirements were fully met")>
            Public Overridable Property procedure As String

            '''<Summary>
            '''How each assurance process was satisfied
            '''</Summary>
            <ApiMember(Description:="How each assurance process was satisfied")>
            Public Overridable Property assurance_details As List(Of gpg45_assurance_details)
        End Class

        Public Partial Class gpg45_attachment
            '''<Summary>
            '''A description of the attachment
            '''</Summary>
            <ApiMember(Description:="A description of the attachment")>
            Public Overridable Property desc As String

            '''<Summary>
            '''The IANA media type of the data (e.g. image/jpeg)
            '''</Summary>
            <ApiMember(Description:="The IANA media type of the data (e.g. image/jpeg)")>
            Public Overridable Property content_type As String

            '''<Summary>
            '''The encoding format: base64 or byte_data
            '''</Summary>
            <ApiMember(Description:="The encoding format: base64 or byte_data")>
            Public Overridable Property content_format As String

            '''<Summary>
            '''The base64-encoded data
            '''</Summary>
            <ApiMember(Description:="The base64-encoded data")>
            Public Overridable Property content As String
        End Class

        Public Partial Class gpg45_authority
            '''<Summary>
            '''The name of the authority
            '''</Summary>
            <ApiMember(Description:="The name of the authority")>
            Public Overridable Property name As String

            '''<Summary>
            '''The country code where the authority is based (ISO 3166-1 alpha-2)
            '''</Summary>
            <ApiMember(Description:="The country code where the authority is based (ISO 3166-1 alpha-2)")>
            Public Overridable Property country_code As String

            '''<Summary>
            '''The authority's jurisdiction
            '''</Summary>
            <ApiMember(Description:="The authority's jurisdiction")>
            Public Overridable Property jurisdiction As String
        End Class

        Public Partial Class gpg45_biometric_information
            '''<Summary>
            '''The biometric modality: face, fingerprint, voice or iris
            '''</Summary>
            <ApiMember(Description:="The biometric modality: face, fingerprint, voice or iris")>
            Public Overridable Property biometric_modality As String

            '''<Summary>
            '''The captured biometric data
            '''</Summary>
            <ApiMember(Description:="The captured biometric data")>
            Public Overridable Property attachments As List(Of gpg45_attachment)
        End Class

        Public Partial Class gpg45_check_details
            '''<Summary>
            '''The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data
            '''</Summary>
            <ApiMember(Description:="The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data")>
            Public Overridable Property check_method As String

            '''<Summary>
            '''A unique reference for this check, matched by assurance_details evidence_ref entries
            '''</Summary>
            <ApiMember(Description:="A unique reference for this check, matched by assurance_details evidence_ref entries")>
            Public Overridable Property check_id As String

            '''<Summary>
            '''When the check was performed (ISO 8601 timestamp)
            '''</Summary>
            <ApiMember(Description:="When the check was performed (ISO 8601 timestamp)")>
            Public Overridable Property time As String

            '''<Summary>
            '''The organisation that performed the check
            '''</Summary>
            <ApiMember(Description:="The organisation that performed the check")>
            Public Overridable Property organisation As String
        End Class

        Public Partial Class gpg45_claims
            '''<Summary>
            '''The individual's given name(s)
            '''</Summary>
            <ApiMember(Description:="The individual's given name(s)")>
            Public Overridable Property given_name As String

            '''<Summary>
            '''The individual's family / surname
            '''</Summary>
            <ApiMember(Description:="The individual's family / surname")>
            Public Overridable Property family_name As String

            '''<Summary>
            '''The individual's date of birth (ISO 8601, yyyy-MM-dd)
            '''</Summary>
            <ApiMember(Description:="The individual's date of birth (ISO 8601, yyyy-MM-dd)")>
            Public Overridable Property birthdate As String

            '''<Summary>
            '''Countries of citizenship (ISO 3166-1 alpha-3)
            '''</Summary>
            <ApiMember(Description:="Countries of citizenship (ISO 3166-1 alpha-3)")>
            Public Overridable Property nationalities As List(Of String)

            '''<Summary>
            '''The individual's address
            '''</Summary>
            <ApiMember(Description:="The individual's address")>
            Public Overridable Property address As gpg45_address

            '''<Summary>
            '''Biometric characteristics of the person making the claim
            '''</Summary>
            <ApiMember(Description:="Biometric characteristics of the person making the claim")>
            Public Overridable Property biometric_information As List(Of gpg45_biometric_information)
        End Class

        Public Partial Class gpg45_document
            '''<Summary>
            '''Always 'document'
            '''</Summary>
            <ApiMember(Description:="Always 'document'")>
            Public Overridable Property type As String

            '''<Summary>
            '''Details about the document itself
            '''</Summary>
            <ApiMember(Description:="Details about the document itself")>
            Public Overridable Property document_details As gpg45_document_details

            '''<Summary>
            '''Copies of the document
            '''</Summary>
            <ApiMember(Description:="Copies of the document")>
            Public Overridable Property attachments As List(Of gpg45_attachment)

            '''<Summary>
            '''The checks performed on the document
            '''</Summary>
            <ApiMember(Description:="The checks performed on the document")>
            Public Overridable Property check_details As List(Of gpg45_check_details)
        End Class

        Public Partial Class gpg45_document_details
            '''<Summary>
            '''The GPG 45 document_type enumeration value
            '''</Summary>
            <ApiMember(Description:="The GPG 45 document_type enumeration value")>
            Public Overridable Property type As String

            '''<Summary>
            '''The document's reference / identification number
            '''</Summary>
            <ApiMember(Description:="The document's reference / identification number")>
            Public Overridable Property document_number As String

            '''<Summary>
            '''The date the document was issued (ISO 8601)
            '''</Summary>
            <ApiMember(Description:="The date the document was issued (ISO 8601)")>
            Public Overridable Property date_of_issuance As String

            '''<Summary>
            '''The date the document expires (ISO 8601)
            '''</Summary>
            <ApiMember(Description:="The date the document expires (ISO 8601)")>
            Public Overridable Property date_of_expiry As String

            '''<Summary>
            '''The authority that issued the document
            '''</Summary>
            <ApiMember(Description:="The authority that issued the document")>
            Public Overridable Property issuer As gpg45_authority
        End Class

        Public Partial Class gpg45_dvs_registration
            '''<Summary>
            '''The service's DVS register reference
            '''</Summary>
            <ApiMember(Description:="The service's DVS register reference")>
            Public Overridable Property registration_id As String

            '''<Summary>
            '''The registered name of the certified service
            '''</Summary>
            <ApiMember(Description:="The registered name of the certified service")>
            Public Overridable Property name As String

            '''<Summary>
            '''Contact email for the certified service
            '''</Summary>
            <ApiMember(Description:="Contact email for the certified service")>
            Public Overridable Property contact_email As String

            '''<Summary>
            '''Website of the certified service
            '''</Summary>
            <ApiMember(Description:="Website of the certified service")>
            Public Overridable Property website As String
        End Class

        Public Partial Class gpg45_evidence
            '''<Summary>
            '''The document used to prove the claim
            '''</Summary>
            <ApiMember(Description:="The document used to prove the claim")>
            Public Overridable Property document As gpg45_document
        End Class

        Public Partial Class gpg45_evidence_metadata
            '''<Summary>
            '''The evidence classification, where applicable
            '''</Summary>
            <ApiMember(Description:="The evidence classification, where applicable")>
            Public Overridable Property evidence_classification As String
        End Class

        Public Partial Class gpg45_evidence_ref
            '''<Summary>
            '''The check_id of the check that produced this assurance
            '''</Summary>
            <ApiMember(Description:="The check_id of the check that produced this assurance")>
            Public Overridable Property check_id As String

            '''<Summary>
            '''Additional metadata about how the evidence supports the assurance
            '''</Summary>
            <ApiMember(Description:="Additional metadata about how the evidence supports the assurance")>
            Public Overridable Property evidence_ref As gpg45_evidence_metadata
        End Class

        Public Partial Class gpg45_verification
            '''<Summary>
            '''Always 'uk_dvstf' for the UK DVS trust framework
            '''</Summary>
            <ApiMember(Description:="Always 'uk_dvstf' for the UK DVS trust framework")>
            Public Overridable Property trust_framework As String

            '''<Summary>
            '''The certified service's entry in the DVS register
            '''</Summary>
            <ApiMember(Description:="The certified service's entry in the DVS register")>
            Public Overridable Property dvs_registration As gpg45_dvs_registration

            '''<Summary>
            '''The evidence used to prove the claim
            '''</Summary>
            <ApiMember(Description:="The evidence used to prove the claim")>
            Public Overridable Property evidence As List(Of gpg45_evidence)

            '''<Summary>
            '''The GPG 45 confidence level achieved: low, medium, high or very_high
            '''</Summary>
            <ApiMember(Description:="The GPG 45 confidence level achieved: low, medium, high or very_high")>
            Public Overridable Property assurance_level As String

            '''<Summary>
            '''The assurance policy and procedure followed
            '''</Summary>
            <ApiMember(Description:="The assurance policy and procedure followed")>
            Public Overridable Property assurance_process As gpg45_assurance_process
        End Class

        Public Partial Class Gpg45Projection
            '''<Summary>
            '''The claimed identity information (GPG 45 'claims')
            '''</Summary>
            <ApiMember(Description:="The claimed identity information (GPG 45 'claims')")>
            Public Overridable Property claims As gpg45_claims

            '''<Summary>
            '''How the claims were proven (GPG 45 'verification'). Null until the client is Verified
            '''</Summary>
            <ApiMember(Description:="How the claims were proven (GPG 45 'verification'). Null until the client is Verified")>
            Public Overridable Property verification As gpg45_verification
        End Class

        Public Partial Class Links
            <ApiMember>
            Public Overridable Property Self As String
        End Class
    End Namespace
End Namespace

VB.NET GetClientGpg45 DTOs

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

HTTP + SOAP12

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

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

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

<GetClientGpg45 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Authentication>
    <ApiUserId>String</ApiUserId>
    <ApiUserKey>String</ApiUserKey>
    <UserId>String</UserId>
  </Authentication>
  <Id>0</Id>
</GetClientGpg45>

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

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

<GetClientGpg45Response 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>
    <Gpg45>
      <claims>
        <address>
          <country_code>String</country_code>
          <locality>String</locality>
          <postal_code>String</postal_code>
          <street xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>String</d6p1:string>
          </street>
        </address>
        <biometric_information>
          <gpg45_biometric_information>
            <attachments>
              <gpg45_attachment>
                <content>String</content>
                <content_format>String</content_format>
                <content_type>String</content_type>
                <desc>String</desc>
              </gpg45_attachment>
            </attachments>
            <biometric_modality>String</biometric_modality>
          </gpg45_biometric_information>
        </biometric_information>
        <birthdate>String</birthdate>
        <family_name>String</family_name>
        <given_name>String</given_name>
        <nationalities xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </nationalities>
      </claims>
      <verification>
        <assurance_level>String</assurance_level>
        <assurance_process>
          <assurance_details>
            <gpg45_assurance_details>
              <assurance_classification>String</assurance_classification>
              <assurance_type>String</assurance_type>
              <evidence_ref>
                <gpg45_evidence_ref>
                  <check_id>String</check_id>
                  <evidence_ref>
                    <evidence_classification>String</evidence_classification>
                  </evidence_ref>
                </gpg45_evidence_ref>
              </evidence_ref>
            </gpg45_assurance_details>
          </assurance_details>
          <policy>String</policy>
          <procedure>String</procedure>
        </assurance_process>
        <dvs_registration>
          <contact_email>String</contact_email>
          <name>String</name>
          <registration_id>String</registration_id>
          <website>String</website>
        </dvs_registration>
        <evidence>
          <gpg45_evidence>
            <document>
              <attachments>
                <gpg45_attachment>
                  <content>String</content>
                  <content_format>String</content_format>
                  <content_type>String</content_type>
                  <desc>String</desc>
                </gpg45_attachment>
              </attachments>
              <check_details>
                <gpg45_check_details>
                  <check_id>String</check_id>
                  <check_method>String</check_method>
                  <organisation>String</organisation>
                  <time>String</time>
                </gpg45_check_details>
              </check_details>
              <document_details>
                <date_of_expiry>String</date_of_expiry>
                <date_of_issuance>String</date_of_issuance>
                <document_number>String</document_number>
                <issuer>
                  <country_code>String</country_code>
                  <jurisdiction>String</jurisdiction>
                  <name>String</name>
                </issuer>
                <type>String</type>
              </document_details>
              <type>String</type>
            </document>
          </gpg45_evidence>
        </evidence>
        <trust_framework>String</trust_framework>
      </verification>
    </Gpg45>
    <Links>
      <Self>String</Self>
    </Links>
  </Data>
</GetClientGpg45Response>

</soap12:Body>
</soap12:Envelope>