Receiving cXML OrderRequest Purchase Orders cleanly.

After the buyer approves the requisition, their ERP POSTs a cXML OrderRequest to your PO endpoint. Learn how to authenticate, parse ShipTo/lines, handle retries idempotently, and reply with cXML 200 OK.

BEFORE — Rejected by portal
<!-- DANGEROUS PO ENDPOINT MISTAKES -->
- Creating duplicate orders when Ariba retries a timed-out POST
- Returning HTTP 200 HTML/JSON instead of a valid cXML <Response><Status code="200">
- Failing to verify SharedSecret on OrderRequest (accepting spoofed orders!)
AFTER — Valid cXML / OCI
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
<cXML payloadID="resp-po-0412@maillonapp.fr" timestamp="2026-11-27T08:00:00Z">
  <Response>
    <Status code="200" text="OK">Purchase Order received cleanly</Status>
  </Response>
</cXML>

Root Causes & Permanent Fix

Missing idempotency on (buyer, po_number)

ERPs automatically retry OrderRequest POSTs on transient network blips. Deduplicate by (tenant_id, po_number) and return 200 OK on replay.

Returning JSON instead of cXML <Response>

Even if your HTTP status is 200, Ariba marks the PO as "Failed" unless the body is valid cXML with <Status code="200" text="OK"/>.

No fallback for SMEs without ERP EDI

With Maillon, every verified OrderRequest immediately triggers a structured email alert, a printable PDF PO, and Sage/EBP/Pennylane CSV export.

Try Maillon PunchOut Gateway in 1 click (pre-filled demo sandbox)

Explore a pre-filled B2B catalog, SAP Ariba cXML & SAP OCI 4.0 test buyers, live Simulator, and PO PDF/CSV exports — zero signup required.

Launch 1-click demo cXML / OCI Validator

Frequently Asked Questions

Do I need an ERP API to receive cXML Purchase Orders?

No! Maillon receives the cXML OrderRequest, replies 200 OK to Ariba/Coupa/Ivalua, emails your sales team, and gives you instant PDF + accounting CSV downloads.

Can I test an incoming cXML OrderRequest before going live?

Yes — Maillon's built-in Simulator can fire a real test OrderRequest in 1 click so you can inspect the generated PDF and CSV immediately.