Services
Postal code inquiry
Finds the address registered for a postal code with the National Post Company, and can return the full address.
Service codepostal_code_address
What the customer provides
- Postal code (10 digits).
Outcomes
The step ends with one of these keys in steps[].outcome. In an advanced flow, each one can lead to a different step or end.
| Outcome | Meaning |
|---|---|
match | The postal code exists and has an address. |
no_match | The postal code was not found or is not valid. |
error | The inquiry could not be done. |
Settings
You set these per flow in the panel flow builder.
| Setting | Default | Meaning |
|---|---|---|
return_address | true | Add the full address, province, district and street to the result. |
Result
The step result comes from the engine jibit
| Field | Meaning |
|---|---|
data.postalCode | The postal code. |
data.address | Full registered address (with return_address). |
data.province | Province (with return_address). |
data.district | District (with return_address). |
data.street | Street; the result also has street2, number, floor, sideFloor, buildingName and description when known. |
data.cached | true when the answer came from a recent identical inquiry instead of a new one. |
Reasons
postal_code_not_foundinvalid_inputprovider_<code>
Values in angle brackets stand for a family of reasons: provider_… means the engine could not be reached or returned an error, and the outcome is error.