# Purchase orders

Section: Purchasing. Part of the [API reference](https://developer.yoprint.com/reference.md). Web page: https://developer.yoprint.com/reference/purchase-orders/

This page and all 5 operation pages, in 2 files: https://developer.yoprint.com/llms/purchase-orders.txt (operations 1 to 3), https://developer.yoprint.com/llms/purchase-orders-2.txt (operations 4 to 5)

Read one purchase order and change its status (two operations kept for the Zapier app), its history, the CSV export and the QuickBooks sync switch. Creating, editing and receiving purchase orders is not part of the public API.

## Operations (5)

- [List a purchase order's history](https://developer.yoprint.com/reference/purchase-orders/v1-purchase-order-history.md): `GET /v1/api/store/{team_slug}/purchase_order/{hash_id}/history`. Lists the activity recorded on a purchase order, newest first: who changed what, and when.
- [Get a purchase order](https://developer.yoprint.com/reference/purchase-orders/v1-purchase-order-show.md): `GET /v1/api/store/{team_slug}/purchase_order/{hash_id}`. Returns one purchase order with its lines, status, vendor, delivery and billing addresses, creator and tags.
- [Change a purchase order's status](https://developer.yoprint.com/reference/purchase-orders/v1-purchase-order-change-status.md): `PUT /v1/api/store/{team_slug}/purchase_order/{hash_id}/status`. Moves a purchase order to another of the team's purchase order statuses and returns the purchase order, in the same shape as Get a purchase order.
- [Turn QuickBooks sync on or off for purchase orders](https://developer.yoprint.com/reference/purchase-orders/v1-purchase-order-bulk-action-mark-quickbook.md): `PUT /v1/api/store/{team_slug}/purchase_order/bulk_action/mark_quickbook/{on_or_off}`. Sets whether up to 50 purchase orders sync to QuickBooks Online.
- [Export purchase orders by issue date](https://developer.yoprint.com/reference/purchase-orders/v1-purchase-order-export.md): `POST /v1/api/store/{team_slug}/purchase_order/export`. Exports the team's purchase orders whose issue date falls between `start_date` and `end_date`.
