Snow goosesendletter

Canada Post Address Validation: AddressComplete

Canada Post's address tool for developers is AddressComplete. It suggests addresses as a user types and, according to Canada Post, delivers real-time address verification. It is separate from sending mail. A mail API such as sendletter only checks that a postal code's first letter matches the province, so use AddressComplete if you need real verification.

What AddressComplete does

Canada Post describes AddressComplete as the next generation of address finders: start typing an address or postal code and it suggests results as you go. It also says it delivers real-time address verification. You add it to a web form with a few lines of code.

It is listed in Canada Post's developer catalog with the description: Enable intelligent, fast searching to increase address accuracy and relevancy.

How to get access

  • Canada Post links a sign-up page from the AddressComplete overview.
  • In its Developer Portal you create an app and choose Test or Production. Canada Post says test apps use static, stubbed data and do not trigger billing.
  • Canada Post's pages we read do not state AddressComplete pricing or credit limits. Check the sign-up pages before you build.

What a mail API checks

A print-and-mail API checks that your request is complete and well formed. sendletter validates the postal code format and compares the first letter of the postal code with the province you wrote, using Canada Post's own table: K, L, M, N and P are Ontario, for example, and V is British Columbia. A mismatch is returned as a warning, not a refusal.

That catches a typo. It cannot tell you that the street exists or that the address receives mail. For that you need a verification service.

The first-letter table is in Canadian postal code format.

Putting them together

  1. Use AddressComplete in your form, so the user picks a verified address.
  2. Store the result with its postal code and province.
  3. Send it to the mail API as the recipient. Any warning you still get points to a bug in how you stored it.

If you need to know whether a letter reached its destination, no address check gives you that. See Canada Post's API and letters for what its developer APIs do and do not cover.

Sources

Send a letter without leaving your desk

Write or upload it, add the addresses, and we print and mail it via Canada Post. From $3.49, printing and tax included.

Send a letter