Custom and headless stores give full control. The cleanest design is usually a small punchout service next to the store: it speaks cXML and OCI, creates sessions, and talks to the store and ERP through their APIs.
Ways to add punchout
- Punchout service handles setup requests, authentication and per-customer configuration.
- The front-end receives a one-time session token and switches into punchout mode.
- A cart API returns cart data; the service builds the PunchOutOrderMessage or OCI form.
- An order endpoint receives OrderRequests and creates orders in the ERP.
What to watch
- Keep protocol code out of the store front-end.
- Make every customer setting configuration, not code.
- Automate a full punchout round trip in your test pipeline.