Offer a negotiation (consumer)
POST
/dsp/negotiations/offers
const url = 'https://example.com/dsp/negotiations/offers';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/offers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'A provider-initiated ContractOfferMessage. This connector does not accept offers it did not ask for.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”A ContractOfferMessage.
Media typeapplication/json
object
Example generated
{}Responses
Section titled “Responses”Not supported.
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" ]}Not authenticated.
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" ]}