Skip to main content

Add a document to an offer

POST 

/v1/offers/:id/documents

Stores a file on the offer, as an upload in the planner's documents tab does. Send a form (multipart/form-data) with the file in file; name, description and type are optional. The offer can be in any state. On a published or accepted offer the customer sees the change at once, and the offer's history names the API key. No mail is sent.

An offer holds a file once. When it has the very same file already, the call answers 409 document_already_in_offer and names the document in documentId, so a call whose answer you did not get can simply be repeated. Requires the read:documents and write:offers scopes.

Request​

Responses​

The new document.