Skip to main content

Create draft purchase order

POST 

/v1/entities/:entity_id/purchase_orders

Creates a draft purchase order for replenishment or AI-generated recommendations that a merchant reviews before ordering.

Requires the purchase_orders:write scope. The key's shop must also be linked to {entity_id}, else 403 — see the API key scheme on the Authentication page.

supplier_name resolves via a case-insensitive exact match within the shop's suppliers (422 if none or ambiguous); a supplier can also be omitted, letting the merchant assign one later in the Bookkeep app. Line items are optional on create.

Pass an Idempotency-Key header to make retries safe: replaying the same key returns the existing purchase order with HTTP 200 instead of creating a duplicate.

Request

Responses

Idempotency-Key replay — returns the existing purchase order instead of creating a duplicate.