Verify an agreement (provider)
POST
/dsp/negotiations/{pid}/agreement/verification
const url = 'https://example.com/dsp/negotiations/example/agreement/verification';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/dsp/negotiations/example/agreement/verification \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'The consumer’s ContractAgreementVerificationMessage.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”pid
required
string
Our process id (providerPid or consumerPid).
Request Bodyrequired
Section titled “Request Bodyrequired”A ContractAgreementVerificationMessage.
Media typeapplication/json
object
Example generated
{}Responses
Section titled “Responses”The ContractNegotiation.
Media typeapplication/json
object
Example generated
{}Not a valid message, or not allowed in the state of the process.
Media typeapplication/json
A DSP error (dspace:…Error): code and reason, as JSON-LD.
object
@context
required
object
@type
required
E.g. ContractNegotiationError.
string
code
required
string
reason
required
Array<string>
Example generated
{ "@context": {}, "@type": "example", "code": "example", "reason": [ "example" ]}No valid token.
Media typeapplication/json
A DSP error (dspace:…Error): code and reason, as JSON-LD.
object
@context
required
object
@type
required
E.g. ContractNegotiationError.
string
code
required
string
reason
required
Array<string>
Example generated
{ "@context": {}, "@type": "example", "code": "example", "reason": [ "example" ]}Unknown process.
Media typeapplication/json
A DSP error (dspace:…Error): code and reason, as JSON-LD.
object
@context
required
object
@type
required
E.g. ContractNegotiationError.
string
code
required
string
reason
required
Array<string>
Example generated
{ "@context": {}, "@type": "example", "code": "example", "reason": [ "example" ]}The message could not be recorded as evidence, so it was not processed.
Media typeapplication/json
A DSP error (dspace:…Error): code and reason, as JSON-LD.
object
@context
required
object
@type
required
E.g. ContractNegotiationError.
string
code
required
string
reason
required
Array<string>
Example generated
{ "@context": {}, "@type": "example", "code": "example", "reason": [ "example" ]}