SAP OCI: how the cart gets back into SAP.
OCI (Open Catalog Interface) is the PunchOut protocol of SAP systems. It is simpler than cXML: a URL call on the way in, an HTML form on the way back.
On this page
Way in: SAP opens your catalogue
The user clicks your catalogue in SAP. SAP calls your URL with parameters: often a username and password, and always the HOOK_URL, the address to return the cart to.
Way back: a form to the HOOK_URL
When the buyer confirms the cart, your catalogue posts an HTML form to the HOOK_URL it received. Each line is numbered: [1], [2], [3]…
- NEW_ITEM-DESCRIPTION[n]
- The description, 40 characters at most.
- NEW_ITEM-QUANTITY[n]
- The quantity ordered.
- NEW_ITEM-UNIT[n]
- The unit, as an ISO or UN/CEFACT code depending on the customer's SAP setup.
- NEW_ITEM-PRICE[n] and -CURRENCY[n]
- Net unit price and currency (EUR).
- NEW_ITEM-VENDORMAT[n]
- Your product reference.
- NEW_ITEM-MATGROUP[n]
- The material group: a UNSPSC code or the customer's own code.
The pitfalls
- Returning the cart anywhere other than the HOOK_URL received in the request.
- A decimal comma in the price.
- A description cut mid-word: prepare short descriptions.
- The material group: ask the customer whether they expect UNSPSC or their own codes.
Frequently asked questions
OCI 4.0 or 5.0?
Same principle. Ask the customer for the version; Maillon and our validator handle both.
Can orders come in through OCI?
No: OCI only covers the catalogue and the cart. Purchase orders then arrive through another channel (email, EDI, cXML) chosen by the customer.
How do I test without SAP?
With a simulator that plays SAP: it calls your catalogue with a test HOOK_URL and shows the cart received. Our validator also checks a pasted OCI form.