Skip to main content

Generate a plan and store it on an offer

POST 

/v1/offers/:id/documents/generate

Draws the string plan or the circuit diagram from the offer as it stands and stores it as a document of the offer. The offer's document of that plan is renewed and keeps its id (200); an offer that has none gets one (201). On a published or accepted offer the customer sees it at once, and the offer's history names the API key. No mail is sent.

To get a plan without storing it, see GET /v1/offers/{id}/string-plan and GET /v1/offers/{id}/circuit-diagram. Generating takes a few seconds. Requires the read:documents and write:offers scopes.

Request​

Responses​

The offer's document of this plan, renewed.