Discard an offer draft
Deletes the draft. When it is the only version of its offer, the offer goes too. A version that is no longer a draft returns 409. Returns no body.
Deletes the draft. When it is the only version of its offer, the offer goes too. A version that is no longer a draft returns 409. Returns no body.
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
curl -X POST "https://example.com/crm/offers/string/discard"Start a new offer version POST
Copies the version into a new draft in the same offer, to revise an offer that was already sent. If the offer already has a draft, that draft is returned instead. Sending the new version supersedes the one sent before it.
Download an offer's certificate GET
Returns the certificate of completion on its own: who accepted the offer, when, and the hash of the document they accepted. Returns 409 until `sealState` is `SEALED`.