GetQuote API
TGC's GetQuote provides customers with a fully landed cost quotes on the merchant's checkout page. To obtain a landed cost quote, the customer passes their shopping cart along with their shipping and billing address to the API and TGC will return a Landed Cost Quote entity object. Each quote returned represents a shipping method and contains all of the necessary information to process an order. The following sections will provide all of the necessary information to integrate this API call into your checkout.
Request (Y=Yes, N=No, C=Conditional, N/A=Not Applicable)
Authorization Required
To access this resources' endpoint you will need to provide your Username and Password provided to you by TGC in the ClientCredentials object.
GetQuote requests are supported by the SOAP POST method. The XML must conform to the following specifications:
Environment | Protocol | Host | Path | WSDL URL | Format |
---|---|---|---|---|---|
Staging | https:// | services.filltekglobalsolutions.com | /4.3/Merchant/Merchant.svc | https://services.filltekglobalsolutions.com/4.3/Merchant/Merchant.svc?wsdl | XML |
Staging | https:// | services.filltekglobalsolutions.com | /4.3/Merchant/MerchantWCF.svc (Preferred if using .NET) | https://services.filltekglobalsolutions.com/4.3/Merchant/MerchantWCF.svc?wsdl | XML |
Production | https:// | services.tradeglobal.com | /4.3/Merchant/Merchant.svc | https://services.tradeglobal.com/4.3/Merchant/Merchant.svc?wsdl | XML |
Production | https:// | services.tradeglobal.com | /4.3/Merchant/MerchantWCF.svc (Preferred if using .NET) | https://services.tradeglobal.com/4.3/Merchant/MerchantWCF.svc?wsdl | XML |
POST /4.3/Merchant/Merchant.svc
HOST: services.tradeglobal.com
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns="http://services.tradeglobal.com/2014/03" xmlns:trad="http://schemas.datacontract.org/2004/07/TradeGlobal.Common.Entities" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <soapenv:Header> <oas:Security> <oas:UsernameToken> <oas:Password>XXXXXXXXXXXXX</oas:Password> <oas:Username>XXXXXXXXXXXXX</oas:Username> </oas:UsernameToken> </oas:Security> </soapenv:Header> <soapenv:Body> <ns:GetQuote> <!--Optional:--> <ns:cart> <trad:accountField> <trad:customerImportIDField xsi:nil='true'>?</trad:customerImportIDField> <trad:emailField>test@tgc.com</trad:emailField> <trad:merchantAccountIdField>123</trad:merchantAccountIdField> <trad:nameField> <trad:firstField>Bryan</trad:firstField> <trad:lastField>Testcase</trad:lastField> <trad:middleField xsi:nil='true'>?</trad:middleField> </trad:nameField> </trad:accountField> <trad:billTotalField>0</trad:billTotalField> <trad:buyCurrencyCodeField>USD</trad:buyCurrencyCodeField> <trad:cartAttributesField xsi:nil='true'> <!--Zero or more repetitions:--> <trad:CartAttribute> <trad:nameField>?</trad:nameField> <trad:typeField>?</trad:typeField> <trad:valueField> <!--Zero or more repetitions:--> <arr:string>?</arr:string> </trad:valueField> </trad:CartAttribute> </trad:cartAttributesField> <trad:cartTotalField>0</trad:cartTotalField> <trad:customerIPField xsi:nil='true'>?</trad:customerIPField> <trad:exchangeRateField>1</trad:exchangeRateField> <trad:isReturnField>false</trad:isReturnField> <trad:merchantCartIDField>14</trad:merchantCartIDField> <trad:merchantCodeField>TGCSANDBOX</trad:merchantCodeField> <trad:priceBookAmountField>0</trad:priceBookAmountField> <trad:priceBookCurrencyCodeField xsi:nil='true'>?</trad:priceBookCurrencyCodeField> <trad:productsField> <!--Zero or more repetitions:--> <trad:CartItem> <trad:availabilityField xsi:nil='true'>?</trad:availabilityField> <trad:backOrderedField xsi:nil='true'>?</trad:backOrderedField> <trad:cartItemAttributesField xsi:nil='true'> <!--Zero or more repetitions:--> <trad:CartItemAttribute> <trad:nameField>?</trad:nameField> <trad:typeField>?</trad:typeField> <trad:valueField> <!--Zero or more repetitions:--> <arr:string>?</arr:string> </trad:valueField> </trad:CartItemAttribute> </trad:cartItemAttributesField> <trad:categoriesField xsi:nil='true'> <!--Zero or more repetitions:--> <arr:string>?</arr:string> </trad:categoriesField> <trad:commercialInvoiceDescriptionOneField xsi:nil='true'>?</trad:commercialInvoiceDescriptionOneField> <trad:commercialInvoiceDescriptionThreeField xsi:nil='true'>?</trad:commercialInvoiceDescriptionThreeField> <trad:commercialInvoiceDescriptionTwoField xsi:nil='true'>?</trad:commercialInvoiceDescriptionTwoField> <trad:commodityCodeField xsi:nil='true'>?</trad:commodityCodeField> <trad:conditionField xsi:nil='true'>?</trad:conditionField> <trad:countryOfOriginField xsi:nil='true'>?</trad:countryOfOriginField> <trad:currencyCodeField xsi:nil='true'>?</trad:currencyCodeField> <trad:descriptionField xsi:nil='true'>?</trad:descriptionField> <trad:dimField xsi:nil='true'> <trad:heightField>?</trad:heightField> <trad:heightFieldSpecified>?</trad:heightFieldSpecified> <trad:lengthField>?</trad:lengthField> <trad:lengthFieldSpecified>?</trad:lengthFieldSpecified> <trad:sizeUOMField>?</trad:sizeUOMField> <trad:totalField>?</trad:totalField> <trad:totalFieldSpecified>?</trad:totalFieldSpecified> <trad:weightField>?</trad:weightField> <trad:weightFieldSpecified>?</trad:weightFieldSpecified> <trad:weightUOMField>?</trad:weightUOMField> <trad:widthField>?</trad:widthField> <trad:widthFieldSpecified>?</trad:widthFieldSpecified> </trad:dimField> <trad:dutiableField xsi:nil='true'>?</trad:dutiableField> <trad:freightExemptField xsi:nil='true'>?</trad:freightExemptField> <trad:harmonizedCodeField xsi:nil='true'>?</trad:harmonizedCodeField> <trad:imageURLField xsi:nil='true'>?</trad:imageURLField> <trad:merchantStyleField xsi:nil='true'>?</trad:merchantStyleField> <trad:nameField xsi:nil='true'>?</trad:nameField> <trad:packageTypeField xsi:nil='true'>?</trad:packageTypeField> <trad:preOrderedField xsi:nil='true'>?</trad:preOrderedField> <trad:priceBookCurrencyCodeField xsi:nil='true'>?</trad:priceBookCurrencyCodeField> <trad:priceBookPriceField>0</trad:priceBookPriceField> <trad:priceField>105</trad:priceField> <trad:quantityField>1</trad:quantityField> <trad:sKUField>TGSAND_TestSKU123</trad:sKUField> <trad:taxableField xsi:nil='true'>?</trad:taxableField> <trad:uRLField xsi:nil='true'>?</trad:uRLField> </trad:CartItem> </trad:productsField> <trad:sellCurrencyCodeField>USD</trad:sellCurrencyCodeField> <trad:shipFromAddressField xsi:nil='true'> <trad:address1Field>?</trad:address1Field> <trad:address2Field>?</trad:address2Field> <trad:cityField>?</trad:cityField> <trad:countryField>?</trad:countryField> <trad:emailField>?</trad:emailField> <trad:nameField> <trad:firstField>?</trad:firstField> <trad:lastField>?</trad:lastField> <trad:middleField>?</trad:middleField> </trad:nameField> <trad:phoneField>?</trad:phoneField> <trad:postalCodeField>?</trad:postalCodeField> <trad:stateProvinceField>?</trad:stateProvinceField> </trad:shipFromAddressField> <trad:shipToAddressField> <trad:address1Field>123 Main Street</trad:address1Field> <trad:address2Field xsi:nil='true'></trad:address2Field> <trad:cityField>Toronto</trad:cityField> <trad:countryField>CA</trad:countryField> <trad:emailField>test@tgc.com</trad:emailField> <trad:nameField> <trad:firstField>Bryan</trad:firstField> <trad:lastField>Testcase</trad:lastField> <trad:middleField xsi:nil='true'>?</trad:middleField> </trad:nameField> <trad:phoneField>555555555</trad:phoneField> <trad:postalCodeField>M5S 2A2</trad:postalCodeField> <trad:stateProvinceField>ON</trad:stateProvinceField> </trad:shipToAddressField> <trad:taxField>0</trad:taxField> </ns:cart> </ns:GetQuote> </soapenv:Body> </soapenv:Envelope>
Response
If the request is valid and authorized, the server will process the request and return a response. The response will return a LCQ
(Landed Cost Quote) object. Within this object, will be an array of Quote
objects. Each Quote
object represents and is uniquely identified by the QuoteID
value. Once a customer chooses a shipping method, the chosen QuoteID will be passed in the ProcessOrder API call to load the order into TGC.
Output Elements (Y=Yes, N=No, C=Conditional, N/A=Not Applicable)
200 OK
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <GetQuoteResponse xmlns="http://services.tradeglobal.com/2014/03"> <GetQuoteResult xmlns:a="http://schemas.datacontract.org/2004/07/TradeGlobal.Common.Entities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:currencyField> <a:Currency> <a:codeField>CAD</a:codeField> <a:lastUpdatedField>2015-12-03T12:00:06.307</a:lastUpdatedField> <a:lastUpdatedFieldSpecified>false</a:lastUpdatedFieldSpecified> <a:valueField>1.3344</a:valueField> <a:valueFieldSpecified>false</a:valueFieldSpecified> </a:Currency> </a:currencyField> <a:destinationField> <a:address1Field>123 Main Street</a:address1Field> <a:address2Field i:nil="true"/> <a:cityField>Toronto</a:cityField> <a:countryField>CA</a:countryField> <a:emailField>placeholder@tarte.com</a:emailField> <a:nameField> <a:firstField>Bryan</a:firstField> <a:lastField>Testcase</a:lastField> <a:middleField i:nil="true"/> </a:nameField> <a:phoneField>555555555</a:phoneField> <a:postalCodeField>M5S 2A2</a:postalCodeField> <a:stateProvinceField>ON</a:stateProvinceField> </a:destinationField> <a:quotesField> <a:Quote> <a:cOGField>105</a:cOGField> <a:feesField> <a:customField> <a:discountField/> <a:feeField> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Custom</a:classificationField> <a:typeField>Brokerage</a:typeField> </a:Fee> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Custom</a:classificationField> <a:typeField>Disbursement</a:typeField> </a:Fee> </a:feeField> <a:totalField>0</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:customField> <a:importField> <a:discountField i:nil="true"/> <a:feeField> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Import</a:classificationField> <a:typeField>Duty</a:typeField> </a:Fee> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Import</a:classificationField> <a:typeField>VAT</a:typeField> </a:Fee> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Import</a:classificationField> <a:typeField>PST</a:typeField> </a:Fee> </a:feeField> <a:totalField>0</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:importField> <a:serviceField> <a:discountField/> <a:feeField> <a:Fee> <a:amountField>1.00</a:amountField> <a:classificationField>Service</a:classificationField> <a:typeField>TransactionFee</a:typeField> </a:Fee> </a:feeField> <a:totalField>1.00</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:serviceField> <a:shippingField> <a:discountField i:nil="true"/> <a:feeField> <a:Fee> <a:amountField>8.03</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:typeField>Freight</a:typeField> </a:Fee> <a:Fee> <a:amountField>0.76</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:typeField>FuelSurcharge</a:typeField> </a:Fee> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:typeField>Insurance</a:typeField> </a:Fee> </a:feeField> <a:totalField>8.79</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:shippingField> </a:feesField> <a:quoteIdField>cdad5487-be96-4db0-aa36-ff35d9e9a5a3</a:quoteIdField> <a:tGMessagesField i:nil="true"/> <a:totalCostField>114.79</a:totalCostField> <a:transportationField> <a:eINField>11111111</a:eINField> <a:packageField> <a:Package> <a:backOrderedField>false</a:backOrderedField> <a:cOGField>105</a:cOGField> <a:depthField>10.00</a:depthField> <a:freightExemptField>false</a:freightExemptField> <a:heightField>6.00</a:heightField> <a:itemsField> <a:QuoteItem> <a:backOrderedField>false</a:backOrderedField> <a:commodityCodeField i:nil="true"/> <a:dutiableField>true</a:dutiableField> <a:freightExemptField>false</a:freightExemptField> <a:hTCCodeField>620441</a:hTCCodeField> <a:pSTField>0</a:pSTField> <a:preOrderedField>false</a:preOrderedField> <a:quantityField>1</a:quantityField> <a:sKUField>TGSAND_TestSKU123</a:sKUField> <a:tariffField>0</a:tariffField> <a:taxableField>true</a:taxableField> <a:unitPriceField>105</a:unitPriceField> <a:vATField>0</a:vATField> </a:QuoteItem> </a:itemsField> <a:itineraryField> <a:itineraryIdField>1</a:itineraryIdField> <a:itineraryIdFieldSpecified>false</a:itineraryIdFieldSpecified> <a:modelField i:nil="true"/> <a:stepField> <a:Step> <a:discountedFreightField>8.03</a:discountedFreightField> <a:discountedFreightFieldSpecified>false</a:discountedFreightFieldSpecified> <a:discountedFuelSurchargeField>0.76</a:discountedFuelSurchargeField> <a:discountedFuelSurchargeFieldSpecified>false</a:discountedFuelSurchargeFieldSpecified> <a:discountedInsuranceField>0</a:discountedInsuranceField> <a:discountedInsuranceFieldSpecified>false</a:discountedInsuranceFieldSpecified> <a:estDeliveryTimeField>5-12 Business Days, Full Track & Trace</a:estDeliveryTimeField> <a:freightField>8.03</a:freightField> <a:freightFieldSpecified>false</a:freightFieldSpecified> <a:fuelSurchargeField>0.76</a:fuelSurchargeField> <a:fuelSurchargeFieldSpecified>false</a:fuelSurchargeFieldSpecified> <a:insuranceField>0</a:insuranceField> <a:insuranceFieldSpecified>false</a:insuranceFieldSpecified> <a:methodField> <a:accountField>5112623</a:accountField> <a:carrierCodeField>DHLGMDDU</a:carrierCodeField> <a:carrierDescField>DHL Global Mail</a:carrierDescField> <a:dimBaseField>LWD/DimFactor</a:dimBaseField> <a:dimFactorField>139</a:dimFactorField> <a:dutiableField>true</a:dutiableField> <a:freightCalculationField i:nil="true"/> <a:freightExemptField>false</a:freightExemptField> <a:idField>3</a:idField> <a:isGatewayToEurServiceField>false</a:isGatewayToEurServiceField> <a:licenseField>NA</a:licenseField> <a:packageTypeField>Pack</a:packageTypeField> <a:pickupNumberField>5315603</a:pickupNumberField> <a:sequenceField>0</a:sequenceField> <a:sequenceFieldSpecified>false</a:sequenceFieldSpecified> <a:serviceCodeField>GMDDU</a:serviceCodeField> <a:serviceDescField>DHL GM Parcel Direct (Duty & Tax Pay on Delivery)</a:serviceDescField> <a:serviceMessagesField/> <a:serviceRefCodeField>GM60</a:serviceRefCodeField> <a:termsField>DDU</a:termsField> <a:thirdPartyAccountNumberField i:nil="true"/> <a:thirdPartyCountryCodeField i:nil="true"/> <a:thirdPartyDAndTNumberField i:nil="true"/> <a:thirdPartyPostalCodeField i:nil="true"/> <a:useThirdPartyBillingDAndTField>false</a:useThirdPartyBillingDAndTField> <a:useThirdPartyBillingField>false</a:useThirdPartyBillingField> <a:utilizesABSField>false</a:utilizesABSField> <a:warehouseField>1</a:warehouseField> <a:zoneLookupTypeField>ByZip3</a:zoneLookupTypeField> </a:methodField> <a:sequenceField>0</a:sequenceField> <a:sequenceFieldSpecified>false</a:sequenceFieldSpecified> <a:shipFromField> <a:address1Field>5389 E. Provident Dr</a:address1Field> <a:address2Field/> <a:cityField>Cincinnati</a:cityField> <a:countryField>US</a:countryField> <a:emailField>support@tradeglobal.com</a:emailField> <a:nameField> <a:firstField>TradeGlobal</a:firstField> <a:lastField>FillTek</a:lastField> <a:middleField i:nil="true"/> </a:nameField> <a:phoneField>513-830-0121</a:phoneField> <a:postalCodeField>45246</a:postalCodeField> <a:stateProvinceField>OH</a:stateProvinceField> </a:shipFromField> <a:shipToField> <a:address1Field>123 Main Street</a:address1Field> <a:address2Field i:nil="true"/> <a:cityField>Toronto</a:cityField> <a:countryField>CA</a:countryField> <a:emailField>placeholder@tarte.com</a:emailField> <a:nameField> <a:firstField>Bryan</a:firstField> <a:lastField>Testcase</a:lastField> <a:middleField i:nil="true"/> </a:nameField> <a:phoneField>555555555</a:phoneField> <a:postalCodeField>M5S 2A2</a:postalCodeField> <a:stateProvinceField>ON</a:stateProvinceField> </a:shipToField> </a:Step> </a:stepField> </a:itineraryField> <a:numField>0</a:numField> <a:numFieldSpecified>false</a:numFieldSpecified> <a:packageIdField>TGC_10x8x6</a:packageIdField> <a:packageTypeField>Pack</a:packageTypeField> <a:preOrderedField>false</a:preOrderedField> <a:uOMDimField>IN</a:uOMDimField> <a:uOMWeightField>LBS</a:uOMWeightField> <a:volumeField>162.00</a:volumeField> <a:weightField>3.45</a:weightField> <a:widthField>8.00</a:widthField> </a:Package> </a:packageField> <a:transportationIdField>0</a:transportationIdField> <a:transportationIdFieldSpecified>false</a:transportationIdFieldSpecified> </a:transportationField> </a:Quote> <a:Quote> <a:cOGField>105</a:cOGField> <a:feesField> <a:customField> <a:discountField/> <a:feeField> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Custom</a:classificationField> <a:typeField>Brokerage</a:typeField> </a:Fee> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Custom</a:classificationField> <a:typeField>Disbursement</a:typeField> </a:Fee> </a:feeField> <a:totalField>0</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:customField> <a:importField> <a:discountField i:nil="true"/> <a:feeField> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Import</a:classificationField> <a:typeField>Duty</a:typeField> </a:Fee> <a:Fee> <a:amountField>5.25</a:amountField> <a:classificationField>Import</a:classificationField> <a:typeField>VAT</a:typeField> </a:Fee> <a:Fee> <a:amountField>8.40</a:amountField> <a:classificationField>Import</a:classificationField> <a:typeField>PST</a:typeField> </a:Fee> </a:feeField> <a:totalField>13.65</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:importField> <a:serviceField> <a:discountField/> <a:feeField> <a:Fee> <a:amountField>1.00</a:amountField> <a:classificationField>Service</a:classificationField> <a:typeField>TransactionFee</a:typeField> </a:Fee> </a:feeField> <a:totalField>1.00</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:serviceField> <a:shippingField> <a:discountField> <a:Discount> <a:amountField>-8.79</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:discountTypeField>Fixed</a:discountTypeField> </a:Discount> </a:discountField> <a:feeField> <a:Fee> <a:amountField>8.03</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:typeField>Freight</a:typeField> </a:Fee> <a:Fee> <a:amountField>0.76</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:typeField>FuelSurcharge</a:typeField> </a:Fee> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:typeField>Insurance</a:typeField> </a:Fee> </a:feeField> <a:totalField>0.00</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:shippingField> </a:feesField> <a:quoteIdField>031fb91a-b56d-469b-95f2-8f24eeecfe21</a:quoteIdField> <a:tGMessagesField i:nil="true"/> <a:totalCostField>128.44</a:totalCostField> <a:transportationField> <a:eINField>11111111</a:eINField> <a:packageField> <a:Package> <a:backOrderedField>false</a:backOrderedField> <a:cOGField>105</a:cOGField> <a:depthField>10.00</a:depthField> <a:freightExemptField>false</a:freightExemptField> <a:heightField>6.00</a:heightField> <a:itemsField> <a:QuoteItem> <a:backOrderedField>false</a:backOrderedField> <a:commodityCodeField i:nil="true"/> <a:dutiableField>true</a:dutiableField> <a:freightExemptField>false</a:freightExemptField> <a:hTCCodeField>620441</a:hTCCodeField> <a:pSTField>8.40</a:pSTField> <a:preOrderedField>false</a:preOrderedField> <a:quantityField>1</a:quantityField> <a:sKUField>TGSAND_TestSKU123</a:sKUField> <a:tariffField>0</a:tariffField> <a:taxableField>true</a:taxableField> <a:unitPriceField>105</a:unitPriceField> <a:vATField>5.25</a:vATField> </a:QuoteItem> </a:itemsField> <a:itineraryField> <a:itineraryIdField>1</a:itineraryIdField> <a:itineraryIdFieldSpecified>false</a:itineraryIdFieldSpecified> <a:modelField i:nil="true"/> <a:stepField> <a:Step> <a:discountedFreightField>0.00</a:discountedFreightField> <a:discountedFreightFieldSpecified>false</a:discountedFreightFieldSpecified> <a:discountedFuelSurchargeField>0.00</a:discountedFuelSurchargeField> <a:discountedFuelSurchargeFieldSpecified>false</a:discountedFuelSurchargeFieldSpecified> <a:discountedInsuranceField>0</a:discountedInsuranceField> <a:discountedInsuranceFieldSpecified>false</a:discountedInsuranceFieldSpecified> <a:estDeliveryTimeField>5-12 Business Days, Full Track & Trace</a:estDeliveryTimeField> <a:freightField>8.03</a:freightField> <a:freightFieldSpecified>false</a:freightFieldSpecified> <a:fuelSurchargeField>0.76</a:fuelSurchargeField> <a:fuelSurchargeFieldSpecified>false</a:fuelSurchargeFieldSpecified> <a:insuranceField>0</a:insuranceField> <a:insuranceFieldSpecified>false</a:insuranceFieldSpecified> <a:methodField> <a:accountField>5112623</a:accountField> <a:carrierCodeField>DHLGMDDP</a:carrierCodeField> <a:carrierDescField>DHL Global Mail</a:carrierDescField> <a:dimBaseField>LWD/DimFactor</a:dimBaseField> <a:dimFactorField>139</a:dimFactorField> <a:dutiableField>true</a:dutiableField> <a:freightCalculationField i:nil="true"/> <a:freightExemptField>false</a:freightExemptField> <a:idField>2</a:idField> <a:isGatewayToEurServiceField>false</a:isGatewayToEurServiceField> <a:licenseField>NA</a:licenseField> <a:packageTypeField>Pack</a:packageTypeField> <a:pickupNumberField>5315603</a:pickupNumberField> <a:sequenceField>0</a:sequenceField> <a:sequenceFieldSpecified>false</a:sequenceFieldSpecified> <a:serviceCodeField>GMDDP</a:serviceCodeField> <a:serviceDescField>DHL GM Parcel Direct (Duty & Tax Prepaid)</a:serviceDescField> <a:serviceMessagesField/> <a:serviceRefCodeField>GM60</a:serviceRefCodeField> <a:termsField>DDP</a:termsField> <a:thirdPartyAccountNumberField i:nil="true"/> <a:thirdPartyCountryCodeField i:nil="true"/> <a:thirdPartyDAndTNumberField i:nil="true"/> <a:thirdPartyPostalCodeField i:nil="true"/> <a:useThirdPartyBillingDAndTField>false</a:useThirdPartyBillingDAndTField> <a:useThirdPartyBillingField>false</a:useThirdPartyBillingField> <a:utilizesABSField>false</a:utilizesABSField> <a:warehouseField>1</a:warehouseField> <a:zoneLookupTypeField>ByZip3</a:zoneLookupTypeField> </a:methodField> <a:sequenceField>0</a:sequenceField> <a:sequenceFieldSpecified>false</a:sequenceFieldSpecified> <a:shipFromField> <a:address1Field>5389 E. Provident Dr</a:address1Field> <a:address2Field/> <a:cityField>Cincinnati</a:cityField> <a:countryField>US</a:countryField> <a:emailField>support@tradeglobal.com</a:emailField> <a:nameField> <a:firstField>TradeGlobal</a:firstField> <a:lastField>FillTek</a:lastField> <a:middleField i:nil="true"/> </a:nameField> <a:phoneField>513-830-0121</a:phoneField> <a:postalCodeField>45246</a:postalCodeField> <a:stateProvinceField>OH</a:stateProvinceField> </a:shipFromField> <a:shipToField> <a:address1Field>123 Main Street</a:address1Field> <a:address2Field i:nil="true"/> <a:cityField>Toronto</a:cityField> <a:countryField>CA</a:countryField> <a:emailField>placeholder@tarte.com</a:emailField> <a:nameField> <a:firstField>Bryan</a:firstField> <a:lastField>Testcase</a:lastField> <a:middleField i:nil="true"/> </a:nameField> <a:phoneField>555555555</a:phoneField> <a:postalCodeField>M5S 2A2</a:postalCodeField> <a:stateProvinceField>ON</a:stateProvinceField> </a:shipToField> </a:Step> </a:stepField> </a:itineraryField> <a:numField>0</a:numField> <a:numFieldSpecified>false</a:numFieldSpecified> <a:packageIdField>TGC_10x8x6</a:packageIdField> <a:packageTypeField>Pack</a:packageTypeField> <a:preOrderedField>false</a:preOrderedField> <a:uOMDimField>IN</a:uOMDimField> <a:uOMWeightField>LBS</a:uOMWeightField> <a:volumeField>162.00</a:volumeField> <a:weightField>3.45</a:weightField> <a:widthField>8.00</a:widthField> </a:Package> </a:packageField> <a:transportationIdField>0</a:transportationIdField> <a:transportationIdFieldSpecified>false</a:transportationIdFieldSpecified> </a:transportationField> </a:Quote> <a:Quote> <a:cOGField>105</a:cOGField> <a:feesField> <a:customField> <a:discountField/> <a:feeField> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Custom</a:classificationField> <a:typeField>Brokerage</a:typeField> </a:Fee> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Custom</a:classificationField> <a:typeField>Disbursement</a:typeField> </a:Fee> </a:feeField> <a:totalField>0</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:customField> <a:importField> <a:discountField i:nil="true"/> <a:feeField> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Import</a:classificationField> <a:typeField>Duty</a:typeField> </a:Fee> <a:Fee> <a:amountField>5.25</a:amountField> <a:classificationField>Import</a:classificationField> <a:typeField>VAT</a:typeField> </a:Fee> <a:Fee> <a:amountField>8.40</a:amountField> <a:classificationField>Import</a:classificationField> <a:typeField>PST</a:typeField> </a:Fee> </a:feeField> <a:totalField>13.65</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:importField> <a:serviceField> <a:discountField/> <a:feeField> <a:Fee> <a:amountField>5.00</a:amountField> <a:classificationField>Service</a:classificationField> <a:typeField>DDP</a:typeField> </a:Fee> <a:Fee> <a:amountField>1.00</a:amountField> <a:classificationField>Service</a:classificationField> <a:typeField>TransactionFee</a:typeField> </a:Fee> </a:feeField> <a:totalField>6.00</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:serviceField> <a:shippingField> <a:discountField> <a:Discount> <a:amountField>-22.77</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:discountTypeField>Fixed</a:discountTypeField> </a:Discount> </a:discountField> <a:feeField> <a:Fee> <a:amountField>20.79</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:typeField>Freight</a:typeField> </a:Fee> <a:Fee> <a:amountField>1.98</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:typeField>FuelSurcharge</a:typeField> </a:Fee> <a:Fee> <a:amountField>0</a:amountField> <a:classificationField>Shipping</a:classificationField> <a:typeField>Insurance</a:typeField> </a:Fee> </a:feeField> <a:totalField>0.00</a:totalField> <a:totalFieldSpecified>false</a:totalFieldSpecified> </a:shippingField> </a:feesField> <a:quoteIdField>8f2633e4-fdc3-4f38-b32b-ebcbdcc9447c</a:quoteIdField> <a:tGMessagesField i:nil="true"/> <a:totalCostField>147.42</a:totalCostField> <a:transportationField> <a:eINField>11111111</a:eINField> <a:packageField> <a:Package> <a:backOrderedField>false</a:backOrderedField> <a:cOGField>105</a:cOGField> <a:depthField>10.00</a:depthField> <a:freightExemptField>false</a:freightExemptField> <a:heightField>6.00</a:heightField> <a:itemsField> <a:QuoteItem> <a:backOrderedField>false</a:backOrderedField> <a:commodityCodeField i:nil="true"/> <a:dutiableField>true</a:dutiableField> <a:freightExemptField>false</a:freightExemptField> <a:hTCCodeField>620441</a:hTCCodeField> <a:pSTField>8.40</a:pSTField> <a:preOrderedField>false</a:preOrderedField> <a:quantityField>1</a:quantityField> <a:sKUField>TGSAND_TestSKU123</a:sKUField> <a:tariffField>0</a:tariffField> <a:taxableField>true</a:taxableField> <a:unitPriceField>105</a:unitPriceField> <a:vATField>5.25</a:vATField> </a:QuoteItem> </a:itemsField> <a:itineraryField> <a:itineraryIdField>1</a:itineraryIdField> <a:itineraryIdFieldSpecified>false</a:itineraryIdFieldSpecified> <a:modelField i:nil="true"/> <a:stepField> <a:Step> <a:discountedFreightField>0.00</a:discountedFreightField> <a:discountedFreightFieldSpecified>false</a:discountedFreightFieldSpecified> <a:discountedFuelSurchargeField>0.00</a:discountedFuelSurchargeField> <a:discountedFuelSurchargeFieldSpecified>false</a:discountedFuelSurchargeFieldSpecified> <a:discountedInsuranceField>0</a:discountedInsuranceField> <a:discountedInsuranceFieldSpecified>false</a:discountedInsuranceFieldSpecified> <a:estDeliveryTimeField>2-5 Business Days, Full Track & Trace</a:estDeliveryTimeField> <a:freightField>20.79</a:freightField> <a:freightFieldSpecified>false</a:freightFieldSpecified> <a:fuelSurchargeField>1.98</a:fuelSurchargeField> <a:fuelSurchargeFieldSpecified>false</a:fuelSurchargeFieldSpecified> <a:insuranceField>0</a:insuranceField> <a:insuranceFieldSpecified>false</a:insuranceFieldSpecified> <a:methodField> <a:accountField>802121624</a:accountField> <a:carrierCodeField>DHLEXP</a:carrierCodeField> <a:carrierDescField>DHL Express</a:carrierDescField> <a:dimBaseField>LWD/DimFactor</a:dimBaseField> <a:dimFactorField>109</a:dimFactorField> <a:dutiableField>true</a:dutiableField> <a:freightCalculationField i:nil="true"/> <a:freightExemptField>false</a:freightExemptField> <a:idField>1</a:idField> <a:isGatewayToEurServiceField>false</a:isGatewayToEurServiceField> <a:licenseField>5A233F2B2C415540445C525A5756304F42485046435E575E5550</a:licenseField> <a:packageTypeField>Pack</a:packageTypeField> <a:pickupNumberField i:nil="true"/> <a:sequenceField>0</a:sequenceField> <a:sequenceFieldSpecified>false</a:sequenceFieldSpecified> <a:serviceCodeField>DHLEXPSVC</a:serviceCodeField> <a:serviceDescField>DHL Express (Duties and Taxes Prepaid)</a:serviceDescField> <a:serviceMessagesField/> <a:serviceRefCodeField>IE</a:serviceRefCodeField> <a:termsField>DDP</a:termsField> <a:thirdPartyAccountNumberField i:nil="true"/> <a:thirdPartyCountryCodeField i:nil="true"/> <a:thirdPartyDAndTNumberField i:nil="true"/> <a:thirdPartyPostalCodeField i:nil="true"/> <a:useThirdPartyBillingDAndTField>false</a:useThirdPartyBillingDAndTField> <a:useThirdPartyBillingField>false</a:useThirdPartyBillingField> <a:utilizesABSField>false</a:utilizesABSField> <a:warehouseField>1</a:warehouseField> <a:zoneLookupTypeField>ByCountry</a:zoneLookupTypeField> </a:methodField> <a:sequenceField>0</a:sequenceField> <a:sequenceFieldSpecified>false</a:sequenceFieldSpecified> <a:shipFromField> <a:address1Field>5389 E. Provident Dr</a:address1Field> <a:address2Field/> <a:cityField>Cincinnati</a:cityField> <a:countryField>US</a:countryField> <a:emailField>support@tradeglobal.com</a:emailField> <a:nameField> <a:firstField>TradeGlobal</a:firstField> <a:lastField>FillTek</a:lastField> <a:middleField i:nil="true"/> </a:nameField> <a:phoneField>513-830-0121</a:phoneField> <a:postalCodeField>45246</a:postalCodeField> <a:stateProvinceField>OH</a:stateProvinceField> </a:shipFromField> <a:shipToField> <a:address1Field>123 Main Street</a:address1Field> <a:address2Field i:nil="true"/> <a:cityField>Toronto</a:cityField> <a:countryField>CA</a:countryField> <a:emailField>placeholder@tarte.com</a:emailField> <a:nameField> <a:firstField>Bryan</a:firstField> <a:lastField>Testcase</a:lastField> <a:middleField i:nil="true"/> </a:nameField> <a:phoneField>555555555</a:phoneField> <a:postalCodeField>M5S 2A2</a:postalCodeField> <a:stateProvinceField>ON</a:stateProvinceField> </a:shipToField> </a:Step> </a:stepField> </a:itineraryField> <a:numField>0</a:numField> <a:numFieldSpecified>false</a:numFieldSpecified> <a:packageIdField>TGC_10x8x6</a:packageIdField> <a:packageTypeField>Pack</a:packageTypeField> <a:preOrderedField>false</a:preOrderedField> <a:uOMDimField>IN</a:uOMDimField> <a:uOMWeightField>LBS</a:uOMWeightField> <a:volumeField>162.00</a:volumeField> <a:weightField>4.40</a:weightField> <a:widthField>8.00</a:widthField> </a:Package> </a:packageField> <a:transportationIdField>0</a:transportationIdField> <a:transportationIdFieldSpecified>false</a:transportationIdFieldSpecified> </a:transportationField> </a:Quote> </a:quotesField> <a:sourceCountryField> <a:countryIdField i:nil="true"/> <a:currencyCodeField>USD</a:currencyCodeField> </a:sourceCountryField> <a:tGMessagesField i:nil="true"/> </GetQuoteResult> </GetQuoteResponse> </s:Body> </s:Envelope>
Try it Yourself
Exchange Info
Location
Cart Info
Add a Product
(If you're only testing a single product, leave Product 2 fields blank)
Product #1
Product #2
Appendix
Error Codes
Error Code | Description | Message | Notes |
---|---|---|---|
6001 | Item Shipping Restriction | Items with SKU(:SKU) cannot be shipped to select country (:country) | This error indicates that a product restriction has been assigned by TGC. |
6002 | Country Shipping Restriction | Currently cannot ship to (JP) | This error can be triggered by the country not being enabled, or rates are not available for the selected zone |
6014 | Invalid SKU: :sku | Invalid SKU: :sku | If the a SKU passed in the cart is not in our system this error will be triggered. |
6015 | Cannot Generate Quotes | Could not generateany quotes for the specified cart (possible cause: maximum weight exceeded) | This error is triggered when shipping rates for the given weight are not found. |
6017 | Invalid Product List | Product with SKU (:sku) does not have a harmonized code | All products must be stored in our system with a valid Harmonized Tariff Code, which is required for customs clearance. Any cart that contains an item without a harmonized code will trigger this error. |
6019 | Shipping Exception | Could not find any shipping methods to (:country) for the merchant(:merchantCode) | This error is typically triggered when the value of the cart exceeds the max value assigned for the given country. |
6055 | Invalid Product | Invalid Product | This error indicates there is an issue with the product data for a given SKU. Missing dimensions triggers this error. |
11001 | Invalid Address | Address is missing the folloing properties: :addressfield | Error indicates that the ShipToAddress object is missing a required field. The message will indicate the invalid or missing field |
11006 | Invalid Product List | The Product List provided contains one or more duplicate items | This error indicates that duplicate line items were passed. Never duplicate line items and instead adjust the quanities. |
11024 | Invalid Account | Invalid Account :field | This error indicates there is an issue with one of the values passed in the account object. Typically this is a missing field. The error message will indicate the filed that is invalid or missing. |
11025 | Missing or invalid country code | Missing or invalid country code | Our system only allows two character country codes. Do not pass the country name or three character code |
15000 | Generic Error | Error Message | If a generic error is not caught, it will be caught by this error code and the error message will be displayed in the message field. |