Skip to main content
POST
Raise a purchase order from a selected quote, from approved requests, or from lines the buyer

Headers

Prefer
enum<string>

Preference

Available options:
params=single-object

Body

Raise a purchase order from a selected quote, from approved requests, or from lines the buyer types.

p_lines is the order's lines when it is given: an entry naming a request line pulls it, at its own quantity so a request can be ordered in parts, and an entry without one is a line of its own. Lines from several requests may sit on one order — each keeps its link home, and the header names a request only when there is exactly one.

The cost centre follows the request unless the caller names one, and an order raised without a request has to be told. The budget head follows the requisition the same way, and commits nothing until the order is issued.

p_asset_id
string<uuid>
p_budget_id
string<uuid>
p_cost_center_id
string<uuid>
p_currency_id
string<uuid>
p_delivery_terms
string<text>
p_description
string<text>
p_lines
string<jsonb>
p_notes
string<text>
p_payment_terms_days
integer<integer>
p_promised_date
string<date>
p_purchase_requisition_id
string<uuid>
p_ship_to_address
string<text>
p_shipping_amount
number<numeric>
p_site_id
string<uuid>
p_title
string<text>
p_vendor_id
string<uuid>
p_vendor_quote_id
string<uuid>
p_vendor_reference
string<text>
p_warehouse_id
string<uuid>
p_work_order_id
string<uuid>

Response

200

OK