cXML status codes for punchout and orders

Which status to return, and when.

cXML and OCI reference Reviewed Nov 27, 2026

cXML responses carry a Status with a numeric code based on HTTP conventions:

CodeTextUse
200OKRequest processed (or accepted for processing)
201AcceptedAccepted; processing continues asynchronously
204No ContentProcessed, nothing to return
400Bad RequestInvalid or unparseable document, missing required data
401UnauthorizedCredentials or shared secret wrong
403ForbiddenAuthenticated but not allowed (for example an unsupported operation for this customer)
406Not AcceptableThe request cannot be accepted as sent (for example an unsupported document)
409ConflictConflicts with current state (for example a duplicate order)
500Internal Server ErrorTemporary failure on your side; the sender may retry

Always put a human-readable explanation in the Status text or content: it is what support teams on both sides will read first. Distinguish 4xx (do not retry unchanged) from 5xx (retry later).