Skip to content

[Bug]: FedEx Registration Adress Validation not working #656

@TGKN

Description

@TGKN

Software Version

7.7.1

Language Version

4.8.1

Operating System

Windows 11

What happened?

1.Implement new FedEx Registration flow according to https://support.easypost.com/hc/en-us/articles/35262738410253-FedEx-Multi-Factor-Authentication
2.When calling the address valiation api https://api.easypost.com/v2/fedex_registrations/FEDEX_ACCOUNT_NUMBER/address an error is returned indicating that postal code and country code need to be passed. However these have been specified

Reason why this is happening:
Expected parameter structure (as per spec.):
"address_validation": {
"name": "Account Name",
"street1": "1234 My Address",
"city": "MyCity",
"state": "ST",
"postal_code": "12345",
"country_code": "US"
},
"easypost_details": {
"action": "update",
"type": "FedexAccount",
"carrier_account_id": "ca_123456778"
}

Current structure generated by easypost c# nuget:
{
"address_validation": {
"name": "somename",
"street1": "some address",
"city": "some city",
"state": "NY",
"zip": "12345",
"country": "US"
},
"easypost_details": {
"action": "create",
"type": "FedexAccount"
}
}

As you can see the parameters "zip" and "country" need to be renamed to "postal_code" and "country_code" otherwise the address validation will never work.
...

What was expected?

Address valiation to work properly.

Sample Code

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssue is being researched

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions