SPS Commerce
List SPS Commerce Integrations
List SPS Commerce connections for this account. Credentials and tokens are never returned. trading_partner_ids lists the trading partners the connection has received purchase orders from; ship_notice_number_partner_ids those that assign the ship notice number themselves.
Test SPS Commerce Connection
Test the connection to SPS Commerce Transaction API.
Update SPS Commerce Settings
Update a connection's name, trading-partner IDs, automatic polling, EDI invoicing, inventory advice and carton-level ship notices. Send only the fields you change.
Delete SPS Commerce Integration
Disconnect SPS Commerce: removes the connection and its EDI documents. Refused once the connection has created sales orders.
List Carton Label Templates
List the carton label templates SPS Commerce can render for the account, and the trading partners (from received purchase orders) to choose a template for, with each partner's current choice. Choices are saved with carton_label_ids on Update SPS Commerce Settings.
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.
Update Shipment Packing
Replace the shipment's cartons. Partial packing may be saved; packing more of a line than shipped, or an empty carton, is refused with 422. Refused once packing is finalized (reopen first) or once the 856 has been sent.
Auto-Pack Shipment
Build and save a packing plan automatically. mode=case_pack fills full cartons of each product's case quantity, puts each remainder in its own carton and products with no case quantity in one shared carton; mode=single_carton packs everything into one carton. Carton weights are estimated from product weights. Returns the new packing and any warnings.
Update Shipment Freight Details
Save the shipment's freight references, which retail carton labels and the 856 header carry: bill_of_lading_number (max 30), carrier_pro_number (max 35), carrier_scac (2–4 letters, stored upper case), carrier_name (max 60). The carrier defaults to the shipment's shipping method when not set. Editable until the 856 is sent.
Update Shipment Ship Notice Structure
Choose the 856 advance ship notice structure for this one shipment, overriding its trading partner's structure — for retailers whose routing varies per shipment (e.g. Split by DC for an LTL load to a distribution center, Small Package for parcel). Send asn_structure as one of order_item, pick_and_pack, store_order_item, store_pick_and_pack, or null to go back to the trading partner's structure.
Record Shipment Carrier Pickup
Record when the carrier picked a shipment up, or clear it by sending null. A retailer with the after_carrier_pickup document rule takes the 856 only after this is set, because a shipment being marked shipped does not mean the carrier has it. Recording it on a shipped shipment sends the ship notice it was holding, dated the pickup day, unless another rule still holds it.
Finalize Shipment Packing
Lock the packing in and issue every carton its SSCC-18 number, from the connection's GS1 company prefix. Requires every shipped unit to be packed. If the shipment has already shipped, its held 856 ship notice (and 810 invoice, when enabled) is sent.
Reopen Shipment Packing
Reopen finalized packing for changes. The cartons' SSCC numbers and labels are voided; new numbers are issued on the next finalize, so printed labels must be replaced. Refused once the 856 has been sent.
Generate Carton Labels
Render every finalized carton's retailer-formatted GS1-128 label through SPS Commerce, using the label template chosen for the trading partner, and store the ZPL per carton. When the retailer's template needs data the shipment lacks, returns 422 naming what to add (for example a bill of lading number or a shorter carrier name).
Download Carton Labels (ZPL)
Download every stored carton label as one ZPL file for a thermal printer (Content-Type application/zpl). Returns 422 until labels have been generated.
Download Carton Labels (PDF)
Render every carton label as one PDF through SPS Commerce, for printing on an ordinary printer (Content-Type application/pdf).
List EDI Documents
Paginated list of every EDI document the connection received or sent, newest first. Each row names the purchase order it belongs to, its sales order and shipment (when it has one), the trading partner, its send status and the reason it failed.
Download EDI Document XML
Download the document as RSX XML, the form SKU.io stores, whatever format the connection exchanges with SPS Commerce. Use Download EDI Document to get it as RSX JSON.
Download EDI Document
Download a document as an RSX XML or RSX JSON file attachment. Every document is stored as RSX XML; the JSON file is written from it exactly as it is sent to SPS Commerce on a JSON connection (no root element, repeating groups such as line items, addresses and charges always as arrays, numeric fields as numbers).
Resend EDI Document
Queue another attempt at an outbound document (acknowledgment, ship notice, invoice, inventory advice or warehouse order) that failed to send. A warehouse order (940) that was sent can also go again while its order is still open, for a 3PL that never received it. Check first: the 3PL could ship it twice. The document goes back to ready and its previous error is cleared.
Reprocess EDI Document
Queue another attempt at applying a warehouse shipping advice (945) that failed, once what it reported is fixed. Applying it is idempotent: a shipment already recorded is not recorded twice.
Send EDI Document Update
Send the 3PL an updated warehouse order (940) for an order that changed after this 940 went out. The update carries the order as it stands now and replaces earlier versions, which can no longer be resent. Check first that the 3PL treats an updated 940 as a replacement: one that reads it as a new order could ship twice.
Download EDI Document Again
Fetch an unreadable warehouse shipping advice (945) from SPS Commerce again and, if this copy can be read, queue it to be applied. The unreadable file is kept with the document. Every usual check still runs, so a shipment already recorded is not recorded twice.
Replace EDI Document Content
Replace an unreadable warehouse shipping advice (945) with a corrected file and queue it to be applied. Send multipart/form-data with a file field of at most 5 MB. The unreadable file is kept with the document. Every usual check still runs, including the sender check, so a replacement can't record what a resend couldn't.
Export EDI Documents
Download the connection's EDI document list as CSV or XLSX. The file starts with a row number and the document ID, then the chosen columns; date-times are in the account's time zone.
Bulk Reprocess EDI Documents
Process several warehouse shipping advices (945) again, once what they complained about is fixed. Only failed or stuck inbound 945s are queued; every other document is skipped and counted.
Bulk Resend EDI Documents
Send several outbound documents that failed to send again. A document already sent is skipped: resending a sent warehouse order can make the 3PL ship twice, so use Resend EDI Document for those, one at a time. Documents that can't be resent are skipped and counted.
List Item Mappings
List the item mappings that apply to this connection's purchase orders: the customer SKU mappings (every source) of the customers this connection's trading partners belong to. A trading partner belongs to the customer it is linked to in the connection's settings, otherwise to the customer of its most recently converted purchase order.
Create Item Mapping
Map a buyer part number to a product for one of this connection's customers. The mapping is saved on the customer's SKU mappings (source edi), so it also applies to purchase orders that customer emails in. Every failed purchase order of that customer's trading partners that this leaves fully mapped is retried straight away; retried_purchase_orders says how many. Other customers' lines with the same item number are not touched.
Bulk Delete Item Mappings
Delete several item mappings at once. Ids of mappings whose customer isn't one of this connection's are ignored; deleted says how many were removed.
List Item Mapping Customers
List the customers whose item mappings this connection uses, each with the trading partner ids that belong to it, plus the trading partners that have no customer yet (not linked in the connection's settings and no converted purchase order).
List Unmatched Items
List the item numbers on this connection's purchase orders that are still waiting for a product, one row per customer and item number. An item number is the buyer part number, or the UPC of a line the buyer sent without one (by_upc is true). Lines from a trading partner with no customer yet are grouped by trading partner: customer_id is null and suggested_customer is the existing customer its purchase orders would convert to, if any.
Update Item Mapping
Change a mapping's buyer part number, product or description. The mapping keeps its customer (customer_id is ignored); to move it, delete it and create another. Returns 404 for a mapping whose customer isn't one of this connection's. Failed purchase orders it now unblocks are retried.
Delete Item Mapping
Delete one of this connection's customers' item mappings. It is removed for that customer everywhere, including purchase orders the customer emails in. Returns 404 for a mapping whose customer isn't one of this connection's.
List Location Codes
List the connection's location directory: the name and address behind each trading partner's location (store / DC) code. When a purchase order names its ship-to only by a code, the address is filled from here.
Create Location Code
Add a location code to the directory. Every failed purchase order that was waiting on an unknown location code is retried straight away; retried_purchase_orders says how many.
Update Location Code
Change a location directory entry. Waiting purchase orders are retried as on create.
Delete Location Code
Remove a location directory entry. Purchase orders already converted keep their address.
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.
Export Location Codes
Download the connection's location directory in the import's columns (trading_partner_id, location_code, name, address1, address2, city, state, zip, country, distribution_center_code), so the file can be edited and imported back.
Download Location Codes Template
Download an empty import template: the CSV columns and one example row.
Bulk Delete Location Codes
Delete several location directory entries at once. Purchase orders already converted keep their address.
List Purchase Orders
List EDI 850 purchase orders received for an SPS Commerce integration, paginated.
Delete Purchase Orders
Permanently delete multiple purchase orders.
Get Purchase Order
Get detailed information for a specific purchase order including line items.
Get Sales Order Purchase Order Split
Get the split EDI purchase order (850) a sales order came from. When a retailer's purchase order ships to several stores, SKU.io creates one sales order per distribution center or per store; this returns the purchase order, how it was split, where this sales order sits among its siblings, every sibling with its DC or store, stores and units, and the stores each of this order's lines is for.
Retry Purchase Order Conversion
Re-run conversion of a purchase order that failed (for example after mapping its SKUs). Queued; the existing purchase order is converted rather than duplicated.
Map Buyer SKU to Product
Map the item number on a purchase order line (the buyer part number, or the UPC of a line without one) to a product, for the customer the trading partner belongs to. The mapping is saved on that customer's SKU mappings, applied to that customer's waiting purchase order lines, and every failed purchase order it leaves fully mapped is retried.
Poll for New Purchase Orders
Manually trigger polling for new EDI 850 purchase orders from SPS Commerce.
Send Acknowledgment (855)
Send the EDI 855 purchase order acknowledgment to SPS Commerce for purchase orders that became sales orders and have not been acknowledged yet. Pass `purchase_order_ids` to acknowledge only those orders; leave it out to acknowledge every pending order on the connection.
Download Raw XML
Download the raw EDI 850 XML for a purchase order.
Export Purchase Orders
Download the purchase order list as CSV or XLSX. The file always starts with a row number and the purchase order ID, then the chosen columns; date-times are in the account's time zone.
Archive Purchase Orders
Archive multiple purchase orders.
Unarchive Purchase Orders
Unarchive multiple purchase orders.
Get Purchase Order Statistics
Get statistics and metrics for purchase orders.
Bulk Retry Purchase Order Conversions
Queue another attempt at turning failed purchase orders into sales orders, for example after mapping their items. Only failed purchase orders with no sales order are retried; the rest are skipped and counted.
List Acknowledgments
Get paginated list of EDI 855 PO Acknowledgments sent to trading partners.
Get Acknowledgment
Get detailed information for a specific 855 acknowledgment.
Download Acknowledgment XML
Download the raw EDI 855 XML that was sent to SPS Commerce.
Get Acknowledgment Statistics
Get statistics for 855 acknowledgments.
Send ASN
Generate (if needed) and send the 856 Advance Ship Notice for a completed fulfillment of an order received through this SPS Commerce integration. Retries resume the existing ASN; an ASN already sent is not transmitted again.
List ASN
Get paginated list of EDI 856 Advance Ship Notices sent to trading partners.
Get ASN
Get detailed information for a specific 856 ASN.
Download ASN XML
Download the raw EDI 856 XML that was sent to SPS Commerce.
Get Ship Notice Statistics
Get statistics for 856 ASN documents.
Send Sales Invoice 810
Send the EDI 810 for an issued sales invoice: generates and sends it when it is missing, or sends it again when the last attempt failed or the trading partner rejected it. Sends even when the partner's ship notice has not gone out and even when automatic EDI invoices are off for the connection.
Regenerate Sales Invoice 810
Rebuild the EDI 810 of an issued sales invoice from the invoice, keeping the same document and control number. Allowed only while the 810 has not been sent (draft or ready) or after it failed or was rejected; a failed or rejected 810 is sent again after rebuilding.
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.
Decline Purchase Order Change
Keep the sales order as it is and record why. The reason is stored on the change and added to the order's notes.
Mark Purchase Order Change Handled
Record that the change was applied to the order by hand, for a change SKU.io can't apply itself. Nothing on the order changes.