Offers (DCP)
Request model
Example request
Response model
Last updated
Last updated
POST /offers HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 674
{
"@context": [],
"issuer": "text",
"credentials": [
{
"id": "https://example.com",
"credentialType": "text",
"credentialSchema": "text",
"offerReason": "text",
"bindingMethods": [
"text"
],
"profile": "text",
"issuancePolicy": {
"id": "text",
"name": "text",
"purpose": "text",
"format": {
"^jwt$|^jwt_vc$|^jwt_vp$": {
"alg": [
"text"
]
},
"^ldp_vc$|^ldp_vp$|^ldp$": {
"proof_type": [
"text"
]
},
"^ac_vc$|^ac_vp$": {
"proof_type": [
"text"
]
},
"mso_mdoc": {},
"^sd_jwt$": {
"alg": [
"text"
]
}
},
"frame": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"submission_requirements": [
{
"name": "text",
"purpose": "text",
"rule": "all",
"count": 1,
"min": 1,
"max": 1,
"from": "text"
}
],
"input_descriptors": [
"[Circular Reference]"
]
},
"type": "text"
}
],
"type": "text"
}POST /offers
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
{
"@context": [
"https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"
],
"type": "CredentialOfferMessage",
"issuer": "did:ishare:EU.NL.NTRLNL-10000000",
"credentials": [
{
"id": "d5c77b0e-7f4e-4fd5-8c5f-28b5fc3f96d1",
"type": "CredentialObject",
"credentialType": "FrameworkRole",
"bindingMethods": [
"did:web"
],
"profile": "vc10-sl2021/jwt",
"issuancePolicy": {
"id": "a468fc48-5c1a-43c7-903e-ab1851882afb",
"input_descriptors": [
{
"id": "framework-compliance",
"name": "Requires proof of compliance to framework",
"purpose" ::
"constraints": {
"fields": [
{
"path": [
"$.vc.type"
],
"filter": {
"type": "string",
"pattern": "^FrameworkCompliance$"
}
}
]
}
}
]
}
}
]
}