Create Purchase Orders in Bulk

Creates one draft purchase order per data entry at the given location, with lines set in the same call. The unit cost of each line is taken from the variant's current cost price at the location, and the product's taxes are applied automatically — unit_cost cannot be passed here. Requires the create-purchase-orders permission at the location.

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

One entry per purchase order. Each entry: supplier_id (integer, required) and lines (array, required) of {variant_id, unit, unit_quantity}.

data*
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