POST
/
webapp
/
credential-offers
curl --request POST \
  --url https://agent.findynet.demo.sphereon.com/oid4vci/webapp/credential-offers \
  --header 'Content-Type: application/json' \
  --data '{
  "credential_configuration_ids": [
    "PensionSdJwt"
  ],
  "grants": {
    "urn:ietf:params:oauth:grant-type:pre-authorized_code": {
      "pre-authorized_code": "d270fee1-9185-4e60-9901-d291e1338d7a"
    }
  },
  "credentialDataSupplierInput": {
    "birthDate": "2000-02-11",
    "startDate": "2040-01-01",
    "endDate": "2070-05-10",
    "givenName": "John",
    "familyName": "Doe",
    "personalAdministrativeNumber": 12345678,
    "typeCode": "PRE",
    "typeName": "Pre Pension"
  }
}'

Body

application/json

Request to create a credential offer

credential_configuration_ids
string[]
required

Identifiers for the offered credential configurations

baseUri
string

Base URI for constructing offer-related links. Defaults to openid-credential-offer:// Mainly useful if you want to open the URL with a web wallet or with a native app using a different deeplink

client_id
string

Optional Client identifier of the wallet

credential_issuer
string

URL of the credential issuer

credentialDataSupplierInput
object

Additional input for the credential data supplier, this typically contains the actual credential payload (unsigned)

grants
object

Supported authorization grant types

pinLength
number

Length of the user PIN if required for pre-authorization-code flow

qrCodeOpts
object

Options for generating a QR code representation of the offer

scheme
string

URI scheme for offer delivery

Response

200 - application/json
txCode
object

Transaction code details for tracking

uri
string

Credential offer URI

userPin
string

User PIN for access if required