I have FedEx Smart Post enabled as a shipping service with the correct indicia type and hub ID selected. However, I'm not getting any Smart Post rates returned. The service is enabled on FedEx's side. I am not including the insurance value (#2690041: Smart Post fails to return rate if insurance rates are collected).
Here is my request (with sensitive info removed) and the response is attached.
array (
'TransactionDetail' =>
array (
'CustomerTransactionId' => ' *** Rate Request v13 using Drupal Commerce ***',
),
'Version' =>
array (
'ServiceId' => 'crs',
'Major' => '13',
'Intermediate' => '0',
'Minor' => '0',
),
'ReturnTransitAndCommit' => true,
'RequestedShipment' =>
array (
'DropoffType' => 'REGULAR_PICKUP',
'ShipTimestamp' => '2019-01-31T10:15:59-05:00',
'PackagingType' => 'YOUR_PACKAGING',
'Shipper' =>
array (
'Contact' =>
array (
'PersonName' => 'MrPeanut',
'CompanyName' => 'MrPeanut',
),
'Address' =>
array (
'StreetLines' =>
array (
0 => '123 My Address Here',
),
'City' => 'Peanutville',
'StateOrProvinceCode' => 'NY',
'PostalCode' => '12345',
'CountryCode' => 'US',
),
),
'Recipient' =>
array (
'Contact' =>
array (
'PersonName' => 'MrPeanut Recipient',
),
'Address' =>
array (
'StreetLines' =>
array (
0 => '456 Recipient Address',
),
'City' => 'Peanutville',
'PostalCode' => '12345',
'CountryCode' => 'US',
'Residential' => true,
'StateOrProvinceCode' => 'NY',
),
),
'RateRequestTypes' => 'ACCOUNT',
'PackageDetail' => 'INDIVIDUAL_PACKAGES',
'PackageCount' => 1,
'RequestedPackageLineItems' =>
array (
0 =>
array (
'SequenceNumber' => 1,
'GroupPackageCount' => 1,
'Weight' =>
array (
'Value' => 1.5,
'Units' => 'LB',
),
'Dimensions' =>
array (
'Length' => '12',
'Width' => '12',
'Height' => '12',
'Units' => 'IN',
),
),
),
'SmartPostDetail' =>
array (
'Indicia' => 'PARCEL_SELECT',
'HubId' => '5150',
),
),
'WebAuthenticationDetail' =>
array (
'UserCredential' =>
array (
'Key' => 'removed',
'Password' => 'removed',
),
),
'ClientDetail' =>
array (
'AccountNumber' => 'removed',
'MeterNumber' => 'removed',
),
)
Comments
Comment #2
mrpeanut commentedAnd like normal, once I post a support request, I fix the issue! I tried to apply the patch from #2702299: Smart Post Hub Id error before FedEx enabled Smart Post. I had messed up something while doing that. Reverting back to the original code fixed my issue.