Offers

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.

GET
/crm/offers/{versionId}/draft-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.

Authorization

x-api-key
x-api-key<token>

Company API key, created under Settings > API Keys.

In: header

Path Parameters

versionId*string

The draft version id.

Header Parameters

x-company-id?string

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.

Match^[0-9a-fA-F]{24}$

Response Body

application/pdf

curl -X GET "https://example.com/crm/offers/string/draft-pdf"
[  0]