...
where: serviceDid is a public DID of the credential ownerissuer.
ProofSpace accepts the structure with the following fields:
...
Code Block | ||
---|---|---|
| ||
{ ok: boolean // if credential setting was successful error?: { // optional block which contains message message: string; } } |
Credential Issuing Failure Webhook
Credential issued failure webhook is called by the third-party to ProofSpace server via URL:
<container-root>/service/:serviceDid/webhook-accept/credendials-issuing-failed
i.e. for the ProofSpace cloud service, this should be:
where: serviceDid is a public DID of the credential issuer.
ProofSpace accepts JSON structure with the following fields:
Code Block | ||||
---|---|---|---|---|
| ||||
{ messageType: 'credentialIssueFailed'; // optional constant. serviceDid: string; // public DID of service which issues credential, the same as in the query path. subscriberConnectDid: string; // user connection DID, whose attempt to issue credentials was rejected. errorMessage: string; // error message which should be logged (can be technical) credentials?: WebhookCredentialValuesDTO[]; // Optional, array of credentials that failed to be issued. (the same as in Interaction Webhook above). subscriberEventId: string; // optional event-id which can be previously received in Interaction Webhook (actionEventId), // if we want to fail issueing credential in this event. actionParams?: Array<NameValueDTO>; // Set of parameters which identify interaction instance. // Used, when we have more than one instance of interaction specified by actionTemplate and need to select one. integrationOutput:{ // optional integration info, which contains: integrationId, prevIntegrations, // other integrations, which was processed in this event logData, // log information to be shown on the dashbord for the event } } |
Retrieving Service Public Key webhook
...