Create Purchase Order

Creates a draft purchase order for a supplier at a location. Requires the create-purchase-orders permission at the location. Pass transfer_id instead of location_id to build the PO from an outgoing stock transfer (lines are copied from the transfer and the PO is created at the transfer's source location). Add lines with POST /purchases/{id}/lines.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required

Supplier to raise the PO against.

integer

Location to purchase for. Required unless transfer_id is given.

integer

Create the PO from this stock transfer instead of an empty draft.

date

Expected delivery date, Y-m-d.

boolean

Email the PO to the supplier automatically when it is approved.

Headers
string
required

The merchant install this request acts on (install.store_id from the app.installed webhook).

Response

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json