Add your default documents to an offer
POST/v1/offers/:id/documents/defaults
Adds the documents your company puts on every new offer (planner: the documents of the request settings), as "Neues Angebot" does. Files the offer has already are left out, so the call can be repeated; it removes nothing. On a published or accepted offer the customer sees the documents at once, and the offer's history names the API key. No mail is sent. Requires the read:documents and write:offers scopes.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 429
- 500
What was added.
missing_api_key or invalid_api_key: no API key was sent, or it is wrong, expired or revoked.
insufficient_scope: the API key does not have the scope this endpoint needs. required names it.
not_found: there is no such record in your company.
document_already_in_offer: somebody else added one of the files meanwhile; repeat the call.
rate_limited: the API key has stored 1000 files within the hour. Try again after the seconds in the Retry-After header.
Response Headers
db_error: the database refused or failed the request. storage_error: a file could not be read or stored. message has the details.