Skip to main content

Create credential offer

POST 

/v2/config/digital-wallet/openid/sdjwt/credential-offer

Creates an OID4VCI Credential Offer that can be presented to a holder via QR code or deep link. OpenID4VCI 1.0 offers are not yet supported on this operation - the service refuses version_01 with a 400 - so use draft_13 until the backend adds 1.0 support. The wallet builds a Credential Offer by value with the Authorization Code Flow. The mandatory fields depend on the version of the OID4VCI specification. Version draft_13 needs credentialConfigurationIds. Version draft_17 needs scope, and does not accept credentialConfigurationIds. The offer always uses the Authorization Code Flow with an empty issuer_state. This operation does not create a Pre-Authorized Code Flow offer and does not add a tx_code.

Request

Body

required

Credential issuer and the credentials that the offer must contain.

    credentialIssuer stringrequired

    Credential Issuer Identifier that the offer points to. The holder uses this URL to read the Credential Issuer Metadata.

    version string

    Possible values: [draft_13, draft_17]

    Default value: draft_13

    Version of the OID4VCI draft specification that the offer follows. The default is draft_13. OpenID4VCI 1.0 offers are not yet supported on this operation - the service refuses version_01 with a 400 - so use draft_13 until the backend adds 1.0 support.

    credentialConfigurationIds string[]

    Identifiers of the credential configurations that the offer contains. Use this field with version draft_13. Version draft_17 does not accept this field.

    scope string

    Scope that selects the credential configurations for the offer. Use this field with version draft_17. The wallet finds every credential definition of the organisation that has this scope.

Responses

The wallet created the credential offer.

Response Headers
    Schema
      credentialOffer string

      Credential Offer URI that the holder opens. The wallet returns the offer by value in the credential_offer query parameter.

    Loading...