PunchOut Authentication: A Supplier Guide to Accounts and Sessions

A PunchOut connection can recognise a valid request and still show the wrong customer account. It can open the correct catalogue and then lose the shopping session before the basket returns. These are different problems, even though a buyer may describe both as a login issue.
For a supplier, authentication planning therefore needs to cover more than exchanging a password. Your team must establish who sent the request, which commercial account it belongs to, what the shopper can access, and how the session remains associated with the right basket. Clear boundaries make implementation reviews and support conversations considerably more useful.
This guide focuses on those decisions, particularly for cXML connections. It also explains where browser sessions, account permissions and ordinary store logins fit. The exact controls depend on the buyer, intermediary and supplier platform; use the guide to prepare requirements and acceptance evidence rather than assuming one configuration applies everywhere.
Separate authentication, account selection and permissions
Authentication establishes whether a request presents acceptable evidence of its claimed identity. Account selection determines which supplier customer record the connection should use. Authorisation determines the catalogue, prices and actions available through that record. A successful first step does not establish that the remaining decisions are correct.
For example, an organisation might have one procurement application and several buying entities. They could require separate supplier accounts, different contracted ranges or distinct currencies. A connection that recognises the procurement application must still apply the approved relationship between that request and the relevant commercial account.
Write these relationships down before configuration. Record the expected sender, buying organisation, supplier account and permitted catalogue. If a network or gateway sits between the buyer and supplier, identify what the supplier actually receives from that intermediary. Do not assume the original buyer directly supplies every credential visible at the supplier endpoint.
This is also why copying an existing integration can be misleading. Its technical endpoint may be reusable while its account rules are specific to another customer. The starting discussion for cXML PunchOut integration should establish both the message exchange and the commercial access it enables.
Understand the credentials in a cXML launch
A cXML setup request identifies parties through its header. The cXML Reference Guide defines the credential structure and describes authentication elements such as SharedSecret. Treat the relevant identity, credential domain and authentication information as a combination that must match the agreed connection configuration.
Teams should confirm the intended values with the party operating the sending system. An identity copied from a supplier registration screen may have a different purpose from the identity used by the integration. Record the field name and credential domain alongside the value, rather than sending a list of unexplained identifiers to a developer.
Intermediaries matter. In its PunchOut site development documentation, SAP explains a network-mediated flow in which the shared secret forwarded to the supplier differs from the customer’s own secret. That example illustrates why the actual route must be understood; it should not be generalised into a promise about every procurement product.
Keep test and production configurations distinct. Label endpoints, identities, credential owners and the environment they belong to. Agree who supplies a replacement secret and how each side confirms the change. A shared document can contain the field names and owners without also containing the sensitive values used to authenticate production traffic.
Map the authenticated relationship to the right account
Once a launch is accepted, the supplier application must choose the correct trading account. Make that an explicit mapping based on the trusted connection context and the buyer requirements agreed during onboarding. Avoid falling back to an unrestricted default account when a recognised sender supplies an unknown business-unit value.
An email address alone may be insufficient for commercial account selection. The same person could purchase for multiple entities, change departments or appear in both a public store account and a procurement relationship. Establish which attributes the buyer controls and which values the supplier relies on to select account permissions.
Where the buyer passes additional fields, document their meaning and how missing or unexpected values are handled. Ask whether a field is mandatory, whether it identifies an entity or a person, and whether multiple accounts can share it. The integration team should be able to explain the result of an incomplete request without guessing which customer account is safest to choose.
Test account boundaries using intentionally different approved catalogues or prices. A supplier team can then see whether account A’s launch exposes account B’s terms. Keep test data fictitious or sanitised. The objective is to prove isolation and correct commercial selection, not to distribute live customers’ confidential price lists among reviewers.
Keep BuyerCookie separate from browser login state
In cXML, BuyerCookie carries a value that the supplier returns so the procurement application can associate the result with its originating session. It is not the shopper’s ordinary website password. Preserve the supplied value as required by the interface instead of deriving an account identity or permanent customer record from its contents.
The word cookie can cause confusion here. A browser’s session cookie and the cXML BuyerCookie are different mechanisms with different responsibilities. The supplier application still needs its own correct session handling. A value carried in an integration message should not be treated as a substitute for a complete browser-session design.
Make concurrency part of the requirement. Two shoppers may use the same customer account simultaneously, and one shopper may open more than one procurement session. Your application must keep the basket and return context for each supported session together. Storing a single latest return context against the shared customer account invites one session to overwrite another.
Also distinguish a current shopping session from a longer-lived order relationship. An edited or inspected basket may involve another launch. Agree how supported operations find the appropriate basket without relying on one session value as a permanent identifier. If the issue is specifically a rejected returned basket, use the separate cart-return troubleshooting guide after confirming the account and session context.
Review the browser journey as its own part of the flow
The server can accept a setup request while the shopper’s browser fails to establish the intended store session. Trace the actual navigation: procurement application, any intermediary, supplier landing page, shopping pages and basket return. Record whether the supported experience uses a new window, a redirect or an embedded view.
Use the application’s established session framework and review its cookie settings in the context of that journey. The OWASP Session Management Cheat Sheet explains HTTPS, cookie attributes and server-side session expiry. These are general web application controls; they do not prove that a particular PunchOut implementation has been reviewed or certified.
Cross-site navigation deserves deliberate testing because cookie behaviour depends on the browser and the type of request. Do not resolve a failed shopping session by indiscriminately disabling browser protections or relaxing site-wide settings. Have the implementation owner identify the cause and select a supported configuration that preserves the intended protection boundaries.
Capture the supported browser conditions in acceptance evidence. Include the buyer’s normal desktop environment and any mobile purchasing experience actually in scope. A successful test performed while an administrator is already logged into the store may hide a problem that a fresh procurement shopper encounters. Repeat the journey without that unrelated store session.
Define expiry, restart and account-switching behaviour
Ask what should happen if the shopper pauses for a meeting or returns to an old tab. Agree how the supplier session expires, what message the shopper sees, and how purchasing restarts from the procurement application. Do not specify an arbitrary timeout simply because another customer used it; involve the application and security owners.
Decide whether an expired basket can be recovered and under which newly authenticated relationship. Recovery should not silently move a basket into another entity’s account. If recovery is unsupported, explain that clearly and provide an understandable restart path. A predictable recovery experience is more useful than an apparently convenient action that changes account context.
Account switching also needs an explicit rule. A normal eCommerce store might offer saved company accounts or a public login link. In a procurement session, those controls may conflict with the buyer relationship used to start shopping. Determine whether they should be restricted, redirected or handled through a supported separate flow.
Test the supplier’s logout action and the procurement application’s own session expiry independently. They belong to different systems and may not end together. The shopper should receive an accurate explanation when the return destination no longer accepts the session, rather than an assurance that a basket has been delivered when its receipt has not been confirmed.
Make support evidence useful without exposing credentials
A support request should identify the environment, approximate failure time, buyer connection, affected step and a correlation reference where available. Separate a request rejected before shopping from a browser login loop or wrong-account display. This classification directs the investigation to the relevant team before anyone starts resetting credentials unnecessarily.
Agree which diagnostic records can be shared and how they are sanitised. Remove authentication secrets and unnecessary personal or commercial information from examples sent to reviewers. A complete raw message is not automatically the best support attachment. Keep enough structure to explain the failure while protecting values that are unrelated to the investigation.
Use precise language when recording the outcome. Authentication rejected, account mapping missing and browser session expired are actionable descriptions. Login broken is only a starting observation. Record the correction, the scenario retested and the person who accepted it, so the same problem does not reappear as an undocumented configuration difference.
For credential changes, nominate owners on both sides and agree a controlled validation process. Confirm the intended environment, test the replacement through the normal flow, and document how obsolete access is removed. Do not confuse a password copied into a settings screen with evidence that production requests are using the new configuration successfully.
A worked example: two entities sharing a procurement system
Consider a fictional industrial supplier serving a customer group with two buying entities. Both use the same procurement system, but one has a maintenance catalogue and the other an office-supplies agreement. Initial testing accepts the connection credential and displays a catalogue, so the team labels authentication complete.
A second reviewer launches the other entity’s session and sees the first entity’s prices. The credential itself is not necessarily wrong. The supplier has mapped every accepted launch to the first trade account, ignoring the agreed entity selection. Correcting that mapping requires a commercial rule and supporting request information, rather than merely issuing another secret.
The team then opens both approved accounts concurrently. One returned basket contains the other session’s return context because the implementation stores it against the shared connection record. They change the session association and retest with distinct products in each basket. The evidence now shows which account shopped and which session received each returned basket.
This is an illustrative planning example, not a customer result. It demonstrates why the acceptance statement should describe the boundaries proved: accepted sender, correct account, isolated basket, supported browser journey and intended return context. A successful login screenshot establishes much less than that complete statement.
Build a focused authentication acceptance checklist
Prepare positive and negative cases together. Include a valid launch, incorrect credentials, an unknown account-mapping value, simultaneous sessions and an expired browser session. Expected rejection is a successful test when the input should not grant access. Document the user-facing result as well as the server’s response.
Add an account-isolation case that attempts an unsupported switch from the approved procurement account. Check that test credentials do not grant production catalogue access. Ask the responsible application team to review the implementation against its broader security requirements; a functional PunchOut acceptance exercise does not replace an application security assessment.
Use the wider PunchOut testing checklist to connect these cases to product selection and basket return. Keep purchase-order receipt as a separate acceptance stage. Authentication into a catalogue does not authorise fulfilment, demonstrate that a purchase order arrived, or establish how a later invoice will be handled.
Finally, retain the approved account map, environment record and named support owners after launch. Include review triggers such as a new buying entity, changed intermediary or altered login journey. During ongoing catalogue maintenance, verify that routine store changes have not weakened the account and session behaviour the buyer originally accepted.
Frequently asked questions
Is PunchOut authentication the same as a normal store login?
No. A PunchOut launch establishes a procurement connection and its account context, while an ordinary store login usually authenticates someone directly to the website. The implementation must define how that launch establishes an appropriate shopping session and which catalogue permissions apply. Existing website access alone does not prove the procurement relationship is configured correctly.
Is BuyerCookie a password?
No. In cXML it carries session context that must be returned to the originating procurement application as required by the interface. Keep it distinct from connection credentials, ordinary browser cookies and permanent customer identifiers. Preserve each supported session’s basket and return information without treating the value as an all-purpose login mechanism.
Can multiple shoppers use the same supplier account?
They may share a commercial account where the buyer’s requirements allow it, but their supported shopping sessions must remain isolated. Test concurrent launches with different basket contents and return contexts. The account identifies commercial terms; it should not become a single storage slot that lets one shopper overwrite another shopper’s session.
What should we check when a valid connection opens the wrong catalogue?
Review the mapping from the authenticated connection and agreed buyer attributes to the supplier trade account. Confirm the intended entity, catalogue and price list, then test account boundaries. Changing the secret may not address a mapping error. Use sanitised evidence and involve the commercial account owner alongside the technical team.
