Simplified.ID API: v2

<back to all web services

GetClientGpg45

Clients
The following routes are available for this service:
GET/clients/{Id}/gpg45/Get the GPG 45 (DVS data schema v1.0) projection for a client
namespace SimplifiedID.Api2.ServiceModel.Operations.Base

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<DataContract>]
    [<AllowNullLiteral>]
    type ResponseError() = 
        [<DataMember(Order=1)>]
        member val ErrorCode:String = null with get,set

        [<DataMember(Order=2)>]
        member val FieldName:String = null with get,set

        [<DataMember(Order=3)>]
        member val Message:String = null with get,set

        [<DataMember(Order=4)>]
        member val Meta:Dictionary<String, String> = null with get,set

    [<AllowNullLiteral>]
    type ArrayOfResponseError() = 
        inherit ResizeArray<ResponseError>()

    [<DataContract>]
    [<AllowNullLiteral>]
    type ResponseStatus() = 
        [<DataMember(Order=1)>]
        member val ErrorCode:String = null with get,set

        [<DataMember(Order=2)>]
        member val Message:String = null with get,set

        [<DataMember(Order=3)>]
        member val StackTrace:String = null with get,set

        [<DataMember(Order=4)>]
        member val Errors:ArrayOfResponseError = null with get,set

        [<DataMember(Order=5)>]
        member val Meta:Dictionary<String, String> = null with get,set

    [<AllowNullLiteral>]
    type BaseResponse() = 
        ///<summary>
        ///The status of the response
        ///</summary>
        [<ApiMember(Description="The status of the response")>]
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type Links() = 
        [<ApiMember>]
        member val Self:String = null with get,set

    [<AllowNullLiteral>]
    type gpg45_address() = 
        ///<summary>
        ///Street address lines, most specific first
        ///</summary>
        [<ApiMember(Description="Street address lines, most specific first")>]
        member val street:ResizeArray<String> = null with get,set

        ///<summary>
        ///City / town / district
        ///</summary>
        [<ApiMember(Description="City / town / district")>]
        member val locality:String = null with get,set

        ///<summary>
        ///Postcode
        ///</summary>
        [<ApiMember(Description="Postcode")>]
        member val postal_code:String = null with get,set

        ///<summary>
        ///Country code (ISO 3166-1 alpha-3)
        ///</summary>
        [<ApiMember(Description="Country code (ISO 3166-1 alpha-3)")>]
        member val country_code:String = null with get,set

    [<AllowNullLiteral>]
    type gpg45_attachment() = 
        ///<summary>
        ///A description of the attachment
        ///</summary>
        [<ApiMember(Description="A description of the attachment")>]
        member val desc:String = null with get,set

        ///<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)")>]
        member val content_type:String = null with get,set

        ///<summary>
        ///The encoding format: base64 or byte_data
        ///</summary>
        [<ApiMember(Description="The encoding format: base64 or byte_data")>]
        member val content_format:String = null with get,set

        ///<summary>
        ///The base64-encoded data
        ///</summary>
        [<ApiMember(Description="The base64-encoded data")>]
        member val content:String = null with get,set

    [<AllowNullLiteral>]
    type gpg45_biometric_information() = 
        ///<summary>
        ///The biometric modality: face, fingerprint, voice or iris
        ///</summary>
        [<ApiMember(Description="The biometric modality: face, fingerprint, voice or iris")>]
        member val biometric_modality:String = null with get,set

        ///<summary>
        ///The captured biometric data
        ///</summary>
        [<ApiMember(Description="The captured biometric data")>]
        member val attachments:ResizeArray<gpg45_attachment> = null with get,set

    [<AllowNullLiteral>]
    type gpg45_claims() = 
        ///<summary>
        ///The individual's given name(s)
        ///</summary>
        [<ApiMember(Description="The individual's given name(s)")>]
        member val given_name:String = null with get,set

        ///<summary>
        ///The individual's family / surname
        ///</summary>
        [<ApiMember(Description="The individual's family / surname")>]
        member val family_name:String = null with get,set

        ///<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)")>]
        member val birthdate:String = null with get,set

        ///<summary>
        ///Countries of citizenship (ISO 3166-1 alpha-3)
        ///</summary>
        [<ApiMember(Description="Countries of citizenship (ISO 3166-1 alpha-3)")>]
        member val nationalities:ResizeArray<String> = null with get,set

        ///<summary>
        ///The individual's address
        ///</summary>
        [<ApiMember(Description="The individual's address")>]
        member val address:gpg45_address = null with get,set

        ///<summary>
        ///Biometric characteristics of the person making the claim
        ///</summary>
        [<ApiMember(Description="Biometric characteristics of the person making the claim")>]
        member val biometric_information:ResizeArray<gpg45_biometric_information> = null with get,set

    [<AllowNullLiteral>]
    type gpg45_dvs_registration() = 
        ///<summary>
        ///The service's DVS register reference
        ///</summary>
        [<ApiMember(Description="The service's DVS register reference")>]
        member val registration_id:String = null with get,set

        ///<summary>
        ///The registered name of the certified service
        ///</summary>
        [<ApiMember(Description="The registered name of the certified service")>]
        member val name:String = null with get,set

        ///<summary>
        ///Contact email for the certified service
        ///</summary>
        [<ApiMember(Description="Contact email for the certified service")>]
        member val contact_email:String = null with get,set

        ///<summary>
        ///Website of the certified service
        ///</summary>
        [<ApiMember(Description="Website of the certified service")>]
        member val website:String = null with get,set

    [<AllowNullLiteral>]
    type gpg45_authority() = 
        ///<summary>
        ///The name of the authority
        ///</summary>
        [<ApiMember(Description="The name of the authority")>]
        member val name:String = null with get,set

        ///<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)")>]
        member val country_code:String = null with get,set

        ///<summary>
        ///The authority's jurisdiction
        ///</summary>
        [<ApiMember(Description="The authority's jurisdiction")>]
        member val jurisdiction:String = null with get,set

    [<AllowNullLiteral>]
    type gpg45_document_details() = 
        ///<summary>
        ///The GPG 45 document_type enumeration value
        ///</summary>
        [<ApiMember(Description="The GPG 45 document_type enumeration value")>]
        member val type:String = null with get,set

        ///<summary>
        ///The document's reference / identification number
        ///</summary>
        [<ApiMember(Description="The document's reference / identification number")>]
        member val document_number:String = null with get,set

        ///<summary>
        ///The date the document was issued (ISO 8601)
        ///</summary>
        [<ApiMember(Description="The date the document was issued (ISO 8601)")>]
        member val date_of_issuance:String = null with get,set

        ///<summary>
        ///The date the document expires (ISO 8601)
        ///</summary>
        [<ApiMember(Description="The date the document expires (ISO 8601)")>]
        member val date_of_expiry:String = null with get,set

        ///<summary>
        ///The authority that issued the document
        ///</summary>
        [<ApiMember(Description="The authority that issued the document")>]
        member val issuer:gpg45_authority = null with get,set

    [<AllowNullLiteral>]
    type 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")>]
        member val check_method:String = null with get,set

        ///<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")>]
        member val check_id:String = null with get,set

        ///<summary>
        ///When the check was performed (ISO 8601 timestamp)
        ///</summary>
        [<ApiMember(Description="When the check was performed (ISO 8601 timestamp)")>]
        member val time:String = null with get,set

        ///<summary>
        ///The organisation that performed the check
        ///</summary>
        [<ApiMember(Description="The organisation that performed the check")>]
        member val organisation:String = null with get,set

    [<AllowNullLiteral>]
    type gpg45_document() = 
        ///<summary>
        ///Always 'document'
        ///</summary>
        [<ApiMember(Description="Always 'document'")>]
        member val type:String = null with get,set

        ///<summary>
        ///Details about the document itself
        ///</summary>
        [<ApiMember(Description="Details about the document itself")>]
        member val document_details:gpg45_document_details = null with get,set

        ///<summary>
        ///Copies of the document
        ///</summary>
        [<ApiMember(Description="Copies of the document")>]
        member val attachments:ResizeArray<gpg45_attachment> = null with get,set

        ///<summary>
        ///The checks performed on the document
        ///</summary>
        [<ApiMember(Description="The checks performed on the document")>]
        member val check_details:ResizeArray<gpg45_check_details> = null with get,set

    [<AllowNullLiteral>]
    type gpg45_evidence() = 
        ///<summary>
        ///The document used to prove the claim
        ///</summary>
        [<ApiMember(Description="The document used to prove the claim")>]
        member val document:gpg45_document = null with get,set

    [<AllowNullLiteral>]
    type gpg45_evidence_metadata() = 
        ///<summary>
        ///The evidence classification, where applicable
        ///</summary>
        [<ApiMember(Description="The evidence classification, where applicable")>]
        member val evidence_classification:String = null with get,set

    [<AllowNullLiteral>]
    type 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")>]
        member val check_id:String = null with get,set

        ///<summary>
        ///Additional metadata about how the evidence supports the assurance
        ///</summary>
        [<ApiMember(Description="Additional metadata about how the evidence supports the assurance")>]
        member val evidence_ref:gpg45_evidence_metadata = null with get,set

    [<AllowNullLiteral>]
    type 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")>]
        member val assurance_type:String = null with get,set

        ///<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")>]
        member val assurance_classification:String = null with get,set

        ///<summary>
        ///The checks that produced this assurance, matched by check_id
        ///</summary>
        [<ApiMember(Description="The checks that produced this assurance, matched by check_id")>]
        member val evidence_ref:ResizeArray<gpg45_evidence_ref> = null with get,set

    [<AllowNullLiteral>]
    type gpg45_assurance_process() = 
        ///<summary>
        ///Always 'gpg45' for the DVS trust framework
        ///</summary>
        [<ApiMember(Description="Always 'gpg45' for the DVS trust framework")>]
        member val policy:String = null with get,set

        ///<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")>]
        member val procedure:String = null with get,set

        ///<summary>
        ///How each assurance process was satisfied
        ///</summary>
        [<ApiMember(Description="How each assurance process was satisfied")>]
        member val assurance_details:ResizeArray<gpg45_assurance_details> = null with get,set

    [<AllowNullLiteral>]
    type gpg45_verification() = 
        ///<summary>
        ///Always 'uk_dvstf' for the UK DVS trust framework
        ///</summary>
        [<ApiMember(Description="Always 'uk_dvstf' for the UK DVS trust framework")>]
        member val trust_framework:String = null with get,set

        ///<summary>
        ///The certified service's entry in the DVS register
        ///</summary>
        [<ApiMember(Description="The certified service's entry in the DVS register")>]
        member val dvs_registration:gpg45_dvs_registration = null with get,set

        ///<summary>
        ///The evidence used to prove the claim
        ///</summary>
        [<ApiMember(Description="The evidence used to prove the claim")>]
        member val evidence:ResizeArray<gpg45_evidence> = null with get,set

        ///<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")>]
        member val assurance_level:String = null with get,set

        ///<summary>
        ///The assurance policy and procedure followed
        ///</summary>
        [<ApiMember(Description="The assurance policy and procedure followed")>]
        member val assurance_process:gpg45_assurance_process = null with get,set

    [<AllowNullLiteral>]
    type Gpg45Projection() = 
        ///<summary>
        ///The claimed identity information (GPG 45 'claims')
        ///</summary>
        [<ApiMember(Description="The claimed identity information (GPG 45 'claims')")>]
        member val claims:gpg45_claims = null with get,set

        ///<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")>]
        member val verification:gpg45_verification = null with get,set

    [<AllowNullLiteral>]
    type GetClientGpg45Data() = 
        inherit BaseResponse()
        ///<summary>
        ///Links related to this client's GPG 45 projection
        ///</summary>
        [<ApiMember(Description="Links related to this client's GPG 45 projection")>]
        member val Links:Links = null with get,set

        ///<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'")>]
        member val Gpg45:Gpg45Projection = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type GetClientGpg45Response() = 
        [<DataMember>]
        member val Data:GetClientGpg45Data = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type 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")>]
        member val ApiUserId:String = null with get,set

        ///<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")>]
        member val ApiUserKey:String = null with get,set

        ///<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")>]
        member val UserId:String = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type BaseRequest() = 
        ///<summary>
        ///The authentication credentials
        ///</summary>
        [<DataMember>]
        [<ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")>]
        member val Authentication:Authentication = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type GetClientGpg45() = 
        inherit BaseRequest()
        [<DataMember>]
        [<ApiMember(IsRequired=true, ParameterType="path")>]
        member val Id:Int32 = new Int32() with get,set

F# GetClientGpg45 DTOs

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

HTTP + XML

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

GET /clients/{Id}/gpg45/ HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<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>