BuyerCookie
BuyerCookie is an opaque session token the procurement system sends in a cXML PunchOutSetupRequest, which the supplier must return unchanged in the PunchOutOrderMessage so the cart can be matched to the right session.
A procurement system can have many PunchOut sessions open at once, across many users and suppliers. The cXML DTD describes BuyerCookie as information that is opaque to the supplier’s site but must be returned for all later PunchOut operations, and as unique per PunchOut session. It is how the buyer’s system knows which open requisition an incoming cart belongs to.
Despite the name, it has nothing to do with browser cookies. It is an element in the XML, not an HTTP header, and your site never sets or reads it in the browser. Your endpoint stores it alongside the return URL when the setup request arrives, and writes it back as the first child of the PunchOutOrderMessage.
Treat it as a string you do not understand. Trimming whitespace, changing case, URL-encoding it, or generating your own value means the procurement system cannot match the cart, and the buyer sees an error or an empty requisition after a successful-looking checkout. Store the exact value and send the exact value back.
<PunchOutOrderMessage>
<BuyerCookie>8f3c2a91-session-4471</BuyerCookie>
<PunchOutOrderMessageHeader operationAllowed="edit">
<Total><Money currency="EUR">89.00</Money></Total>
</PunchOutOrderMessageHeader>
</PunchOutOrderMessage> Go deeper
Related terms
Has a buyer asked you for PunchOut?
Reading up on BuyerCookie because of it? A free PunchOut shop gets you a catalogue your buyer can test: upload it from Excel, run a cXML or OCI round trip yourself and invite them. Free until they go live.
Start free Talk to us instead