Preview an offer draft as a PDF
Returns the draft as a PDF watermarked as a preview, so you can check it before sending. Once the version is sent this returns 409 with code `OFFER_NOT_DRAFT`; download the sent document instead.
Returns the draft as a PDF watermarked as a preview, so you can check it before sending. Once the version is sent this returns 409 with code OFFER_NOT_DRAFT; download the sent document instead.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Path Parameters
The draft version id.
Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Response Body
application/pdf
curl -X GET "https://example.com/crm/offers/string/draft-pdf"[ 0]List a deal's offers GET
Returns every offer on the deal, newest first, each with its versions, newest version first. An offer is a thread of versions: sending a revised version supersedes the one sent before it, and every other offer route acts on one version by its `versionId`. `dealId` is required; leaving it out or sending a malformed id returns 400. A deal from another company returns 404.
Record a withdrawn acceptance POST
Records that the customer withdrew their acceptance, as a consumer may under the right of withdrawal (angrerett). The deal reopens; the sealed document and the trail stay as they are. Only an `ACCEPTED` version whose acceptance is not already withdrawn qualifies; anything else returns 409.