Skip to content

Instantly share code, notes, and snippets.

@chinshr
Created March 26, 2015 21:40
Show Gist options
  • Save chinshr/38f525b3101af3174f71 to your computer and use it in GitHub Desktop.
Save chinshr/38f525b3101af3174f71 to your computer and use it in GitHub Desktop.
FedEx Larkspur Dr., Healsburgh, CA", address validation error
POST https://gateway.fedex.com:443/xml/
> <AddressValidationRequest xmlns="http://fedex.com/ws/addressvalidation/v2">
<WebAuthenticationDetail>
<UserCredential>
<Key>wdnHHEULCYFPnEwq</Key>
<Password>KJgbpvpE6W5aroRiAXCAEJO0b</Password>
</UserCredential>
</WebAuthenticationDetail>
<ClientDetail>
<AccountNumber>632499744</AccountNumber>
<MeterNumber>107643591</MeterNumber>
<Localization>
<LanguageCode>en</LanguageCode>
<LocaleCode>us</LocaleCode>
</Localization>
</ClientDetail>
<Version>
<ServiceId>aval</ServiceId>
<Major>2</Major>
<Intermediate>0</Intermediate>
<Minor>0</Minor>
</Version>
<RequestTimestamp>2015-03-26T14:17:21-07:00</RequestTimestamp>
<Options>
<CheckResidentialStatus>true</CheckResidentialStatus>
</Options>
<AddressesToValidate>
<Address>
<StreetLines>667 Lark spur Dr.</StreetLines>
<City>Healdsburg</City>
<StateOrProvinceCode>CA</StateOrProvinceCode>
<PostalCode>95448</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</AddressesToValidate>
</AddressValidationRequest>
< <?xml version="1.0" encoding="UTF-8"?>
<hash>
<AddressValidationReply>
<HighestSeverity>SUCCESS</HighestSeverity>
<Notifications>
<Severity>SUCCESS</Severity>
<Source>wsi</Source>
</Notifications>
<Version>
<ServiceId>aval</ServiceId>
<Major>2</Major>
<Intermediate>0</Intermediate>
<Minor>0</Minor>
</Version>
<ReplyTimestamp>2015-03-26T16:17:21.167-05:00</ReplyTimestamp>
<AddressResults>
<ProposedAddressDetails>
<Score>92</Score>
<Changes>MODIFIED_TO_ACHIEVE_MATCH</Changes>
<ResidentialStatus>RESIDENTIAL</ResidentialStatus>
<DeliveryPointValidation>CONFIRMED</DeliveryPointValidation>
<Address>
<StreetLines>667 LARKSPUR DR</StreetLines>
<City>HEALDSBURG</City>
<StateOrProvinceCode>CA</StateOrProvinceCode>
<PostalCode>95448-4776</PostalCode>
<CountryCode>US</CountryCode>
</Address>
<RemovedNonAddressData nil="true"/>
</ProposedAddressDetails>
</AddressResults>
</AddressValidationReply>
</hash>
[47] PASSED and should FAIL reason: ''Larkspur' should be in one word.' - 667 Lark spur Dr.; Healdsburg; CA; 95448 (667 LARKSPUR DR [0.88]; HEALDSBURG [1.00]; CA [1.00]; 95448-4776) <FedEx Score: 92, confirmed? true, available? true, changes: MODIFIED_TO_ACHIEVE_MATCH>
POST https://gateway.fedex.com:443/xml/
> <AddressValidationRequest xmlns="http://fedex.com/ws/addressvalidation/v2">
<WebAuthenticationDetail>
<UserCredential>
<Key>wdnHHEULCYFPnEwq</Key>
<Password>KJgbpvpE6W5aroRiAXCAEJO0b</Password>
</UserCredential>
</WebAuthenticationDetail>
<ClientDetail>
<AccountNumber>632499744</AccountNumber>
<MeterNumber>107643591</MeterNumber>
<Localization>
<LanguageCode>en</LanguageCode>
<LocaleCode>us</LocaleCode>
</Localization>
</ClientDetail>
<Version>
<ServiceId>aval</ServiceId>
<Major>2</Major>
<Intermediate>0</Intermediate>
<Minor>0</Minor>
</Version>
<RequestTimestamp>2015-03-26T14:17:21-07:00</RequestTimestamp>
<Options>
<CheckResidentialStatus>true</CheckResidentialStatus>
</Options>
<AddressesToValidate>
<Address>
<StreetLines>667 Larkspur Dr.</StreetLines>
<City>Healdsburg</City>
<StateOrProvinceCode>CA</StateOrProvinceCode>
<PostalCode>95448</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</AddressesToValidate>
</AddressValidationRequest>
< <?xml version="1.0" encoding="UTF-8"?>
<hash>
<AddressValidationReply>
<HighestSeverity>SUCCESS</HighestSeverity>
<Notifications>
<Severity>SUCCESS</Severity>
<Source>wsi</Source>
</Notifications>
<Version>
<ServiceId>aval</ServiceId>
<Major>2</Major>
<Intermediate>0</Intermediate>
<Minor>0</Minor>
</Version>
<ReplyTimestamp>2015-03-26T16:17:21.859-05:00</ReplyTimestamp>
<AddressResults>
<ProposedAddressDetails>
<Score>0</Score>
<Changes type="array">
<Change>NORMALIZED</Change>
<Change>HOUSE_OR_BOX_NUMBER_NOT_FOUND</Change>
</Changes>
<ResidentialStatus>RESIDENTIAL</ResidentialStatus>
<DeliveryPointValidation>UNCONFIRMED</DeliveryPointValidation>
<Address>
<StreetLines>667 LARKSPUR DR</StreetLines>
<City>HEALDSBURG</City>
<StateOrProvinceCode>CA</StateOrProvinceCode>
<PostalCode>95448</PostalCode>
<CountryCode>US</CountryCode>
</Address>
<RemovedNonAddressData nil="true"/>
</ProposedAddressDetails>
</AddressResults>
</AddressValidationReply>
</hash>
[48] FAILED and should PASS reason: ''Lark spur' two words passes.' - 667 Larkspur Dr.; Healdsburg; CA; 95448 (667 LARKSPUR DR [0.94]; HEALDSBURG [1.00]; CA [1.00]; 95448) <FedEx Score: 0, confirmed? false, available? true, changes: ["NORMALIZED", "HOUSE_OR_BOX_NUMBER_NOT_FOUND"]> => address1: Street address not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment