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.

See your catalogue in the SAP Ariba simulator, no sign-up.

The pre-filled demo shows a B2B catalogue, two test buyers (cXML and SAP OCI 4.0), the simulator and a purchase order as PDF and CSV.

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.