Skip to main content

SPS Commerce

📄️Get Shipment Packing

Get a shipment's carton packing: what shipped versus what is packed, the cartons with their SSCC-18 numbers and label status, the freight references, and the ship notice (856) status (not_shipped, waiting_for_packing, waiting_for_ship_notice_number, held, ready, sent, failed). A connection that sends carton-level ship notices holds a shipped order's 856 until its packing is finalized. requires_ship_notice_number is true when the order's trading partner assigns the ship notice number itself (see the connection's ship_notice_number_partner_ids); its 856 is held, as waiting_for_ship_notice_number, until freight.ship_notice_number is saved.

📄️Import Location Codes

Upload a CSV of location codes (multipart/form-data, field file: .csv or .txt, max 5 MB, up to 5,000 rows). Columns: trading_partner_id, location_code, name, address1, address2, city, state, zip, country, distribution_center_code (optional; older files without it still import). A store row with a distribution_center_code needs no name or address. A row adds a new code, or updates the entry with the same trading partner + location code; codes not in the file are kept. Blank rows are skipped. All-or-nothing: if any row is invalid nothing is saved and errors lists every problem by line number. Purchase orders waiting on an unknown location code are retried after a successful import.

📄️List Purchase Order Changes for a Sales Order

Every purchase order change (860) the retailer sent for this sales order's PO that is still waiting for a decision, plus those decided in the last 7 days. Each change lists, per line, the old and new quantity and price, whether SKU.io can apply it, and why not when it can't. `can_accept` is true only when every line can be applied; `blocked_reasons` lists everything that stops it (a line that already shipped, an item SKU.io can't find on the order, an earlier change still waiting, a PO split by store).

📄️Accept Purchase Order Change

Apply the retailer's change to the sales order: new quantities (a decrease cancels the difference), removed lines (cancelled), new prices, added lines (when the item maps to a product), and the ship-by, deliver-by and cancel-after dates. The 3PL is updated the same way as for any edit to the order; `decision.fulfillment_note` says what happened. All or nothing: if any line can't be applied, nothing changes and the response lists every reason (422). SKU.io does not send a change acknowledgment (865) to the retailer.