Skip to content

Delete Offer

Request

Delete a single offer, identified by its ID in the path. Use the opaque offer ID as returned by other endpoints such as POST /offers/find.

An offer referenced in a sourcing line litem can only be deleted if force_delete is set to true, otherwise the delete request fails with a conflict error. Public off-the-shelf offers can never be deleted.

Security
BearerAuth
Path
idstringrequired

The ID of the offer.

Query
force_deleteboolean

If this is missing or set to false, then a request to delete offers is rejected if the offer is referenced as a selected solution in a sourcing line item. If this is set to true, then the offer is deleted even if referenced, and the respective solution is reset to pending.

Default:false
Headers
Acceptstring(OfferAcceptHeader)required

Set this to application/api.luminovo.offer-v1+json.

Value:"application/api.luminovo.offer-v1+json"
DELETE
/offers/{id}
curl -i -X DELETE \
  'https://api.luminovo.com/offers/{id}?force_delete=false' \
  -H 'Accept: application/api.luminovo.offer-v1+json' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Delete successful (no body).

Response
No content