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' のフィールドがいくつかありますが、非常に多くのフィールドがあり、関税と税金の見積もりを取得するためにどのフィールドに入力する必要があるかわかりません。(私が得るのは、これらのフィールドに対して返される「NULL」だけです)