Troubleshooting

The buyer’s setup request times out

The buyer reports a timeout. Your logs show the request arriving and being handled successfully, which makes the two accounts look irreconcilable.

Short answer

Buyer platforms allow a short window for the setup response — often under thirty seconds and sometimes ten. Everything you do synchronously inside that handler counts against it, including building a catalogue, warming a cache or calling your ERP for pricing. The handler should do almost nothing: mint a session, return a URL, and defer the rest to when the shopper actually lands.

Causes, most likely first

Ordered by how often each one turns out to be the culprit, not by how interesting it is. Work down the list.

  1. Catalogue or pricing work runs inside the setup handler

    How to confirm: Your handler calls an ERP, a pricing service or a search index before responding. It is fast in development against a small dataset and slow against a real one.

    Fix: Return the StartPage URL immediately and do the work when the shopper opens it. The shopper tolerates a loading state; the buyer’s timeout does not.

  2. Cold starts

    How to confirm: The first request after a quiet period fails and the next few succeed. Serverless platforms and containers that scale to zero both produce this, and it will reliably hit a buyer testing first thing in the morning.

    Fix: Use provisioned concurrency, a minimum instance count, or a keep-warm ping. A punchout endpoint is low traffic and high stakes, which is the worst combination for scale-to-zero.

  3. A synchronous call to a slow dependency

    How to confirm: Response time tracks a downstream system — a tax service, an availability check, a legacy ERP with no connection pool.

    Fix: Move it off the critical path. If a value genuinely must be resolved before the session starts, cache it and tolerate it being slightly stale.

  4. The buyer is retrying and compounding the load

    How to confirm: Your logs show several identical requests seconds apart, each handled, each too late. The retries are a symptom here and they also make the original problem worse.

    Fix: Fix the latency. Deduplicating the retries hides the symptom without helping the shopper, who is still waiting.

  5. Connection setup rather than processing

    How to confirm: Time is spent before your application is reached — slow DNS, a full TLS handshake on every request, or a cross-region hop between the buyer and your endpoint.

    Fix: Enable keep-alive, check your DNS resolution time, and host the endpoint in a region near the buyer network rather than near your office.

If it is not on your side

Ask the buyer what their timeout value is. It is a specific number their administrator knows, and it converts a vague performance discussion into a budget you can engineer against.

Check the document itself

Before chasing “The buyer’s setup request times out” further, paste the cXML or OCI payload into our free tester. It runs in your browser and reports the structural problems buyers reject on. The interactive demo plays the whole round trip from the buyer's seat.

Open the tester Play the demo

Related questions

How fast should a setup response be?

Comfortably under two seconds. That is not a performance target so much as headroom — the gap between two seconds and the buyer’s limit is what absorbs a slow day without anybody noticing.

Can we return a holding page while we prepare the session?

Yes, and that is the intended pattern. The setup response only has to hand back a URL. What that URL does when the shopper opens it is entirely yours, including showing a loading state while the catalogue assembles.

Rather not be the one debugging this?

A free PunchOut shop runs the PunchOut round trip for you: upload from Excel, test it, invite your buyer.

Start free Send us the error