Skip to main content

Get Purchase Order

GET 

/api/spscommerce/:integrationInstance/purchase-orders/:purchaseOrder

Get detailed information for a specific purchase order including line items.

Required scope: integrations:read

Grant 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​

OK

Response Headers
    Content-Type