Ga naar inhoud

A message on a negotiation

POST
/dsp/negotiations/{pid}/{action}
curl --request POST \
--url https://example.com/dsp/negotiations/example/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'

The other messages of a negotiation, for both roles: request (ContractRequestMessage), offers (ContractOfferMessage), agreement (ContractAgreementMessage), events (ContractNegotiationEventMessage, ACCEPTED or FINALIZED) and termination (ContractNegotiationTerminationMessage). The same message again gets the same answer.

pid
required
string

Our process id (providerPid or consumerPid).

action
required
string

request, offers, agreement, events or termination.

The message that action names.

Media typeapplication/json
object

Example generated

{}

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"
]
}