The following DTD defines the Multiple Item Price and Availability Submit document:
<!ELEMENT XML_MultiPriceAvailability_Submit ( Header , Detail ) > <!ELEMENT Header ( UserName , Password , TransControlID? , ResponseVersion? ) > <!ELEMENT UserName (#PCDATA) > <!ELEMENT Password (#PCDATA) > <!ELEMENT TransControlID (#PCDATA) > <!ELEMENT ResponseVersion (#PCDATA) > <!ELEMENT Detail ( LineInfo+ ) > <!ELEMENT LineInfo ( AssignedID? , OrderLevel? , RefIDQual , RefID ) > <!ELEMENT AssignedID (#PCDATA) > <!ELEMENT OrderLevel (#PCDATA) > <!ELEMENT RefIDQual (#PCDATA) > <!ELEMENT RefID (#PCDATA) >
<XML_MultiPriceAvailability_Submit> <Header> <UserName>INSERT_ID_HERE</UserName> <Password>INSERT_PASSWORD_HERE</Password> <ResponseVersion>1.0</ResponseVersion> </Header> <Detail> <LineInfo> <RefIDQual>VP</RefIDQual> <RefID>10803639</RefID> </LineInfo> <LineInfo> <RefIDQual>VP</RefIDQual> <RefID>10803638</RefID> </LineInfo> <LineInfo> <RefIDQual>VP</RefIDQual> <RefID>10544688</RefID> </LineInfo> </Detail> </XML_MultiPriceAvailability_Submit>
Note:
XML should be used as a supplement to the Product Catalog found on Tech Data’s
Web site. The Product Catalog
is also available via an EDI 832 transaction. XML should
not
be used for updating your entire electronic catalog database.
Tech Data reserves the right to restrict access to the XML service for customers
who do not use this service appropriately.
|
Element Name
|
Optional
Required |
Description
|
Data
Type |
Max Len
|
||||||||||||||||||||||||||||||||||||||||
Header | R | |||||||||||||||||||||||||||||||||||||||||||
UserName | R | EC logon ID assigned by Tech Data | A/N | Note 1 | ||||||||||||||||||||||||||||||||||||||||
Password | R | Password assigned by Tech Data | A/N | Note 1 | ||||||||||||||||||||||||||||||||||||||||
TransControlID | O | Unique tracking identifier assigned by the customer for each Price and Availability document submitted | A/N | 100 | ||||||||||||||||||||||||||||||||||||||||
ResponseVersion | O | Designates the Response DTD version that will be returned.
|
A/N | 20 | ||||||||||||||||||||||||||||||||||||||||
Detail | R | |||||||||||||||||||||||||||||||||||||||||||
LineInfo | R | Minimum of 1 per Price and Availability submit document is required, but multiple are allowed | ||||||||||||||||||||||||||||||||||||||||||
AssignedID | O | Unique tracking identifier assigned by the customer for each detail line (item) requested within the Price and Availability submit document | A/N | 100 | ||||||||||||||||||||||||||||||||||||||||
OrderLevel | O | This element is only used when Government or Education pricing is desired.
|
A | 2 | ||||||||||||||||||||||||||||||||||||||||
RefIDQual | R | Two character code identifying the part number type that was contained in the Price
and Availability submit document. It identifies the part number type that
is contained in the proceeding <RefID> element.
|
A | 2 | ||||||||||||||||||||||||||||||||||||||||
RefID | R | The item number | A/N | 20 |
The actual maximum length is not documented. Include on each XML document submitted the UserName and Password values assigned by your Master/Admin user. |
<!ELEMENT XML_MultiPriceAvailability_Response ( Header , Detail , Summary ) > <!ELEMENT Header ( TransControlID? , ResponseVersion? ) > <!ELEMENT TransControlID (#PCDATA) > <!ELEMENT ResponseVersion (#PCDATA) > <!ELEMENT Detail ( LineInfo+ ) > <!ELEMENT LineInfo ( AssignedID? , RefIDQual1? , RefID1? , RefIDQual2? , RefID2? , RefIDQual4? , RefID4? , ProductDesc? , PriceIDCode1? , UnitPrice1? , PriceIDCode2? , UnitPrice2? , PromotedPricePerUnit? , PromoEndDate? , RequiredEndUserInfo? , RequiredLicenseInfo? , PromoAppliedInd? , ProductWeight? , ItemStatus? , CorporateAvailability? , ErrorInfo* ) > <!ELEMENT AssignedID (#PCDATA) > <!ELEMENT RefIDQual1 (#PCDATA) > <!ELEMENT RefID1 (#PCDATA) > <!ELEMENT RefIDQual2 (#PCDATA) > <!ELEMENT RefID2 (#PCDATA) > <!ELEMENT RefIDQual4 (#PCDATA) > <!ELEMENT RefID4 (#PCDATA) > <!ELEMENT ProductDesc (#PCDATA) > <!ELEMENT PriceIDCode1 (#PCDATA) > <!ELEMENT UnitPrice1 (#PCDATA) > <!ELEMENT PriceIDCode2 (#PCDATA) > <!ELEMENT UnitPrice2 (#PCDATA) > <!ELEMENT PromotedPricePerUnit (#PCDATA) > <!ELEMENT PromoEndDate (#PCDATA) > <!ELEMENT RequiredEndUserInfo (#PCDATA) > <!ELEMENT RequiredLicenseInfo (#PCDATA) > <!ELEMENT PromoAppliedInd (#PCDATA) > <!ELEMENT ProductWeight (#PCDATA) > <!ELEMENT ItemStatus (#PCDATA) > <!ELEMENT CorporateAvailability (#PCDATA) > <!ELEMENT ErrorInfo ( RefIDQual3 , RefID3 , ErrorDesc ) > <!ELEMENT RefIDQual3 (#PCDATA) > <!ELEMENT RefID3 (#PCDATA) > <!ELEMENT ErrorDesc (#PCDATA) >
<XML_MultiPriceAvailability_Response> <Header> <TransControlID /> <ResponseVersion>1.0</ResponseVersion> </Header> <Detail> <LineInfo> <RefIDQual1>VP</RefIDQual1> <RefID1>10803639</RefID1> <RefIDQual2>MG</RefIDQual2> <RefID2>MDREX56WHT</RefID2> <RefIDQual4>UP</RefIDQual4> <RefID4>027242755031</RefID4> <ProductDesc>MDRE EAR BUDS</ProductDesc> <PriceIDCode1>CON</PriceIDCode1> <UnitPrice1>$7.61</UnitPrice1> <PriceIDCode2>MSR</PriceIDCode2> <UnitPrice2>$9.99</UnitPrice2> <PromotedPricePerUnit>$7.61</PromotedPricePerUnit> <PromoEndDate /> <RequiredEndUserInfo>N</RequiredEndUserInfo> <RequiredLicenseInfo>N</RequiredLicenseInfo> <PromoAppliedInd>N</PromoAppliedInd> <ProductWeight>.180</ProductWeight> <ItemStatus>ACTIVE</ItemStatus> <CorporateAvailability>62</CorporateAvailability> </LineInfo> <LineInfo> <RefIDQual1>VP</RefIDQual1> <RefID1>10803638</RefID1> <RefIDQual2>MG</RefIDQual2> <RefID2>MDREX40LPBLU</RefID2> <RefIDQual4>UP</RefIDQual4> <RefID4>027242801929</RefID4> <ProductDesc>MDRE EAR BUDS</ProductDesc> <PriceIDCode1>CON</PriceIDCode1> <UnitPrice1>$7.61</UnitPrice1> <PriceIDCode2>MSR</PriceIDCode2> <UnitPrice2>$9.99</UnitPrice2> <PromotedPricePerUnit>$7.61</PromotedPricePerUnit> <PromoEndDate /> <RequiredEndUserInfo>N</RequiredEndUserInfo> <RequiredLicenseInfo>N</RequiredLicenseInfo> <PromoAppliedInd>N</PromoAppliedInd> <ProductWeight>.180</ProductWeight> <ItemStatus>ACTIVE</ItemStatus> <CorporateAvailability>102</CorporateAvailability> </LineInfo> <LineInfo> <RefIDQual1>VP</RefIDQual1> <RefID1>10544688</RefID1> <RefIDQual2>MG</RefIDQual2> <RefID2>STSF3000</RefID2> <RefIDQual4>UP</RefIDQual4> <RefID4>855309777302</RefID4> <ProductDesc>SOUND FORGE 10 SEMINAR SERIES NTSC</ProductDesc> <PriceIDCode1>CON</PriceIDCode1> <UnitPrice1>$63.62</UnitPrice1> <PriceIDCode2>MSR</PriceIDCode2> <UnitPrice2>$79.95</UnitPrice2> <PromotedPricePerUnit>$63.62</PromotedPricePerUnit> <PromoEndDate /> <RequiredEndUserInfo>N</RequiredEndUserInfo> <RequiredLicenseInfo>N</RequiredLicenseInfo> <PromoAppliedInd>N</PromoAppliedInd> <ProductWeight>.160</ProductWeight> <ItemStatus>ACTIVE</ItemStatus> <CorporateAvailability>56</CorporateAvailability> </LineInfo> </Detail> </XML_MultiPriceAvailability_Response>
Element Name
|
Optional
Required |
Description
|
Data
Type |
Max Len
|
||||||||||
Header | ||||||||||||||
TransControlID | O | Unique tracking identifier assigned by the customer for each Price and Availability submit document submitted. The content of the element sent by the customer within the XML document is returned as is to the customer within the Response document. The primary function of these types of elements is for tracking purposes. | A/N | 100 | ||||||||||
ResponseVersion | O | Designates the Response DTD version | A/N | 20 | ||||||||||
Detail | ||||||||||||||
LineInfo | R | For each item number (<RefID>) submitted, one LineInfo node will be returned | ||||||||||||
AssignedID | O | Unique tracking identifier assigned by the customer for each detail line (item) requested within the Price and Availability document. The content of the element sent by the customer within the XML message is returned as is to the customer within the Response document. The purpose of this element is for tracking purposes. | A/N | 100 | ||||||||||
RefIDQual1 | O | Two character code identifying the part number type that was contained in the Price
and Availability submit document. It identifies the part number type that
is contained in the following <RefID1> element.
|
A | 2 | ||||||||||
RefID1 | O | The item number | A/N | 20 | ||||||||||
RefIDQual2 | O | Two character code identifying the part number type that was contained in the Price
and Availability submit document. It identifies the part number type that
is contained in the following <RefID2> element.
|
A | 2 | ||||||||||
RefID2 | O | This element will contain the manufacturer’s part number when preceded by a <RefIDQual2> value of ‘MG’ | A/N | 20 | ||||||||||
RefIDQual4 | O | Two character code identifying the part number type that was contained in the Price
and Availability submit document. It identifies the part number type that
is contained in the following <RefID4> element.
|
A | 2 | ||||||||||
RefID4 | O | Alternate part number for which an availability request is being submitted. |
A/N | 20 | ||||||||||
ProductDesc | O | Description of requested item | A/N | 50 | ||||||||||
PriceIDCode1 | O | A fixed value of ‘CON’ | A | 3 | ||||||||||
UnitPrice1 | O | The customer’s base price | N | 15(2) | ||||||||||
PriceIDCode2 | O | A fixed value of ‘MSR’ | A | 3 | ||||||||||
UnitPrice2 | O | Manufacturer’s Suggested Retail Price | N | 15(2) | ||||||||||
PromotedPricePerUnit | O | The price of one of the items after the promotion has been applied | N | 15(2) | ||||||||||
PromoEndDate | O | The last date the promotion is available. Promotions are available until the expiration date or while supplies last. | N | 10 | ||||||||||
RequiredEndUserInfo | O | A Y/N value which indicates if end user information would be required or not when
an order for this item is submitted. This element is ALWAYS populated.
|
A | 1 | ||||||||||
RequiredLicenseInfo | O | A Y/N value which indicates if end user license information would be required or
not when an order for this item is submitted.
|
A | 1 | ||||||||||
PromoAppliedInd | O | A Y/N value which indicates whether or not promotions were applied |
A | 1 | ||||||||||
ProductWeight | O | Weight of the requested item |
N | 9 | ||||||||||
ItemStatus | O | Tech Data status of the requested item. Possible values include:
|
A | 14 | ||||||||||
CorporateAvailability | O | Corporate availability across all warehouses. | N | 15 | ||||||||||
ErrorInfo | ||||||||||||||
RefIDQual3 | O | A fixed value of ‘1Q’ | A/N | 2 | ||||||||||
RefID3 | O | A fixed value of ‘0’ | N | 1 | ||||||||||
ErrorDesc | O | Error description | A/N | 250 |
If Buyer Part numbers are to be submitted, contact your Tech Data Sales team to have your Buyer Part number to Tech Data Item number cross-reference established on our system. |
©2015 Tech Data Corporation. All Rights Reserved. | Tech Data proprietary and confidential |