Code list

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

  1. A system receives a cXML Request — a PunchOutSetupRequest, OrderRequest, ShipNoticeRequest or InvoiceDetailRequest — and answers in the same HTTP connection with a cXML Response.
  2. The Response contains a Status with a required code and text, and optionally a human-readable explanation as element content.
  3. 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.
  4. 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

CodeUsageMeaning
200 OKRequiredThe receiver processed the request or delivered it to its final recipient. The response may still carry application-level warnings.
201 AcceptedOptionalAccepted for forwarding by an intermediate hub, or accepted by the destination but not yet examined. Further status updates are expected.
204 No ContentOptionalThe 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.
280ConditionalForwarded by an intermediate hub over a reliable transport; at least one more status update should follow.
281ConditionalForwarded by an intermediate hub over an unreliable transport such as email; missing status updates are not necessarily a problem.
400 Bad RequestRequiredThe request parsed but the receiver will not accept it, for example a missing required value or an unknown operation.
401 UnauthorizedRequiredThe credentials in the Sender element were not recognised — usually a wrong or out-of-date shared secret.
402 Payment RequiredOptionalThe request must include a complete Payment element.
403 ForbiddenOptionalThe sender is known but does not have permission for this request.
406 Not AcceptableOptionalThe receiver will not accept the request, probably because it failed to parse.
409 ConflictOptionalThe receiver’s current state prevented the operation. An identical request is unlikely to succeed unless something else changes first.
412 Precondition FailedOptionalA precondition was not met, for example a PunchOut edit for a session the receiver does not have.
417 Expectation FailedOptionalThe 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 ImplementedOptionalThe receiver does not support this request type or operation.
475 Signature RequiredConditionalThe receiver will only accept the document with a digital signature.
500 Internal Server ErrorRequiredThe receiver failed to complete the request. The sender may retry.
550 Unable to reach cXML serverConditionalAn intermediate hub could not reach the next server in the chain, for example because the supplier’s site is down.
551 Unable to forward requestConditionalAn intermediate hub could not forward the request because of a supplier configuration problem, such as failed authentication at the next hop.
560 Temporary server errorOptionalThe receiver is temporarily unavailable, for example for maintenance. Retry later.

Mistakes that get it rejected

Putting the outcome only in the HTTP statusBuyer systems read 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.
Returning 200 for something you did not acceptA 200 tells the sender the document is delivered and will not be retried. If you could not store or process it, return a 4xx or 5xx so the problem is visible.
Using 500 for bad input5xx codes invite retries. A malformed or unauthorised request returned as 500 is retried unchanged and fails again; use 400 or 401.
Empty explanationsThe element content of 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