Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resolve "Airbill is not allowed for Origin Country" issue #126

Open
subindev1011 opened this issue Jan 20, 2017 · 2 comments
Open

Comments

@subindev1011
Copy link

Hi,

Kindly find below the request sent and response received.

<RateRequest xmlns="http://fedex.com/ws/rate/v13"> <WebAuthenticationDetail> <UserCredential> <Key>XXX</Key> <Password>XXX</Password> </UserCredential> </WebAuthenticationDetail> <ClientDetail> <AccountNumber>XXX</AccountNumber> <MeterNumber>XXX</MeterNumber> <Localization> <LanguageCode>en</LanguageCode> <LocaleCode>us</LocaleCode> </Localization> </ClientDetail> <Version> <ServiceId>crs</ServiceId> <Major>13</Major> <Intermediate>0</Intermediate> <Minor>0</Minor> </Version> <ReturnTransitAndCommit>true</ReturnTransitAndCommit> <RequestedShipment> <DropoffType>REGULAR_PICKUP</DropoffType> <ServiceType>FEDEX_GROUND</ServiceType> <PackagingType>YOUR_PACKAGING</PackagingType> <Shipper> <Contact> <PersonName>Sender</PersonName> <CompanyName>Company</CompanyName> <PhoneNumber>EEEEEEEEEEE</PhoneNumber> </Contact> <Address> <StreetLines>Main Street</StreetLines> <City>Delhi</City> <StateOrProvinceCode>DL</StateOrProvinceCode> <PostalCode>110001</PostalCode> <CountryCode>IN</CountryCode> </Address> </Shipper> <Recipient> <Contact> <PersonName>customer</PersonName> <CompanyName>vghbjn</CompanyName> <PhoneNumber>EEEEEEEEEE</PhoneNumber> </Contact> <Address> <StreetLines>8th main</StreetLines> <City>Bangalore</City> <StateOrProvinceCode>KA</StateOrProvinceCode> <PostalCode>560045</PostalCode> <CountryCode>IN</CountryCode> <Residential>true</Residential> </Address> </Recipient> <ShippingChargesPayment> <PaymentType>SENDER</PaymentType> <Payor> <ResponsibleParty> <AccountNumber>XXX</AccountNumber> <Contact> <PersonName>Sender</PersonName> <CompanyName>Company</CompanyName> <PhoneNumber>EEEEEEEEEE</PhoneNumber> </Contact> </ResponsibleParty> </Payor> </ShippingChargesPayment> <RateRequestTypes>ACCOUNT</RateRequestTypes> <PackageCount>1</PackageCount> <RequestedPackageLineItems> <GroupPackageCount>1</GroupPackageCount> <Weight> <Units>LB</Units> <Value>2</Value> </Weight> <Dimensions> <Length>10</Length> <Width>5</Width> <Height>4</Height> <Units>IN</Units> </Dimensions> </RequestedPackageLineItems> </RequestedShipment> </RateRequest>

response:
{"RateReply"=>{"HighestSeverity"=>"ERROR", "Notifications"=>{"Severity"=>"ERROR", "Source"=>"crs", "Code"=>"879", "Message"=>"Airbill is not allowed for Origin Country.", "LocalizedMessage"=>"Airbill is not allowed for Origin Country."}, "Version"=>{"ServiceId"=>"crs", "Major"=>"13", "Intermediate"=>"0", "Minor"=>"0"}}}

@gonzalosuarez
Copy link

Did you find the solution?

@skaran185
Copy link

image

Check and change with your Service type that fedex is providing to your origin.
Old : FEDEX_GROUND
New : FEDEX_EXPRESS_SAVER

public enum ServiceType
{
PRIORITY_OVERNIGHT = 1,
STANDARD_OVERNIGHT,
FEDEX_EXPRESS_SAVER,
FEDEX_2_DAY,
FEDEX_2_DAY_AM,
FEDEX_FIRST_FREIGHT,
FEDEX_FREIGHT_PRIORITY,
FEDEX_FREIGHT_ECONOMY,
FIRST_OVERNIGHT,
SAME_DAY,
SAME_DAY_CITY,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants