cXML status codes: what each one means
Every cXML response carries a Status element with a numeric code and a short text. The codes borrow from HTTP but are not HTTP status codes: they describe what happened to the cXML document, and they travel inside the XML.
Where it fits
- A system receives a cXML
Request— a PunchOutSetupRequest, OrderRequest, ShipNoticeRequest or InvoiceDetailRequest — and answers in the same HTTP connection with a cXMLResponse. - The
Responsecontains aStatuswith a requiredcodeandtext, and optionally a human-readable explanation as element content. - The sender reads the outcome from
Status/@code. Codes in the 2xx range mean success, 4xx mean the request was at fault and should not be retried unchanged, and 5xx mean a failure on the receiving side that may succeed on retry. - Messages such as the PunchOutOrderMessage may also carry a
Status; when it is absent,code="200" text="OK"is implied.
A PunchOutSetupResponse rejecting a request whose shared secret does not match, as QuickPunchOut returns it.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.061/cXML.dtd">
<cXML payloadID="1793610901.c41e07@punchout.example.com" timestamp="2026-11-02T08:15:01.087Z" xml:lang="en-US">
<Response>
<Status code="401" text="Unauthorized">The shared secret doesn't match. Ask the supplier for the current one.</Status>
</Response>
</cXML> The codes
| Code | Usage | Meaning |
|---|---|---|
200 OK | Required | The receiver processed the request or delivered it to its final recipient. The response may still carry application-level warnings. |
201 Accepted | Optional | Accepted for forwarding by an intermediate hub, or accepted by the destination but not yet examined. Further status updates are expected. |
204 No Content | Optional | The request was valid but the receiver has no data of the requested type to return. In PunchOut, it means the session ended without changing the cart. |
280 | Conditional | Forwarded by an intermediate hub over a reliable transport; at least one more status update should follow. |
281 | Conditional | Forwarded by an intermediate hub over an unreliable transport such as email; missing status updates are not necessarily a problem. |
400 Bad Request | Required | The request parsed but the receiver will not accept it, for example a missing required value or an unknown operation. |
401 Unauthorized | Required | The credentials in the Sender element were not recognised — usually a wrong or out-of-date shared secret. |
402 Payment Required | Optional | The request must include a complete Payment element. |
403 Forbidden | Optional | The sender is known but does not have permission for this request. |
406 Not Acceptable | Optional | The receiver will not accept the request, probably because it failed to parse. |
409 Conflict | Optional | The receiver’s current state prevented the operation. An identical request is unlikely to succeed unless something else changes first. |
412 Precondition Failed | Optional | A precondition was not met, for example a PunchOut edit for a session the receiver does not have. |
417 Expectation Failed | Optional | The request implied a resource condition that was not met, such as a reference to an unknown supplier. Some buyer systems use it for document-level validation failures. |
450 Not Implemented | Optional | The receiver does not support this request type or operation. |
475 Signature Required | Conditional | The receiver will only accept the document with a digital signature. |
500 Internal Server Error | Required | The receiver failed to complete the request. The sender may retry. |
550 Unable to reach cXML server | Conditional | An intermediate hub could not reach the next server in the chain, for example because the supplier’s site is down. |
551 Unable to forward request | Conditional | An intermediate hub could not forward the request because of a supplier configuration problem, such as failed authentication at the next hop. |
560 Temporary server error | Optional | The receiver is temporarily unavailable, for example for maintenance. Retry later. |
Mistakes that get it rejected
Status/@code. An HTTP 401 with an HTML body gives them nothing to show; return a cXML document with the cXML code. QuickPunchOut answers HTTP 200 and puts the real outcome in Status.Status is often the only clue a buyer’s support team gets. "Error" is useless; say which value was wrong.Have a cXML status codes that a buyer rejected? Paste it into the free cXML and OCI tester; it checks structure in your browser.
cXML status codes questions
Are cXML status codes the same as HTTP status codes?
They borrow the numbers and names of HTTP codes where the meaning overlaps, and add cXML-specific ones such as 280, 281, 450, 475 to 477, 550, 551 and 560. They are carried in the XML, separately from the HTTP response status.
Which codes should a supplier return to a PunchOutSetupRequest?
200 with a StartPage on success, 400 for a request you can parse but will not accept, 401 for a shared secret or identity you do not recognise, and 500 if your own system fails.
Where is the official list?
In the cXML Reference Guide, in the section on Response status codes, available from cxml.org. Network operators such as SAP Business Network and Coupa also publish the codes they use and the errors behind them.
Rather not hand-build this?
The free PunchOut shop handles the cXML status codes side of the round trip for you: upload your catalogue from Excel, test a cXML or OCI round trip and invite your buyer. Free until your buyer goes live.
Start free Send us the document