TaxDutyQuoteResponse → OrderCreateRequest
There is tax information throughout the Pricing
section on each OrderItem
in an OrderCreateRequest
. This tax information comes from the
TaxDutyQuoteResponse
. The mappings and examples below will stop at TaxData
elements because they are the same type in each request; they map to each other
perfectly. As such the mappings and examples will focus on where these
TaxData
elements are in the TaxDutyQuoteResponse
and OrderCreateRequest
.
Promotion-related tax information is left out of this mapping because the TaxDutyQuoteResponse will always return zeroes (0) for it. You do not need to worry about copying these zero values over to OrderCreateRequest (though doing so will not harm anything either).
In addition to the item-specific tax data, there is an order-level Tax Transaction ID. This value, found in /TaxDutyQuoteResponse/TaxTransactionid
, can optionally be copied to /OrderCreateRequest/Order/TaxHeader/@taxTransactionId
.
Mapping
The TaxDutyQuoteResponse
field mappings start at:
/TaxDutyQuoteResponse/Shipping/ShipGroups/ShipGroup/Items/OrderItem/Pricing
The OrderCreateRequest
field mappings start at:
/OrderCreateRequest/Order/OrderItems/OrderItem/Pricing
The OrderItem
elements are matched up by the lineNumber
attribute for
TaxDutyQuoteResponse
and the webLineId
attribute for OrderCreateRequest
.
TaxDutyQuoteResponse Field | OrderCreateRequest Field | Transform | Comment |
---|---|---|---|
//Merchandise/TaxData |
//Merchandise/TaxData |
copy as is |
|
//Shipping/TaxData |
//Shipping/TaxData |
copy as is |
|
//Duty/TaxData |
//Duty/TaxData |
copy as is |
|
//Fees/Fee/Charge/TaxData |
//Fees/Fee/TaxData |
copy as is |
Mapping Example
|
|