Test a PunchOut connection in four stages, and do not move to the next until the current one passes. First, validate the documents themselves (the setup request, setup response and returned cart). Second, run the full round trip yourself against your own endpoint. Third, test in the buyer’s test environment: a test account with a “-T” ANID on SAP Ariba, a Coupa test instance, or an SAP quality system for OCI. Fourth, move to production with production credentials and watch the first live orders. Most failed tests are found in stage one or two, before the buyer has spent any time on them.
Stage 1: validate the documents
A PunchOut session is a short exchange of documents. In cXML, the buyer sends a PunchOutSetupRequest, you reply with a PunchOutSetupResponse containing a start URL, and at the end you send a PunchOutOrderMessage with the cart. In OCI, the buyer opens your catalogue with a HOOK_URL, and you post the cart back as NEW_ITEM fields.
Check each document’s structure before testing anything live. Paste it into the PunchOut tester and it will report structural problems in plain language: missing credentials, a cart wrapped in the wrong element, money without a currency, units written as “each” instead of EA, missing UNSPSC codes, and totals that do not add up. It runs in your browser, so nothing is uploaded, though redacting the shared secret first is still a good habit.
Structure is necessary but not sufficient. A document can be valid cXML and still be rejected by a buyer whose system requires a particular extrinsic field or unit of measure. The cXML reference shows what each document should contain.
Stage 2: self-test the round trip
Next, prove the full loop works with nobody else involved. A self-test should:
- Send a setup request to your endpoint with test credentials.
- Confirm your endpoint returns a success status and a start URL.
- Open the start URL and shop as the buyer would, with that buyer’s prices.
- Return the cart and inspect what comes back.
Your endpoint must be reachable from the public internet with a valid TLS certificate. Buyer systems cannot reach a localhost address or a self-signed certificate, which is a common reason a first test fails before it starts. See SSL certificate errors.
If you use our free PunchOut shop, the self-test is built in. You can run a cXML or OCI round trip, shop as your buyer would, send a cart and see exactly what their system would receive. Carts sent from the sandbox are marked as test orders. To see the sequence of documents without building anything, try the interactive demo.
Stage 3: test in the buyer’s environment
Once your side works, the buyer tests from their own system. Every major platform separates test from production, and you will usually have different credentials for each.
SAP Ariba
SAP Business Network (formerly Ariba Network) gives suppliers a separate test account. Its ANID is your production ANID with “-T” added at the end, so AN01234567890 becomes AN01234567890-T. SAP’s support FAQ states that test ANIDs carry the -T suffix, and that there are no fees for using a test supplier account.
The buyer configures your PunchOut catalogue against the test ANID, your test endpoint and the shared secret agreed for test. Test and production accounts are not synchronised automatically, so set up the test account’s configuration separately. A cXML message cannot cross between a test account and a production account; SAP documents an “Invalid Supplier Configuration” error for that case. If the buyer’s test fails with a credential error, check first that both sides are using the test identities. See ANID and SAP Ariba PunchOut.
Coupa
Coupa’s own supplier enablement guide describes the sequence. The buyer collects your cXML credentials and your list of units of measure, sets up the credentials once the supplier record and contract exist, tests PunchOut and the purchase order, then configures production using the production credentials you supply. Coupa warns that if a unit of measure in the returned cart does not exist in their Coupa instance, bringing the cart into Coupa will fail, so send your UOM list early. Coupa buyers usually test in a separate test instance first. See Coupa PunchOut.
SAP via OCI
Buyers on SAP SRM or SAP ERP using OCI normally configure your catalogue in a test or quality system before production. Ask which system they will test from, because the HOOK_URL and any fixed parameters will differ between the two. See OCI PunchOut and the OCI field reference.
Other platforms
Oracle, JAGGAER, Workday and others follow the same pattern: test credentials and a test environment first, production later. The platform guides cover each one.
What to check on a returned cart
When the buyer’s test cart lands in their system, check it with them line by line:
- Every line arrived. A missing line usually means a field the buyer requires was empty. See cart missing line items.
- Prices match the contract, in the right currency, with no zero-price lines.
- Units of measure are codes the buyer’s system recognises.
- Part numbers are the ones the buyer will use on the purchase order.
- Descriptions are complete and not cut off, which is a known OCI issue.
- Classification codes (usually UNSPSC) are present and valid.
- Totals equal the sum of the lines, including any tax or shipping lines the buyer allows.
- Edit and inspect work if the buyer uses them: reopening the cart from the requisition brings back the same items.
If purchase orders are in scope, the buyer will usually approve a test requisition so a test PO reaches you. Confirm you received it and that it matches the cart. If ship notices or invoices are in scope, test those next. They tend to take longer than PunchOut.
Moving to production
Production is a separate configuration, not a switch. Expect new credentials, a production endpoint URL and, on Ariba, your production ANID instead of the -T one. Agree a time for the change, then test one real order with a small value before the buyer opens the catalogue to all users.
Problems that only appear in production are usually configuration rather than code: the test credentials still in place, a different shared secret, a production URL that was never updated, or a firewall that allows the buyer’s test system but not their production one. PunchOut works in test but not production walks through the checks.
If testing stalls
Testing usually waits on the buyer’s queue, not on your build. Keep a short log of each test: date, what was sent, what came back, and who is waiting on whom. It shortens every conversation with the buyer’s enablement team. The troubleshooting index covers specific errors, and if you would rather not run the buyer’s testing yourself, our done-for-you service coordinates it for you.