Кто-нибудь знает, какие поля необходимы для создания пошлин и налогов в ответе запроса веб-служб FedEx RateRequest (SOAP)? Я был поставлен на несколько дней, ожидая услышать от их команды веб-сервисов, и у меня есть менеджер, дышащий мне на шею, чтобы попытаться оценить пошлину и налоги с наших модулей доставки.Тариф за мыло FedEx для международной доставки (пошлин и налогов)
Я пробовал все, что я мог придумать и/или получить из разреженной документации по сервисам Soap. Вот пример запроса я посылаю (PHP SoapClient данные):
RateRequest::__set_state(array(
'WebAuthenticationDetail' =>
stdClass::__set_state(array(
'UserCredential' =>
stdClass::__set_state(array(
'Key' => '*fedexkey*',
'Password' => '*fedexpassword*',
)),
)),
'ClientDetail' =>
stdClass::__set_state(array(
'AccountNumber' => '*accountnumber*',
'MeterNumber' => '*meternumber*',
)),
'TransactionDetail' =>
stdClass::__set_state(array(
'CustomerTransactionId' => 1,
)),
'Version' =>
stdClass::__set_state(array(
'ServiceId' => 'crs',
'Major' => 9,
'Intermediate' => 0,
'Minor' => 0,
)),
'ReturnTransitAndCommit' => true,
'CarrierCodes' => NULL,
'VariableOptions' => NULL,
'RequestedShipment' =>
stdClass::__set_state(array(
'DropoffType' => 'REGULAR_PICKUP',
'ShipTimestamp' => '2013-05-16T12:37:12-04:00',
'Shipper' =>
stdClass::__set_state(array(
'AccountNumber' => '*accountnum*',
'Address' =>
stdClass::__set_state(array(
'StreetLines' =>
array (
0 => '123 Our Street Address',
),
'City' => 'Our City',
'StateOrProvinceCode' => 'ST',
'PostalCode' => '12345',
'CountryCode' => 'US',
)),
)),
'Recipient' =>
stdClass::__set_state(array(
'Address' =>
stdClass::__set_state(array(
'StreetLines' =>
array (
0 => '123 Canada Street address',
),
'City' => 'City in Canada',
'StateOrProvinceCode' => 'MB',
'PostalCode' => 'A0A0A0',
'CountryCode' => 'CA',
)),
)),
'ShippingChargesPayment' =>
stdClass::__set_state(array(
'Payor' =>
stdClass::__set_state(array(
'AccountNumber' => '*accountnumber*',
'CountryCode' => 'US',
)),
)),
'RateRequestTypes' =>
array (
0 => 'ACCOUNT',
1 => 'LIST',
),
'PackageCount' => 1,
'PackageDetail' => 'INDIVIDUAL_PACKAGES',
'CustomsClearanceDetail' =>
CustomsClearanceDetail::__set_state(array(
'Broker' => NULL,
'ClearanceBrokerage' => NULL,
'ImporterOfRecord' => NULL,
'RecipientCustomsId' => NULL,
'DutiesPayment' =>
stdClass::__set_state(array(
'PaymentType' => 'SENDER',
'Payor' =>
stdClass::__set_state(array(
'AccountNumber' => '*accountnumber*',
'CountryCode' => 'US',
)),
)),
'DocumentContent' => NULL,
'CustomsValue' => 241.62,
'FreightOnValue' => NULL,
'InsuranceCharges' => NULL,
'PartiesToTransactionAreRelated' => NULL,
'CommercialInvoice' => NULL,
'Commodities' =>
array (
0 =>
Commodity::__set_state(array(
'Name' => 'ART BOOK',
'NumberOfPieces' => 1,
'Description' => 'Our Product',
'CountryOfManufacture' => 'USA',
'HarmonizedCode' => 4901990000,
'Weight' =>
stdClass::__set_state(array(
'Units' => 'LB',
'Value' => 2,
)),
'Quantity' => 1,
'QuantityUnits' => NULL,
'AdditionalMeasures' => NULL,
'UnitPrice' =>
stdClass::__set_state(array(
'Currency' => 'USD',
'Amount' => 80.54,
)),
'CustomsValue' =>
stdClass::__set_state(array(
'Currency' => 'USD',
'Amount' => 80.54,
)),
'ExciseConditions' => NULL,
'ExportLicenseNumber' => NULL,
'ExportLicenseExpirationDate' => NULL,
'CIMarksAndNumbers' => NULL,
'NaftaDetail' => NULL,
)),
1 =>
Commodity::__set_state(array(
'Name' => 'ART BOOK',
'NumberOfPieces' => 1,
'Description' => 'Our product',
'CountryOfManufacture' => 'USA',
'HarmonizedCode' => 4901990000,
'Weight' =>
stdClass::__set_state(array(
'Units' => 'LB',
'Value' => 2,
)),
'Quantity' => 1,
'QuantityUnits' => NULL,
'AdditionalMeasures' => NULL,
'UnitPrice' =>
stdClass::__set_state(array(
'Currency' => 'USD',
'Amount' => 80.54,
)),
'CustomsValue' =>
stdClass::__set_state(array(
'Currency' => 'USD',
'Amount' => 80.54,
)),
'ExciseConditions' => NULL,
'ExportLicenseNumber' => NULL,
'ExportLicenseExpirationDate' => NULL,
'CIMarksAndNumbers' => NULL,
'NaftaDetail' => NULL,
)),
2 =>
Commodity::__set_state(array(
'Name' => 'ART BOOK',
'NumberOfPieces' => 1,
'Description' => 'Our Product',
'CountryOfManufacture' => 'USA',
'HarmonizedCode' => 4901990000,
'Weight' =>
stdClass::__set_state(array(
'Units' => 'LB',
'Value' => 2,
)),
'Quantity' => 1,
'QuantityUnits' => NULL,
'AdditionalMeasures' => NULL,
'UnitPrice' =>
stdClass::__set_state(array(
'Currency' => 'USD',
'Amount' => 80.54,
)),
'CustomsValue' =>
stdClass::__set_state(array(
'Currency' => 'USD',
'Amount' => 80.54,
)),
'ExciseConditions' => NULL,
'ExportLicenseNumber' => NULL,
'ExportLicenseExpirationDate' => NULL,
'CIMarksAndNumbers' => NULL,
'NaftaDetail' => NULL,
)),
),
'ExportDetail' => NULL,
'RegulatoryControls' => NULL,
)),
'RequestedPackageLineItems' =>
array (
0 =>
RequestedPackageLineItem::__set_state(array(
'SequenceNumber' => NULL,
'GroupNumber' => NULL,
'GroupPackageCount' => NULL,
'VariableHandlingChargeDetail' => NULL,
'InsuredValue' => NULL,
'Weight' =>
stdClass::__set_state(array(
'Units' => 'LB',
'Value' => 6,
)),
'Dimensions' =>
stdClass::__set_state(array(
'Length' => 10,
'Width' => 8,
'Height' => 9,
'Units' => 'IN',
)),
'PhysicalPackaging' => NULL,
'ItemDescription' => NULL,
'CustomerReferences' => NULL,
'SpecialServicesRequested' => NULL,
'ContentRecords' => NULL,
)),
),
)),
))
[конфиденциальную информацию измененную конечно]
Есть целый ряд других полей до сих пор «нулевой», но есть так много, я «Я не уверен, какие из них нужно заполнить, чтобы получить оценки пошлин и налогов. (все, что я получаю, это «NULL», возвращенный для этих полей)
Важнейшая часть фрагмента выше - это переменная 'EdtRequestType'. Я смог получить пошлины и налоги, рассчитанные для поставок из США в Индию и Германию. Одна из проблем, с которыми я столкнулся, заключается в том, что разные страны имеют разные согласованные коды для одного и того же типа товара. Например, мы занимаемся отправкой печатных товаров (визитных карточек и т. Д.), А для Индии код - 491199900000, тогда как для Германии - 491199000000. В случае недействительного согласованного кода FedEx выдаст предупреждение, но оно все еще возвращает ставки без каких-либо таможенных деталей, поэтому будьте осторожны. –
Вы абсолютно правы. Эти коды HS для материала различаются в зависимости от судна в стране, поэтому импортная пошлина и налог могут измениться :) –