PunchOutSetupRequest returns 403 Forbidden
The buyer reports their request was refused. Your application logs show nothing at all, or show the request arriving and succeeding while the buyer still sees a 403.
Check your application logs before you check anything else. A 401 means your code evaluated credentials and said no; a 403 usually means nothing of yours evaluated anything — an edge layer refused the request first. If the POST never reached your application, credentials are not the problem and changing them will not help.
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.
-
A WAF or bot filter is blocking the POST
How to confirm: Look in your WAF event log rather than your application log. A cXML POST — an XML body, from a datacentre IP, with no browser fingerprint — matches the managed XML-injection and bot rule groups that Cloudflare and AWS WAF enable by default.
Fix: Exempt the punchout endpoint path from the XML rule group and allow the buyer network’s published egress ranges. Narrow the exemption to that one path; do not disable the rule group globally.
-
Platform-level deployment protection is still on
How to confirm: Request the endpoint with curl from a machine outside your network. If you get a hosting platform’s own branded authentication page rather than your application’s response, that is what the buyer is hitting. Vercel, Netlify and staging password protection all behave this way.
Fix: Exempt the endpoint path, or make the deployment public. This one catches people the week they go live, because the protection was invisible while they tested from a logged-in browser.
-
IP allow-listing that the buyer has outgrown
How to confirm: It worked at go-live and failed later, with nothing changed on your side. Buyer networks publish egress ranges and those ranges change.
Fix: Authenticate on credentials rather than source IP. If policy requires an allow-list, subscribe to the buyer network’s published range notifications instead of copying the list once.
-
Mutual TLS is configured and no client certificate was presented
How to confirm: Your server or load balancer requires a client certificate. The connection fails before any cXML is read, and some stacks report that as 403 rather than a handshake error.
Fix: Either issue the buyer a client certificate deliberately as part of setup, or turn the requirement off for this endpoint. Do not leave it half-configured.
-
The request method or content type is being rejected
How to confirm: The endpoint route is configured for GET, or the server rejects text/xml. Some stacks answer 403 where 405 or 415 would be more honest.
Fix: Accept POST with text/xml and application/xml on the punchout endpoint.
If it is not on your side
Ask the buyer for the exact timestamp of a failed attempt and the source IP they sent from, then search your edge or CDN logs — not your application logs — for that pair. Either you find a block event, which tells you the rule, or you find nothing, which means the request never reached your infrastructure and the problem is in the URL they have stored.
Check the document itself
Before chasing “PunchOutSetupRequest returns 403 Forbidden” 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 demoRelated questions
How is a 403 different from a 401 here?
A 401 is an answer: your application read the credentials and rejected them. A 403 is usually a refusal to engage at all, emitted by a WAF, a load balancer or the hosting platform before your code runs. Working out which layer produced it is the whole diagnosis — debugging credentials against a WAF block wastes days.
It works from the buyer’s test tool but not from their platform. Why?
Those are different source IPs. A browser-based test tool comes from the tester’s office connection; the platform sends from its own datacentre range. If an allow-list or a bot rule is involved, one passes and the other does not.
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