Verfifier OID4VP API

Receive Verification Presentation (from e.g. Wallet)

Changed on

Handles various types of verification presentations including standard presentations, rejections, DCQL presentations, and encrypted DCQL presentations. The method automatically determines the request type based on the provided parameters.

post/oid4vp/api/request-object/{request_id}/response-data

Request

  • Base URL
    https://astra-vz-verifier-service-d.apps.p-szb-ros-shrd-npr-01.cloud.admin.ch
  • Auth
    none declared

Path parameters

request_idstring uuid required

The unique identifier of the verification request

Headers

SWIYU-API-Version'1' | '2'

Optional API version. Supported values: 1 - This supports OID4VP ID2 with DIF Presentation Exchange), 2 - This supports OID4VP 1.0

Request body application/x-www-form-urlencoded

presentation_submissionstring

The presentation submission as defined in DIF presentation submission (used for Standard and PE presentations)

error'invalid_scope' | 'invalid_request' | 'invalid_client' | 'vp_formats_not_supported' | 'invalid_presentation_definition_uri' | 'invalid_presentation_definition_reference' | 'client_rejected' | 'access_denied'

Error code for rejection (used for REJECTION)

error_descriptionstring

Error description for rejection (used for REJECTION)

responsestring

Encrypted response JWE string (used for DCQLE)

Example request

{
  "error": "client_rejected",
  "error_description": "The owner has declined the verification request.",
  "response": "eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMjU2R0NNIiwidHlwIjoiSldFIn0..."
}

Response

Verification Presentation received and processed successfully

Changes

    • breaking

      request body became required

    • breaking

      the response property became optional for the status

    • warning

      removed the optional property from the response with the status

    • info

      added the new optional header request parameter SWIYU-API-Version

    • info

      added the new optional request property

    • info

      added subschema #1 subschema #2 to the request property oneOf list

    • info

      the request property type was generalized from string to no type

    • info

      added the optional property to the response with the status

    • info

      removed the invalid_credential enum value from the response property for the response status

    • info

      removed the invalid_request enum value from the response property for the response status

    • info

      removed the server_error enum value from the response property for the response status