Trace and Simulator

Use the simulator to build a controlled setup request. Use the trace viewer to follow a real request by correlation ID. Together they show whether a failure happened during authentication, setup, cart return, mapping or document delivery.

Build a simulator request

Open Punchout > Punchout Simulator and choose OCI or cXML. Use a configured buyer profile and a privacy-safe test customer in the local or buyer-provided sandbox.

cXML PunchOut simulator overview with the Cedarstone buyer, reserved example return endpoint and sender identity

The request section keeps the stored shared secret masked while exposing the sender identity and the fictional BuyerCookie used to correlate the later cart return:

cXML simulator request fields with the Cedarstone identity, masked shared secret and fictional BuyerCookie

The same page can launch an OCI session with its own buyer identity and credentials:

OCI PunchOut simulator overview with the Cedarstone buyer, reserved example return endpoint and masked password

For product-specific operations, the selected profile fixes the OCI version and the form requires the external product identifier expected by that profile:

OCI simulator DETAIL request with OCI 5.0, masked password and a sample external product identifier

The simulator requires a buyer profile. Selecting it fills the matching protocol, Store view and stored identity values, then updates the expanded technical preview automatically. For OCI profiles, the form also shows the profile-owned OCI version and the product identifier required by DETAIL or DETAILADD. Currency, tax mode and request signing come from the selected Store-view configuration rather than duplicate simulator fields.

The simulator can:

  • build the protocol request from entered fields;
  • show the target endpoint and technical payload preview;
  • generate a cURL example;
  • probe the return URL with the same URL-safety policy used by PunchOut;
  • open a storefront session after a successful setup.

Open Shop Session keeps the Admin simulator open and launches the mapped storefront in a separate tab. For cXML it sends a standards-compliant PunchOutSetupRequest, reads the StartPage/URL from Magento's response and opens that URL. A fictional opaque BuyerCookie should still be treated as integration data and kept out of public screenshots when it resembles a real customer's identifier.

Do not paste a production shared secret into screenshots, tickets or documentation. A masked admin field proves that a value exists; it does not prove the other system uses the same value.

Read a trace

Open Punchout Trace and filter by correlation ID. One setup and its later actions use the same correlation value, which is more reliable than searching by time alone.

PunchOut trace grid with successful cXML setup and transfer pairs plus an OCI login and transfer pair

The grid exports the selected trace metadata as CSV or Excel XML without requiring administrators to open the stored payload:

PunchOut trace grid with successful OCI rows and the CSV and Excel XML export menu open

A trace records direction, flow step, protocol, endpoint, HTTP status, duration, result and available customer context. Protocol, direction and result have typed filters in the grid. The stored payload is sanitized for passwords, shared secrets, tokens, BuyerCookie values and Magento form keys.

JSON export is useful when working with an integration partner, but review it before sharing. Sanitization reduces accidental disclosure; it is not a reason to make trace exports public.

A practical diagnosis sequence

  1. Find the first failed step for the correlation ID.
  2. Compare its store, buyer, protocol and endpoint with the intended profile.
  3. Read the public error_code and any nested security codes.
  4. Correct one cause, then generate a new semantic request and idempotency key.
  5. Confirm the return payload on the buyer side, not only the HTTP 200 from Magento.

Old traces are removed daily according to Trace Retention. Export evidence needed for a support case before that window closes, without including credentials.

PunchOut trace grid toolbar with the CSV and Excel XML export controls for selected trace rows