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

// @DataContract
export class Authentication
{
    /** @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) */
    // @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 apiUserId: string;

    /** @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) */
    // @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 apiUserKey: string;

    /** @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). */
    // @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 userId: string;

    public constructor(init?: Partial<Authentication>) { (Object as any).assign(this, init); }
}

// @DataContract
export class BaseRequest implements IBaseRequest
{
    /** @description The authentication credentials */
    // @DataMember
    // @ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")
    public authentication: Authentication;

    public constructor(init?: Partial<BaseRequest>) { (Object as any).assign(this, init); }
}

// @DataContract
export class ResponseError
{
    // @DataMember(Order=1)
    public errorCode: string;

    // @DataMember(Order=2)
    public fieldName: string;

    // @DataMember(Order=3)
    public message: string;

    // @DataMember(Order=4)
    public meta: { [index:string]: string; };

    public constructor(init?: Partial<ResponseError>) { (Object as any).assign(this, init); }
}

export class ArrayOfResponseError extends Array<ResponseError>
{

    public constructor(init?: Partial<ArrayOfResponseError>) { super(); (Object as any).assign(this, init); }
}

// @DataContract
export class ResponseStatus
{
    // @DataMember(Order=1)
    public errorCode: string;

    // @DataMember(Order=2)
    public message: string;

    // @DataMember(Order=3)
    public stackTrace: string;

    // @DataMember(Order=4)
    public errors: ArrayOfResponseError;

    // @DataMember(Order=5)
    public meta: { [index:string]: string; };

    public constructor(init?: Partial<ResponseStatus>) { (Object as any).assign(this, init); }
}

export class BaseResponse implements IBaseDataResponse, IHasResponseStatus
{
    /** @description The status of the response */
    // @ApiMember(Description="The status of the response")
    public responseStatus: ResponseStatus;

    public constructor(init?: Partial<BaseResponse>) { (Object as any).assign(this, init); }
}

export class Links
{
    // @ApiMember()
    public self: string;

    public constructor(init?: Partial<Links>) { (Object as any).assign(this, init); }
}

export class gpg45_address
{
    /** @description Street address lines, most specific first */
    // @ApiMember(Description="Street address lines, most specific first")
    public street: string[];

    /** @description City / town / district */
    // @ApiMember(Description="City / town / district")
    public locality: string;

    /** @description Postcode */
    // @ApiMember(Description="Postcode")
    public postal_code: string;

    /** @description Country code (ISO 3166-1 alpha-3) */
    // @ApiMember(Description="Country code (ISO 3166-1 alpha-3)")
    public country_code: string;

    public constructor(init?: Partial<gpg45_address>) { (Object as any).assign(this, init); }
}

export class gpg45_attachment
{
    /** @description A description of the attachment */
    // @ApiMember(Description="A description of the attachment")
    public desc: string;

    /** @description The IANA media type of the data (e.g. image/jpeg) */
    // @ApiMember(Description="The IANA media type of the data (e.g. image/jpeg)")
    public content_type: string;

    /** @description The encoding format: base64 or byte_data */
    // @ApiMember(Description="The encoding format: base64 or byte_data")
    public content_format: string;

    /** @description The base64-encoded data */
    // @ApiMember(Description="The base64-encoded data")
    public content: string;

    public constructor(init?: Partial<gpg45_attachment>) { (Object as any).assign(this, init); }
}

export class gpg45_biometric_information
{
    /** @description The biometric modality: face, fingerprint, voice or iris */
    // @ApiMember(Description="The biometric modality: face, fingerprint, voice or iris")
    public biometric_modality: string;

    /** @description The captured biometric data */
    // @ApiMember(Description="The captured biometric data")
    public attachments: gpg45_attachment[];

    public constructor(init?: Partial<gpg45_biometric_information>) { (Object as any).assign(this, init); }
}

export class gpg45_claims
{
    /** @description The individual's given name(s) */
    // @ApiMember(Description="The individual's given name(s)")
    public given_name: string;

    /** @description The individual's family / surname */
    // @ApiMember(Description="The individual's family / surname")
    public family_name: string;

    /** @description The individual's date of birth (ISO 8601, yyyy-MM-dd) */
    // @ApiMember(Description="The individual's date of birth (ISO 8601, yyyy-MM-dd)")
    public birthdate: string;

    /** @description Countries of citizenship (ISO 3166-1 alpha-3) */
    // @ApiMember(Description="Countries of citizenship (ISO 3166-1 alpha-3)")
    public nationalities: string[];

    /** @description The individual's address */
    // @ApiMember(Description="The individual's address")
    public address: gpg45_address;

    /** @description Biometric characteristics of the person making the claim */
    // @ApiMember(Description="Biometric characteristics of the person making the claim")
    public biometric_information: gpg45_biometric_information[];

    public constructor(init?: Partial<gpg45_claims>) { (Object as any).assign(this, init); }
}

export class gpg45_dvs_registration
{
    /** @description The service's DVS register reference */
    // @ApiMember(Description="The service's DVS register reference")
    public registration_id: string;

    /** @description The registered name of the certified service */
    // @ApiMember(Description="The registered name of the certified service")
    public name: string;

    /** @description Contact email for the certified service */
    // @ApiMember(Description="Contact email for the certified service")
    public contact_email: string;

    /** @description Website of the certified service */
    // @ApiMember(Description="Website of the certified service")
    public website: string;

    public constructor(init?: Partial<gpg45_dvs_registration>) { (Object as any).assign(this, init); }
}

export class gpg45_authority
{
    /** @description The name of the authority */
    // @ApiMember(Description="The name of the authority")
    public name: string;

    /** @description The country code where the authority is based (ISO 3166-1 alpha-2) */
    // @ApiMember(Description="The country code where the authority is based (ISO 3166-1 alpha-2)")
    public country_code: string;

    /** @description The authority's jurisdiction */
    // @ApiMember(Description="The authority's jurisdiction")
    public jurisdiction: string;

    public constructor(init?: Partial<gpg45_authority>) { (Object as any).assign(this, init); }
}

export class gpg45_document_details
{
    /** @description The GPG 45 document_type enumeration value */
    // @ApiMember(Description="The GPG 45 document_type enumeration value")
    public type: string;

    /** @description The document's reference / identification number */
    // @ApiMember(Description="The document's reference / identification number")
    public document_number: string;

    /** @description The date the document was issued (ISO 8601) */
    // @ApiMember(Description="The date the document was issued (ISO 8601)")
    public date_of_issuance: string;

    /** @description The date the document expires (ISO 8601) */
    // @ApiMember(Description="The date the document expires (ISO 8601)")
    public date_of_expiry: string;

    /** @description The authority that issued the document */
    // @ApiMember(Description="The authority that issued the document")
    public issuer: gpg45_authority;

    public constructor(init?: Partial<gpg45_document_details>) { (Object as any).assign(this, init); }
}

export class gpg45_check_details
{
    /** @description The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data */
    // @ApiMember(Description="The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data")
    public check_method: string;

    /** @description A unique reference for this check, matched by assurance_details evidence_ref entries */
    // @ApiMember(Description="A unique reference for this check, matched by assurance_details evidence_ref entries")
    public check_id: string;

    /** @description When the check was performed (ISO 8601 timestamp) */
    // @ApiMember(Description="When the check was performed (ISO 8601 timestamp)")
    public time: string;

    /** @description The organisation that performed the check */
    // @ApiMember(Description="The organisation that performed the check")
    public organisation: string;

    public constructor(init?: Partial<gpg45_check_details>) { (Object as any).assign(this, init); }
}

export class gpg45_document
{
    /** @description Always 'document' */
    // @ApiMember(Description="Always 'document'")
    public type: string;

    /** @description Details about the document itself */
    // @ApiMember(Description="Details about the document itself")
    public document_details: gpg45_document_details;

    /** @description Copies of the document */
    // @ApiMember(Description="Copies of the document")
    public attachments: gpg45_attachment[];

    /** @description The checks performed on the document */
    // @ApiMember(Description="The checks performed on the document")
    public check_details: gpg45_check_details[];

    public constructor(init?: Partial<gpg45_document>) { (Object as any).assign(this, init); }
}

export class gpg45_evidence
{
    /** @description The document used to prove the claim */
    // @ApiMember(Description="The document used to prove the claim")
    public document: gpg45_document;

    public constructor(init?: Partial<gpg45_evidence>) { (Object as any).assign(this, init); }
}

export class gpg45_evidence_metadata
{
    /** @description The evidence classification, where applicable */
    // @ApiMember(Description="The evidence classification, where applicable")
    public evidence_classification: string;

    public constructor(init?: Partial<gpg45_evidence_metadata>) { (Object as any).assign(this, init); }
}

export class gpg45_evidence_ref
{
    /** @description The check_id of the check that produced this assurance */
    // @ApiMember(Description="The check_id of the check that produced this assurance")
    public check_id: string;

    /** @description Additional metadata about how the evidence supports the assurance */
    // @ApiMember(Description="Additional metadata about how the evidence supports the assurance")
    public evidence_ref: gpg45_evidence_metadata;

    public constructor(init?: Partial<gpg45_evidence_ref>) { (Object as any).assign(this, init); }
}

export class gpg45_assurance_details
{
    /** @description The type of check: validation, verification, counter_fraud or activity_history */
    // @ApiMember(Description="The type of check: validation, verification, counter_fraud or activity_history")
    public assurance_type: string;

    /** @description The GPG 45 score achieved for this check: score_1 to score_4 */
    // @ApiMember(Description="The GPG 45 score achieved for this check: score_1 to score_4")
    public assurance_classification: string;

    /** @description The checks that produced this assurance, matched by check_id */
    // @ApiMember(Description="The checks that produced this assurance, matched by check_id")
    public evidence_ref: gpg45_evidence_ref[];

    public constructor(init?: Partial<gpg45_assurance_details>) { (Object as any).assign(this, init); }
}

export class gpg45_assurance_process
{
    /** @description Always 'gpg45' for the DVS trust framework */
    // @ApiMember(Description="Always 'gpg45' for the DVS trust framework")
    public policy: string;

    /** @description The GPG 45 identity profile code that was met (e.g. M1A, H1A). Null if no profile's requirements were fully met */
    // @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 procedure: string;

    /** @description How each assurance process was satisfied */
    // @ApiMember(Description="How each assurance process was satisfied")
    public assurance_details: gpg45_assurance_details[];

    public constructor(init?: Partial<gpg45_assurance_process>) { (Object as any).assign(this, init); }
}

export class gpg45_verification
{
    /** @description Always 'uk_dvstf' for the UK DVS trust framework */
    // @ApiMember(Description="Always 'uk_dvstf' for the UK DVS trust framework")
    public trust_framework: string;

    /** @description The certified service's entry in the DVS register */
    // @ApiMember(Description="The certified service's entry in the DVS register")
    public dvs_registration: gpg45_dvs_registration;

    /** @description The evidence used to prove the claim */
    // @ApiMember(Description="The evidence used to prove the claim")
    public evidence: gpg45_evidence[];

    /** @description The GPG 45 confidence level achieved: low, medium, high or very_high */
    // @ApiMember(Description="The GPG 45 confidence level achieved: low, medium, high or very_high")
    public assurance_level: string;

    /** @description The assurance policy and procedure followed */
    // @ApiMember(Description="The assurance policy and procedure followed")
    public assurance_process: gpg45_assurance_process;

    public constructor(init?: Partial<gpg45_verification>) { (Object as any).assign(this, init); }
}

export class Gpg45Projection
{
    /** @description The claimed identity information (GPG 45 'claims') */
    // @ApiMember(Description="The claimed identity information (GPG 45 'claims')")
    public claims: gpg45_claims;

    /** @description How the claims were proven (GPG 45 'verification'). Null until the client is Verified */
    // @ApiMember(Description="How the claims were proven (GPG 45 'verification'). Null until the client is Verified")
    public verification: gpg45_verification;

    public constructor(init?: Partial<Gpg45Projection>) { (Object as any).assign(this, init); }
}

export class GetClientGpg45Data extends BaseResponse
{
    /** @description Links related to this client's GPG 45 projection */
    // @ApiMember(Description="Links related to this client's GPG 45 projection")
    public links: Links;

    /** @description The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification' */
    // @ApiMember(Description="The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification'")
    public gpg45: Gpg45Projection;

    public constructor(init?: Partial<GetClientGpg45Data>) { super(init); (Object as any).assign(this, init); }
}

// @DataContract
export class GetClientGpg45Response
{
    // @DataMember
    public data: GetClientGpg45Data;

    public constructor(init?: Partial<GetClientGpg45Response>) { (Object as any).assign(this, init); }
}

// @DataContract
export class GetClientGpg45 extends BaseRequest
{
    // @DataMember
    // @ApiMember(IsRequired=true, ParameterType="path")
    public id: number;

    public constructor(init?: Partial<GetClientGpg45>) { super(init); (Object as any).assign(this, init); }
}

TypeScript GetClientGpg45 DTOs

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/{Id}/gpg45/ HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":{"links":{"self":"String"},"gpg45":{"claims":{"given_name":"String","family_name":"String","birthdate":"String","nationalities":["String"],"address":{"street":["String"],"locality":"String","postal_code":"String","country_code":"String"},"biometric_information":[{"biometric_modality":"String","attachments":[{"desc":"String","content_type":"String","content_format":"String","content":"String"}]}]},"verification":{"trust_framework":"String","dvs_registration":{"registration_id":"String","name":"String","contact_email":"String","website":"String"},"evidence":[{"document":{"type":"String","document_details":{"type":"String","document_number":"String","date_of_issuance":"String","date_of_expiry":"String","issuer":{"name":"String","country_code":"String","jurisdiction":"String"}},"attachments":[{"desc":"String","content_type":"String","content_format":"String","content":"String"}],"check_details":[{"check_method":"String","check_id":"String","time":"String","organisation":"String"}]}}],"assurance_level":"String","assurance_process":{"policy":"String","procedure":"String","assurance_details":[{"assurance_type":"String","assurance_classification":"String","evidence_ref":[{"check_id":"String","evidence_ref":{"evidence_classification":"String"}}]}]}}},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}}