有谁知道在 FedEx Web 服务 RateRequest (SOAP) 查询的响应中生成关税和税款需要哪些字段?我已经被搁置了多天,等待他们的网络服务团队的回复,并且让一位经理在我的脖子上喘气,试图从我们的运费模块中获得关税和税收估计。
我已经尝试了所有我能想到和/或从关于 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”)