The cXML Header validates who is sending the document and who it's being sent to.
- The Header section identifies the Supplier Store
- The To section identifies the Community
- The Sender section identifies the Supplier Integration User
Each section has a Credential domain attribute and Identity.
- The domain attribute for From and To Credentials can be "DUNS", "unimarket-id" or "unimarket-code".
- The domain attribute for the Sender Credential can be "DUNS" or "unimarket-user"
Unimarket will match the Identity credentials supplied with the Supplier and the Customer.
If using a DUNS number this will need to match exactly what has been loaded for the Supplier or Customer.
The unimarket-id, unimarket-code and unimarket-user credentials are supplied by Unimarket.
Example Header (Using DUNS)
<Header>
<From>
<Credential domain="DUNS">
<Identity>1234567890</Identity>
</Credential>
</From>
<To>
<Credential domain="DUNS">
<Identity>0987654321</Identity>
</Credential>
</To>
<Sender>
<Credential domain="DUNS">
<Identity>1234567890</Identity>
<SharedSecret>Super Secret Password</SharedSecret>
</Credential>
<UserAgent>Suppliers Software System</UserAgent>
</Sender>
</Header>
Example Header (Using Unimarket Credentials)
<Header>
<From>
<Credential domain="unimarket-id">
<Identity>82d1aa66-095a-45a8-b8f1-20778aac4ed8</Identity>
</Credential>
</From>
<To>
<Credential domain="unimarket-code">
<Identity>miketest</Identity>
</Credential>
</To>
<Sender>
<Credential domain="unimarket-user">
<Identity>fd36b3b9-ad5a-4fa6-aedd-a826b7b3d87b</Identity>
<SharedSecret>Super Secret Password</SharedSecret>
</Credential>
<UserAgent>Suppliers Software System</UserAgent>
</Sender>
</Header>
Any combination of "DUNS", "unimarket-id", "unimarket-code" or "unimarket-user" can be used for the credential domains.
See the articles below for additional information on Invoice Integration:
Invoice Integration - Overview
Invoice Integration - cXML Request
Invoice Integration - InvoiceDetailSummary
Invoice Integration - InvoiceDetailOrder
Invoice Integration - Discount at Header Level
Invoice Integration - Shipping at Header Level
Invoice Integration - Shipping at Line Level
Invoice Integration - Shipping & Special Handling at Header Level
Invoice Integration - Shipping & Special Handling at Line Level