Get Purchase Order
GET/api/spscommerce/:integrationInstance/purchase-orders/:purchaseOrder
Get detailed information for a specific purchase order including line items.
integrations:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Response:
- Full purchase order details
- Line items array with SKU, quantity, price
- Trading partner information
- Acknowledgment status
- Linked sales order (if mapped)
- sales_orders: every sales order the purchase order produced — one, or one per store or per distribution center when the 850 was split. On a split purchase order each entry carries location_code (the store or DC), location_name (its name from the location directory, or the ship-to name the order was created with), quantity (units on that sales order), stores (each store on it: location_code, name and quantity), store_codes (the stores a DC's order carries; null for one store's own order) and order_status. id and sales_order_number are null for a store or DC whose sales order is still being created.
Each line carries locations: the per-store quantities of a multi-store (SDQ) purchase order line — location_code (the retailer's store or DC number), quantity, requested_ship_date and the sales_order_line_id created for that store. Empty for a single ship-to line.
- Linked sales order (if mapped) Each line carries pack_quantity: the case pack (units per outer pack) the retailer's 850 stated for it, or null when the 850 gave none.
Each line carries upc: the item's UPC from the 850 (the consumer package code, else the case code), or null when the 850 gave none. A line with an empty partner_sku is identified by this UPC, and Map Buyer SKU to Product maps it by that value.
Request
Responses
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.