{"templateId":"openapi_docs","sharedDataIds":{"openAPIDocsStore":"oas-index.yaml","sidebar":"sidebar-sidebars.yaml"},"props":{"definitionId":"index.yaml","dynamicMarkdocComponents":[],"baseSlug":"/","seo":{"title":"Sync Purchase Orders","description":"**Goal:** keep Sortly purchase orders in step with the accounting or ordering system\nyou buy through, so both sides agree on what was ordered, what it costs and where it\nhas got to.\n\nA purchase order records what you ordered from a vendor and on what terms, with a list\nof line items drawn from your inventory. You don't need to send `amount`, `sub_total`,\n`total` or `line_number`: Sortly works them out from the lines.\n\nHow an order moves:\n\n- `draft`, `ready_for_review` and `approved` can each move to one another, or on to\n  `ordered`\n- From `ordered` you can request `voided` or `closed`\n- From `ordered`, receiving stock also moves the order to `partially_received` and then\n  `received`, through the receive flow rather than a status call\n- From `partially_received` or `received`, the only status you can request is `closed`\n- `voided` and `closed` are final\n\nFor the transitions themselves, see [Manage PO Statuses](/manage-po-statuses).\n\n"},"itemId":"sync-purchase-orders-with-external-system","disableAutoScroll":true,"metadata":{"subType":"openapi-operation"},"compilationErrors":[],"markdown":{"partials":{},"variables":{"rbac":{"teams":["anonymous"]},"user":{},"remoteAddr":{"hostname":"developer.sortly.com","port":4000,"ipAddress":"216.73.217.178"},"lang":"default_locale","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"master"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/sync-purchase-orders-with-external-system","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}