0
Почему я получаю этот ответ от API FedEx? при обыске везде я получаю ответ, как вы ошибочно ввели номер вашего грузоотправителя, но я ввел его правильно. Я получил ответ вFedex API дает значение ошибки для ставок
$ response = $ client -> getRates ($ request);
stdClass Object
(
[HighestSeverity] => WARNING
[Notifications] => Array
(
[0] => stdClass Object
(
[Severity] => WARNING
[Source] => crs
[Code] => 556
[Message] => There are no valid services available.
[LocalizedMessage] => There are no valid services available.
)
[1] => stdClass Object
(
[Severity] => NOTE
[Source] => crs
[Code] => 820
[Message] => The destination state/province code has been changed.
[LocalizedMessage] => The destination state/province code has been changed.
)
)
[TransactionDetail] => stdClass Object
(
[CustomerTransactionId] => *** Rate Available Services Request v7 using PHP ***
)
[Version] => stdClass Object
(
[ServiceId] => crs
[Major] => 7
[Intermediate] => 0
[Minor] => 0
)
)
Я просил пересылку как ниже
[RequestedShipment] => Array
(
[DropoffType] => REGULAR_PICKUP
[ShipTimestamp] => 2015-04-15T13:19:32+05:30
[Shipper] => Array
(
[Address] => Array
(
[StreetLines] => Array
(
[0] => 1202 Chalet Ln
)
[City] =>
[StateOrProvinceCode] => AR
[PostalCode] => 72601
[CountryCode] => US
)
)
[Recipient] => Array
(
[Address] => Array
(
[PostalCode] => 97005
[CountryCode] => US
)
)
[ShippingChargesPayment] => Array
(
[PaymentType] => SENDER
[Payor] => Array
(
[AccountNumber] => 510087623
[CountryCode] => US
)
)
[RateRequestTypes] => LIST
[PackageCount] => 1
[PackageDetail] => INDIVIDUAL_PACKAGES
[RequestedPackageLineItems] => Array
(
[0] => Array
(
[Weight] => Array
(
[Value] => 1.25
[Units] => LB
)
[Dimensions] => Array
(
[Length] => 100
[Width] => 100
[Height] => 100
[Units] => IN
)
)
)
)
Спасибо, Симон. Это была проблема, размер, который я дал, был неправильным – Anju