Every cXML request carries three credentials in its header.
<Header>
<From>
<Credential domain="NetworkID"><Identity>AN01000000001</Identity></Credential>
</From>
<To>
<Credential domain="DUNS"><Identity>123456789</Identity></Credential>
</To>
<Sender>
<Credential domain="NetworkID">
<Identity>AN01000000001</Identity>
<SharedSecret>correct-horse-battery-staple</SharedSecret>
</Credential>
<UserAgent>Buyer Procurement 2026</UserAgent>
</Sender>
</Header>
- From: the organisation the document is from (the buying company for a setup request).
- To: the organisation it is for (you, the supplier).
- Sender: the system actually transmitting it. With a network in the middle, the Sender may be the network rather than the buyer.
Domains and identities
The domain says what kind of identifier follows: NetworkID (a network ID such as an SAP Business Network ID), DUNS, or a private domain agreed between the parties. Several credentials can appear in one element; match the one you agreed on.
The shared secret
The SharedSecret inside the Sender credential is the password that proves the request is genuine. Treat it like any credential:
- one secret per customer (or per customer environment), never shared between customers;
- stored hashed or encrypted, never logged;
- rotated when people change or after any leak;
- compared in constant time.
How a supplier should authenticate a setup request
- Parse the header and find the Sender credential you expect for this customer.
- Check the shared secret.
- Check From maps to a known customer account, and To is you.
- Check deploymentMode matches the environment (
testrequests should not create production sessions). - Respond
401(or a 4xx status with a clear text) if anything fails.
Common mistakes
- Matching on the From credential but checking the secret on a different credential.
- Case or whitespace differences in identities.
- Test and production secrets swapped.
- The network ID changing after a buyer migrates accounts.