Accept an offer (demo: server-side PoP)
Accept a credential offer through Didit's server-side demo shortcut. Didit redeems the OpenID4VCI (OpenID for Verifiable Credential Issuance) offer, creates a holder key, and returns the issued SD-JWT VC (Selective-Disclosure JWT Verifiable Credential). Use this only for demo flows where the server accepts the offer for the holder.
Path parameters
Send the offer UUID.
Request body
Response
Didit accepted the offer and minted the credential.
Example response
{
"credential": {
"claims": [
{
"label": "<redacted>",
"name": "<redacted>",
"selective_disclosure": true,
"value": "<redacted>"
},
{
"label": "<redacted>",
"name": "<redacted>",
"selective_disclosure": true,
"value": "<redacted>"
}
],
"credential_name": "<redacted>",
"expires_at": "<redacted>",
"format": "<redacted>",
"id": "<redacted>",
"issued_at": "<redacted>",
"issuer": {
"did": "<redacted>",
"domain": "<redacted>",
"id": "<redacted>",
"name": "<redacted>"
},
"sd_jwt": "<redacted>",
"status": "<redacted>",
"subject": "<redacted>",
"vct": "<redacted>"
},
"holder_jwk": {
"crv": "P-256",
"kty": "EC",
"x": "gAKpvhAnew8YslTtTF7YdOp8LQEgyV4kaR5a7nSe6YE",
"y": "wG9wk6df7491AtKC9F13X9nvhAwigohTd5nJC7PPrR0"
},
"vct": "AirlineLoyalty"
}Changes
Changed in 2 of the 8 revisions of this API.616
- ▲
for the
pathrequest parameteruuid, the type/format was changed fromstring/tostring/uuidrequest-parameter-type-changed
- ▲
the
credential/claims/items/response's property type/format changed fromstring/toobject/for status200response-property-type-changed
- ▲
the
credential/expires_atresponse's property type/format changed fromstring/date-timetostring/for status200response-property-type-changed
- ▲
the
credential/idresponse's property type/format changed fromstring/uuidtostring/for status200response-property-type-changed
- ▲
the
credential/issued_atresponse's property type/format changed fromstring/date-timetostring/for status200response-property-type-changed
- ○
added the optional property
credential/claims/items/labelto the response with the200statusresponse-optional-property-added
- ○
added the optional property
credential/claims/items/nameto the response with the200statusresponse-optional-property-added
- ○
added the optional property
credential/claims/items/selective_disclosureto the response with the200statusresponse-optional-property-added
- ○
added the optional property
credential/claims/items/valueto the response with the200statusresponse-optional-property-added
- ○
added the optional property
credential/issuer/didto the response with the200statusresponse-optional-property-added
- ○
added the optional property
credential/issuer/domainto the response with the200statusresponse-optional-property-added
- ○
added the optional property
credential/issuer/idto the response with the200statusresponse-optional-property-added
- ○
added the optional property
credential/issuer/nameto the response with the200statusresponse-optional-property-added
- ○
added the optional property
holder_jwk/crvto the response with the200statusresponse-optional-property-added
- ○
added the optional property
holder_jwk/ktyto the response with the200statusresponse-optional-property-added
- ○
added the optional property
holder_jwk/xto the response with the200statusresponse-optional-property-added
- ○
added the optional property
holder_jwk/yto the response with the200statusresponse-optional-property-added
- ▲
- ▲
added required request body
request-body-added-required
- ○
for the
pathrequest parameteruuid, the type/format was generalized fromstring/uuidtostring/request-parameter-type-generalized
- ○
added the media type
application/jsonfor the response with the status200response-media-type-added
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
404response-non-success-status-added
This revision also has 111 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲