PUT /:country/listings/:id/offer

Adds an offer to a listing.

Body Parameters

The message body should contain a populated Offer model.

Response

On success returns HTTP 204 No Content.

If the listing is claimed by another provider, returns HTTP 403 Forbidden.

Example

PUT https://api.opendi.com/de/listings/5194891/offer

{
    "message": "50% off for each and any pizza",
    "url": "http://www.example.com/myspecialoffer"
}