I'm trying to integrate Aramex rate calculator API for my e-commerce system for Local delivery service and I'm getting this error.
[Code] => ERR52
[Message] => OriginAddress - Service Offering Unavailable for zip code (01300)
And
[Code] => ERR52
[Message] => DestinationAddress - Service Offering Unavailable for zip code (80000)
My code:
$params = array(
'ClientInfo' => array(
'AccountCountryCode' => 'LK',
'AccountEntity' => 'CMB',
'AccountNumber' => 'xxxxxxxxx',
'AccountPin' => 'xxxxxx',
'UserName' => 'xxxxx@xxxx.xxx',
'Password' => 'xxxxxxx',
'Version' => 'v1.0'
),
'Transaction' => array(
'Reference1' => '001'
),
'OriginAddress' => array(
'Line1' => 'Arimac Digital',
'Line2' => '6th Lane',
'Line3' => 'Kollupitiya',
'City' => 'Colombo',
'PostCode' => '01300',
'CountryCode' => 'LK'
),
'DestinationAddress' => array(
'Line1' => 'Mr. Lakshitha',
'Line2' => '6th Lane',
'Line3' => 'Karapitiya',
'City' => 'Galle',
'PostCode' => '80000',
'CountryCode' => 'LK'
),
'ShipmentDetails' => array(
'PaymentType' => 'C',
'ProductGroup' => 'DOM',
'ProductType' => 'PPX',
'ActualWeight' => array('Value' => 0.2, 'Unit' => 'KG'),
'ChargeableWeight' => array('Value' => 0.2, 'Unit' => 'KG'),
'NumberOfPieces' => 1
)
);
$soapClient = new SoapClient('aramex-rates-calculator-wsdl.wsdl', array('trace' => 1));
$results = $soapClient->CalculateRate($params);
First I thought, this is because, local deliveries are not supported in my country (Sri Lanka) by aramex. But, from their website, I can calculate the rates between places inside my country without any error.
Can anybody tell me, whether I'm adding all the parameters correctly ? Is there any additional parameters needed ?