Costco EDI is the electronic exchange of purchase orders, acknowledgments, ship notices and invoices between Costco Wholesale and its suppliers, in the X12 format. For many suppliers, that exchange runs through SPS Commerce. This post explains how it works when every file is built and read inside your own ERP, based on the Costco Wholesale connection we built and ran for a US consumer electronics brand. If you need the connection built rather than explained, see our Costco EDI integration services, which cover the build, the SPS Commerce connection and testing.
Wholesale, not dropship
Costco has more than one way to buy from a supplier, and they are different integrations.
In wholesale, Costco buys your stock and you ship it to Costco. In Costco.com dropship, Costco takes a customer order and you ship that single order straight to the customer, usually through CommerceHub rather than SPS Commerce. This post covers wholesale. Dropship is covered in our guide to Costco.com dropship for suppliers and brands.
What Costco EDI requires from a supplier
Before the first purchase order arrives, a Costco Wholesale supplier needs a few things in place. The exact list for your account comes from Costco and SPS Commerce, so treat this as the shape of the work rather than the specification itself.
- A system that can read and write X12. Either your own ERP or a provider’s tool has to receive the 850 and produce the 855, 856 and 810.
- A connection to the network named for your account. On the connection we built, that was SPS Commerce, reached over FTP.
- An item cross-reference. Costco’s item numbers have to map to your own, or the 850 cannot become a real order.
- Shipment data that matches reality. The 856 has to describe what physically left the warehouse, so the warehouse has to record it.
- Testing before go-live. The documents are checked against the specification for your account before live orders flow.
None of this depends on which ERP you run. What it depends on is whether order, shipment and invoice data can be reached and written back.
Costco EDI compliance: what keeps documents accepted
Meeting the requirements once, at go-live, is not the same as staying compliant. Compliance is about every document after that. These are the common reasons supplier EDI documents get questioned or rejected, with any retailer, and what prevents each one.
- Item numbers that do not match. The 850 orders by Costco’s item number. If the cross-reference in your system is missing or out of date, the order cannot be built correctly. Keeping the cross-reference in the ERP, and holding unmatched lines for a person, stops this.
- A ship notice that describes the order, not the shipment. The 856 has to reflect what left the warehouse, carton by carton. Building it from the recorded shipment, rather than from the order, keeps it accurate.
- An invoice that does not agree with the ship notice. The 810 should bill for what shipped. Generating it from the same shipment records avoids a mismatch.
- Documents sent late or not at all. The acknowledgment and ship notice have timing rules in your account’s specification. Scheduled jobs and a dashboard that shows what was sent, and what failed, make a missed document visible the same day.
- Missing or badly formatted fields. The specification lists the fields Costco expects in each document. Testing every document type against it before go-live catches these early.
Keeping the raw copy of every file the ERP sends and receives, as the system we built does, means that when a document is questioned the exact file can be compared with the order and shipment records it came from.
Where to find the Costco EDI specifications
The specification for your account, with the documents, fields and rules Costco expects, comes through your Costco vendor onboarding and the EDI network named for your account, often SPS Commerce. Some providers also give suppliers a web portal to view orders and key documents by hand. That works at low volume, but every order is typed twice. When the documents are built in your ERP, the specification becomes the mapping in your own code and nobody retypes an order.
The documents on this connection
A Costco Wholesale cycle on the connection we built uses seven X12 transaction sets. Four carry the order from purchase to invoice, and three keep both sides in step when something changes or goes wrong. Each one has a single job.
850 purchase order. Costco orders stock from you. The ERP turns it into a real order against your own items. More on the EDI 850 purchase order.
855 acknowledgment. You confirm what you can actually ship, with quantities and dates, before Costco plans against the order.
856 advance ship notice. Sent when the goods ship. It has to describe what physically left the warehouse, not what was ordered. More on the EDI 856 advance ship notice.
810 invoice. Bills Costco for what shipped, matched line for line against the ship notice. More on the EDI 810 invoice.
860 purchase order change. Costco changes an order it already sent: a quantity, a date or a line. The ERP has to apply the change to the open order before anything ships, or the 856 and the 810 will describe the old order rather than the current one.
824 application advice. When an 810 invoice has an error, Costco sends an 824 that says what is wrong with it. The ERP reads it and ties it to the invoice it refers to, so the error is visible on that record and can be corrected there, instead of the advice sitting unread in a mailbox.
997 functional acknowledgment. Confirms that a file was received and could be read. It says nothing about whether the content was right, which is why the 824 matters.
For what each transaction set does across all trading partners, see EDI transaction sets explained.
What SPS Commerce does, and what it does not
SPS Commerce sits between the ERP and Costco, but it does not translate anything. The ERP builds each outbound file itself and uploads it to SPS Commerce’s FTP. It reads each inbound file that SPS Commerce delivers. SPS Commerce validates the files and delivers them between the two sides.
That division matters when something is rejected. Because the ERP built the file, the file and the order record it came from sit in the same system. Diagnosing a rejection means comparing the two, and that is a query rather than a support ticket.
Inside the ERP
Every X12 file on this connection is read and generated inside the ERP using the EdiFabric .NET library, and the mapping is in the ERP’s own code. The same approach is described in more detail in EDI inside your ERP.
An inbound 850 is parsed straight into the order tables, with Costco’s item numbers mapped to the brand’s own. The 856 has to describe what the warehouse actually shipped, and the 810 has to bill for that, not for what was ordered.
Costco is one of more than a dozen retail trading partners on the same ERP. Amazon Vendor Central and Adorama connect directly over SFTP, and the rest through a network such as SPS Commerce, CommerceHub or Radial, and all of them share one order queue, one inventory position and one set of shipment records. The system is described in our multi-marketplace ERP case study.
Running it day to day
Scheduled EDI jobs poll FTP on schedules as short as every ten minutes, and every job is tracked on a monitoring dashboard. Staff can see when each job last ran, what it picked up and what was rejected, so a problem is diagnosed from the ERP’s own data rather than discovered when Costco asks.
Where to start
Start with the specification Costco and SPS Commerce give you for your account: which documents, which fields and which validation rules apply. Then decide where the documents will be built. If the answer is your own ERP, the work is the mapping and the monitoring.
We build this kind of connection as our Costco EDI integration service, part of our wider EDI integration services. If Costco has asked you to go live on EDI through SPS Commerce, get in touch and tell us what your ERP runs on today.
Common questions
What are the Costco EDI requirements for suppliers?
A Costco Wholesale supplier needs a system that can receive the 850 purchase order and send back the 855 acknowledgment, 856 ship notice and 810 invoice in the format Costco specifies, through the network named for your account, often SPS Commerce. The exact fields and rules come from your account's specification, and the connection is tested before it goes live.
Who provides Costco EDI services?
Suppliers usually choose between a full-service EDI provider that runs the mapping for them and building the documents inside their own ERP. We do the second: the X12 files are built and read in your ERP and delivered through SPS Commerce. See our Costco EDI integration service for how the work runs.
Does SPS Commerce translate our Costco documents?
No. The ERP builds and reads the X12 files itself. SPS Commerce validates them and delivers them between the ERP and Costco.
Is this the same as Costco.com dropship?
No. This is Costco Wholesale, where Costco buys stock from you. Costco.com dropship, where you ship each order to the customer, is a separate program that usually runs through CommerceHub.
Which documents does a Costco Wholesale connection exchange?
The connection we built exchanged the 850 purchase order, 855 acknowledgment, 856 ship notice, 810 invoice, 860 purchase order change, 824 application advice and 997 functional acknowledgment. What your own account requires is set by Costco and SPS Commerce, so check the current specification.
Can this be built into an ERP we already run?
Often yes. What matters is whether your order, shipment and invoice data is reachable, not who wrote the ERP.
What is Costco EDI compliance?
Costco EDI compliance means every document you send matches the specification for your account: the right documents, sent on time, with the required fields filled correctly and data that agrees with the order and the shipment. In practice that means correct item numbers, an 856 that describes what actually shipped and an 810 that bills for that shipment, checked before go-live and watched afterwards.
What ERP system does Costco use, and does ours need to match it?
Your ERP does not need to match anything on Costco's side. A Costco Wholesale supplier exchanges X12 documents through SPS Commerce, so what matters is that your own system can read the 850 and produce the 855, 856 and 810 in the format Costco specifies. Any ERP that can do that, or that can be extended to, will work.
