<XML_InvoiceDetailByPO_Submit>
<Header>
<UserName>user</UserName>
<Password>password</Password>
</Header>
<Detail>
<EDIInclusion>O</EDIInclusion>
<POInfo>
<PONbr>ORDER-TEST-1234</PONbr>
<PONbr>ORDER-TEST-9876</PONbr>
</POInfo>
</Detail>
</XML_InvoiceDetailByPO_Submit>
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 | ||||||
ResponseVersion | O | Designates the Response DTD version that will be
returned.
|
A/N | 20 | ||||||
Detail | R | |||||||||
EDIInclusion | O |
Specifies if invoices from EDI orders are to be in the response document,
the default is O - XML orders only.
If this tag is absent, or it contains no value, the behavior will be the same as O above. |
A | 1 | ||||||
POInfo | R | Must contain at least one <PONbr> child node | ||||||||
PONbr | R | Your PO number which you want Invoice data on | A/N | 25 |
The actual maximum length is not documented. Include on each XML message submitted the UserName and Password values assigned by your Master/Admin user. |
Header ,
Detail ) >
<!ELEMENT Header (
ResponseVersion? ) >
<!ELEMENT
ResponseVersion (#PCDATA) >
<!ELEMENT Detail (
OrderInfo* ) >
<!ELEMENT OrderInfo (
PONbr?,
EndUserPONbr?,
OrderNbr?,
OrderDate?,
EstShipDate?,
OrderStatus?,
InvoiceNbr?,
ErrorMsg?,
ContainerInfo* ) >
<!ELEMENT
PONbr
(#PCDATA) >
<!ELEMENT EndUserPONbr (#PCDATA)
>
<!ELEMENT
OrderNbr
(#PCDATA) >
<!ELEMENT
OrderDate (#PCDATA)
>
<!ELEMENT EstShipDate
(#PCDATA) >
<!ELEMENT OrderStatus
(#PCDATA) >
<!ELEMENT InvoiceNbr
(#PCDATA) >
<!ELEMENT
ErrorMsg
(#PCDATA) >
<!ELEMENT ContainerInfo (
ContainerID,
ShipToName,
ShipToAddr1,
ShipToAddr2,
ShipToAddr3,
ShipToCity,
ShipToStateProv,
ShipToPostalCode,
DateShipped,
DateInvoiced,
Weight,
WhseCode,
WhseDesc,
ShipViaDesc,
ContainerValue,
HandlingCharge,
CODCharge,
DebitCredit,
NetFreightCharge,
TaxCharge,
StateFee,
TotalOrderValue,
NbrOfItems,
ItemInfo+ ) >
<!ELEMENT
ContainerID
(#PCDATA) >
<!ELEMENT
ShipToName
(#PCDATA) >
<!ELEMENT ShipToAddr1
(#PCDATA) >
<!ELEMENT
ShipToAddr2
(#PCDATA) >
<!ELEMENT
ShipToAddr3
(#PCDATA) >
<!ELEMENT
ShipToCity
(#PCDATA) >
<!ELEMENT ShipToStateProv (#PCDATA)
>
<!ELEMENT ShipToPostalCode (#PCDATA)
>
<!ELEMENT
DateShipped
(#PCDATA) >
<!ELEMENT
DateInvoiced (#PCDATA)
>
<!ELEMENT
Weight
(#PCDATA) >
<!ELEMENT
WhseCode
(#PCDATA) >
<!ELEMENT
WhseDesc (#PCDATA) >
<!ELEMENT
ShipViaDesc
(#PCDATA) >
<!ELEMENT ContainerValue
(#PCDATA) >
<!ELEMENT HandlingCharge
(#PCDATA) >
<!ELEMENT
CODCharge
(#PCDATA) >
<!ELEMENT
DebitCredit
(#PCDATA) >
<!ELEMENT NetFreightCharge (#PCDATA)
>
<!ELEMENT
TaxCharge
(#PCDATA) >
<!ELEMENT
StateFee (#PCDATA) >
<!ELEMENT TotalOrderValue (#PCDATA)
>
<!ELEMENT
NbrOfItems (#PCDATA) >
<!ELEMENT ItemInfo(
OrderLineNbr,
TechDataItemNbr,
MfgItemNbr?,
ItemDesc,
QtyShipped,
SerialNbrInd?,
SerialNbrInfo? ) >
<!ELEMENT OrderLineNbr
(#PCDATA) >
<!ELEMENT TechDataItemNbr (#PCDATA)
>
<!ELEMENT
MfgItemNbr
(#PCDATA) >
<!ELEMENT
ItemDesc
(#PCDATA) >
<!ELEMENT
QtyShipped
(#PCDATA) >
<!ELEMENT SerialNbrInd
(#PCDATA) >
<!ELEMENT SerialNbrInfo (
SerialNbr+ ) >
<!ELEMENT
SerialNbr (#PCDATA) >
<XML_InvoiceDetailByPO_Response>
<Header>
<ResponseVersion>1.4</ResponseVersion>
</Header>
<Detail>
<OrderInfo>
<PONbr>TEST 1QZ</PONbr>
<EndUserPONbr></EndUserPONbr>
<OrderNbr>8552444</OrderNbr>
<OrderDate>09/13/05</OrderDate>
<EstShipDate></EstShipDate>
<OrderStatus>INVOICED</OrderStatus>
<InvoiceNbr>Z024954</InvoiceNbr>
<ContainerInfo>
<ContainerID>1Z462E560300203422</ContainerID>
<ShipToName>ELECTRONIC COMMERCE</ShipToName>
<ShipToAddr1>5350 TECH DATA DRIVE</ShipToAddr1>
<ShipToAddr2></ShipToAddr2>
<ShipToAddr3></ShipToAddr3>
<ShipToCity>CLEARWATER</ShipToCity>
<ShipToStateProv>FL</ShipToStateProv>
<ShipToPostalCode>33760</ShipToPostalCode>
<DateShipped>09/13/05</DateShipped>
<DateInvoiced>09/13/05</DateInvoiced>
<Weight>15.000</Weight>
<WhseCode>A4</WhseCode>
<WhseDesc>CONFIG WH - SB</WhseDesc>
<ShipViaDesc>UPS GROUND</ShipViaDesc>
<ContainerValue>125.00</ContainerValue>
<HandlingCharge>0.00</HandlingCharge>
<CODCharge>0.00</CODCharge>
<DebitCredit>0.00</DebitCredit>
<NetFreightCharge>6.92</NetFreightCharge>
<TaxCharge>0.00</TaxCharge>
<StateFee>0.00</StateFee>
<TotalOrderValue>131.92</TotalOrderValue>
<NbrOfItems>1</NbrOfItems>
<ItemInfo>
<OrderLineNbr>001</OrderLineNbr>
<TechDataItemNbr>070380</TechDataItemNbr>
<ItemDesc>IBM PC/AT TO HAYES MODEM</ItemDesc>
<QtyShipped>1.00</QtyShipped>
<SerialNbrInd>Y</SerialNbrInd>
<SerialNbrInfo>
<SerialNbr>TESTPB</SerialNbr>
</SerialNbrInfo>
</ItemInfo>
</ContainerInfo>
</OrderInfo>
</Detail>
</XML_InvoiceDetailByPO_Response>
Element Name |
Optional Required |
Description |
Data Type |
Max Len |
||||||||||||||||
Header | R | |||||||||||||||||||
ResponseVersion | O | Designates the Response DTD version | A/N | 20 | ||||||||||||||||
Detail | R | |||||||||||||||||||
OrderInfo | R | One OrderInfo node will be returned for each Invoice found | ||||||||||||||||||
PONbr | O | Your PO number | A/N | 50 | ||||||||||||||||
EndUserPONbr | O | The End User PO number | A/N | 50 | ||||||||||||||||
OrderNbr | O | Tech Data sales order number | A/N | 7 | ||||||||||||||||
OrderDate | O | The date the order was placed | A/N | 15 | ||||||||||||||||
EstShipDate | O | This element will contain the date (YYMMDD) that a back ordered item is estimated
to be shipped to the customer. The tag will be empty if Tech Data does not have an open
PO with the Vendor.
Example: July 15, 2002 is represented as 020715 |
N | 6 | ||||||||||||||||
OrderStatus | O |
Indicates the current position of the line item within the order life cycle at the
time the request message was processed.
|
A | 50 | ||||||||||||||||
InvoiceNbr | O | Tech Data’s assigned Invoice number | A/N | 7 | ||||||||||||||||
ErrorMsg | O | An informative error message | A/N | 200 | ||||||||||||||||
ContainerInfo | O | One ContainerInfo node will be returned for each container included in the invoice | ||||||||||||||||||
ContainerID | O | The carrier’s container (tracking) number | A/N | 18 | ||||||||||||||||
ShipToName | O | The name of the individual or organization receiving the order | A/N | 25 | ||||||||||||||||
ShipToAddr1 | O | The first street address line of the individual or organization receiving the order | A/N | 25 | ||||||||||||||||
ShipToAddr2 | O | The second street address line of the individual or organization receiving the order | A/N | 25 | ||||||||||||||||
ShipToAddr3 | O | The third street address line of the individual or organization receiving the order | A/N | 25 | ||||||||||||||||
ShipToCity | O | Destination city name | A/N | 12 | ||||||||||||||||
ShipToStateProv | O | U.S. state or Canadian province destination abbreviation | A/N | 2 | ||||||||||||||||
ShipToPostalCode | O | U.S. zip code or Canadian postal code of destination receiving order | A/N | 9 | ||||||||||||||||
DateShipped | O | Date order line was shipped in MMDDYY (month, day, year) format | N | 6 | ||||||||||||||||
DateInvoiced | O | Date order line was invoiced in MMDDYY (month, day, year) format | N | 6 | ||||||||||||||||
Weight | O | Weight of order line | N | 8 | ||||||||||||||||
WhseCode | O | Location code of logistics center shipping this order item | A/N | 2 | ||||||||||||||||
WhseDesc | O | Location name of logistics center shipping this order item | A/N | 30 | ||||||||||||||||
ShipViaDesc | O | Carrier name and mode, i.e. ‘UPS GROUND’ or FEDEX NEXT DAY’ | AN | 25 | ||||||||||||||||
ContainerValue | O | Total dollar value of items within container | N | 9(2) | ||||||||||||||||
HandlingCharge | O | Additional fee assessed to order line for special handling | N | 15(2) | ||||||||||||||||
CODCharge | O | Additional fee assessed to order line for Cash On Delivery payment term | N | 15(2) | ||||||||||||||||
DebitCredit | O | An amount to be added or deducted from the COD collection amount | N | 15(2) | ||||||||||||||||
NetFreightCharge | O | The freight charge associated with shipping the container based on the carrier, weight, destination, insurance, and freight discount (if any). | N | 15(2) | ||||||||||||||||
TaxCharge | O | The tax cost associated with the container. For orders shipped from Tech Data’s Canadian logistics centers, the tax will include the GST (Goods and Services Tax). | N | 15(2) | ||||||||||||||||
StateFee | O | The amount of state fees charged to the order | N | 15(2) | ||||||||||||||||
TotalContainerValue | O |
Container value plus any of the following additional charges that may be assessed:
|
N | 15(2) | ||||||||||||||||
NbrOfItems | O | The number of units of the ordered item that were shipped | N | 4 | ||||||||||||||||
ItemInfo | O | One ItemInfo node will be returned for each item shipped in the container | ||||||||||||||||||
OrderLineNbr | O | Unique tracking identifier assigned by the customer to each order line. At order time the line number is specified in the <OrigCustPOLineNbr> field. | A/N | 100 | ||||||||||||||||
TechDataItemNbr | O | Tech Data item number | A/N | 20 | ||||||||||||||||
MfgItemNbr | O | Manufacturers item number | A/N | 20 | ||||||||||||||||
ItemDesc | O | Description of item | A/N | 50 | ||||||||||||||||
QtyShipped | O | The number of units of the ordered item that were shipped | N | 4 | ||||||||||||||||
SerialNbrInd | O |
A Y/N (yes/no) value which indicates if the item is serialized
or not
|
A | 1 | ||||||||||||||||
SerialNbrInfo | O | If the item is serial numbered, one SerialNbrInfo node will be returned | ||||||||||||||||||
SerialNbr | O | One SerialNbr node will be returned for each item in of this type in the container. This element will contain the item’s serial number. • Use ResponseVersion of 2.0 or higher to display all serial numbers. |
©2005 Tech Data Corporation. All Rights Reserved. | Tech Data proprietary and confidential |