The Fedex plugin in cs-cart 4.2.4 doesnt work out of the box with India Fedex.
We created our account with Fedex India and got all our credentials but when we test it with those credentials for a local pick up and delivery for Standard Overnight it gives an error as below.
Checked with Fedex Team and they say that please check with cs-cart team for the fix on the expected variables which are missing in XML. Has some one integrated with India Fedex.
“Please set The PurposeOfShipmentType to SOLD or NOT SOLD to get the desired result”
<br />
URL: https://wsbeta.fedex.com:443/web-services<br />
Request: '<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v9="http://fedex.com/ws/rate/v9"> <SOAP-ENV:Body> <v9:RateRequest> <v9:WebAuthenticationDetail> <v9:UserCredential> <v9:Key>TvcuDvcguC2bJ</v9:Key> <v9:Password>L7zo9l25xQdeJ2mx8pfTk</v9:Password> </v9:UserCredential> </v9:WebAuthenticationDetail> <v9:ClientDetail> <v9:AccountNumber>510087</v9:AccountNumber> <v9:MeterNumber>118674</v9:MeterNumber> </v9:ClientDetail> <v9:TransactionDetail> <v9:CustomerTransactionId>Rates Request</v9:CustomerTransactionId> </v9:TransactionDetail> <v9:Version> <v9:ServiceId>crs</v9:ServiceId> <v9:Major>9</v9:Major> <v9:Intermediate>0</v9:Intermediate> <v9:Minor>0</v9:Minor> </v9:Version> <v9:RequestedShipment> <v9:DropoffType>REGULAR_PICKUP</v9:DropoffType> <v9:PackagingType>YOUR_PACKAGING</v9:PackagingType> <v9:Shipper> <v9:Address> <v9:StreetLines>M-9</v9:StreetLines> <v9:City>New Delhi</v9:City> <v9:StateOrProvinceCode>DL</v9:StateOrProvinceCode> <v9:PostalCode>110018</v9:PostalCode> <v9:CountryCode>IN</v9:CountryCode> </v9:Address> </v9:Shipper> <v9:Recipient> <v9:Address> <v9:StreetLines>M-9</v9:StreetLines> <v9:City>Bangalore</v9:City> <v9:StateOrProvinceCode>KA</v9:StateOrProvinceCode> <v9:PostalCode>560001</v9:PostalCode> <v9:CountryCode>IN</v9:CountryCode> <v9:Residential>true</v9:Residential> </v9:Address> </v9:Recipient> <v9:ShippingChargesPayment> <v9:PaymentType>SENDER</v9:PaymentType> <v9:Payor> <v9:AccountNumber>510087860</v9:AccountNumber> <v9:CountryCode>IN</v9:CountryCode> </v9:Payor> </v9:ShippingChargesPayment> <v9:RateRequestTypes>LIST</v9:RateRequestTypes> <v9:PackageCount>1</v9:PackageCount> <v9:PackageDetail>INDIVIDUAL_PACKAGES</v9:PackageDetail> <v9:RequestedPackageLineItems> <v9:Weight> <v9:Units>LB</v9:Units> <v9:Value>2.2</v9:Value> </v9:Weight> <v9:Dimensions> <v9:Length>10</v9:Length> <v9:Width>10</v9:Width> <v9:Height>10</v9:Height> <v9:Units>IN</v9:Units> </v9:Dimensions> </v9:RequestedPackageLineItems> </v9:RequestedShipment> </v9:RateRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope>'<br />
Response: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><RateReply xmlns="http://fedex.com/ws/rate/v9"><HighestSeverity>ERROR</HighestSeverity><Notifications><Severity>ERROR</Severity><Source>crs</Source><Code>894</Code><Message>CustomsClearanceDetail object cannot be null.</Message><LocalizedMessage>CustomsClearanceDetail object cannot be null.</LocalizedMessage></Notifications><Notifications><Severity>ERROR</Severity><Source>crs</Source><Code>691</Code><Message>The PurposeOfShipmentType is null, empty or invalid.</Message><LocalizedMessage>The PurposeOfShipmentType is null, empty or invalid.</LocalizedMessage></Notifications><TransactionDetail><CustomerTransactionId>Rates Request</CustomerTransactionId></TransactionDetail><Version><ServiceId>crs</ServiceId><Major>9</Major><Intermediate>0</Intermediate><Minor>0</Minor></Version></RateReply></SOAP-ENV:Body></SOAP-ENV:Envelope><br />