POST
Generate a purchase order form
Company space For: Buyer, Manager · Permission: purchase_order_form_snapshots.create Conditions
  • The purchase must be pending, completed or closed; a draft, awaiting-approval or rejected purchase is refused with a validation error (only when no snapshot exists yet).
  • A template and company context must resolve for purchase order forms; otherwise the generation fails.
What else happens
  • Stores a frozen copy of the rendered form for the purchase, built from the active template and the purchase detail.
  • If a snapshot already exists for the purchase it is returned as it is, without re-rendering, and the call still answers 201.
Part of Create and approve purchases.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

purchase
string
required

Identifier of the purchase the form is generated for.

Response

The response is of type string.