News
How to Integrate Nigeria’s Digital Postcode Into Your App

An address field can look complete and still fail the moment a driver, field worker, or service team tries to find the location. Nigeria’s Digital Postcode gives your app an 11-character alphanumeric reference for an addressable building or location. It sits beside the written address and gives people and systems a consistent way to refer to the same place.
This guide walks through the process from deciding where Digital Postcode fits in your product to testing a working integration.
Start With the User Problem
Begin with the moment where location uncertainty hurts the user or the business. Common use cases include:
- Ecommerce checkout and delivery
- Customer and merchant onboarding
- Pickup and dispatch requests
- Field-service appointments
- Property and utility records
- Branch, facility and asset management
- Location checks for business processes that need them
Write the outcome you want in one sentence. For example, “Let a customer add a postcode at checkout so the delivery team can find the correct location.”
Every later decision gets easier when that sentence is clear.
Decide Where the Postcode Enters the Journey
Users can provide a postcode they already know. You can also offer a search and confirmation flow so they can find the postcode associated with the right location.
Place the postcode field next to the address information it supports. Explain that the postcode identifies an addressable building or location, and let the user correct it before submitting.
Keep the written address visible. The normal address remains the human-readable description of the place, while the Digital Postcode provides a structured reference that systems can store and reuse.
A useful integration flow is:
Capture → Validate → Resolve → Confirm → Store → Reuse
For example, at ecommerce checkout, a customer can enter a Digital Postcode, the platform can validate and resolve it through the postcode service, show the relevant location information for confirmation, and store the postcode with the order.
Set Up Your Organisation
Before building the integration, set up your organisation using the official Postcode developer or organisation platform.
Confirm the current requirements for:
- Organisation registration and verification
- API access
- Authentication
- Permissions or access levels
- Testing and production environments
- Usage or commercial requirements
Take exact field names, endpoints, authentication rules, access levels and other technical requirements from the current API documentation. These details can change, so the current documentation should be your source of truth.
Keep Authentication Secure
If your integration uses secret credentials, keep them on a trusted backend. Browser code, mobile app bundles and public repositories should not contain secret credentials.
Follow the current API documentation when deciding which credentials can be used on the client and which must remain on your server.
Use separate credentials for testing and production where the platform supports this. Give each credential a clear label so your team knows which application and environment it belongs to.
Do not assume a credential is safe for client-side use simply because an application can technically include it.
Design the Lookup Flow
A basic integration can follow these steps:
- Receive the postcode from the user or an internal system.
- Check the format locally. Nigeria’s Digital Postcode is an 11-character alphanumeric code. Passing this format check does not prove that the postcode exists.
- Send the postcode to the official service for validation and resolution according to the current API documentation.
- Read the response using the documented response schema.
- Show the user enough location information to confirm they selected the intended place.
- Store only the information your workflow requires and that you are permitted to retain.
- Record enough information to diagnose failed requests without exposing credentials or sensitive information in your logs.
The confirmation step matters. A postcode is a reference to a specific addressable building or location. Showing the resolved location gives the user an opportunity to catch an incorrect entry before it becomes a failed delivery, pickup or site visit.
Do not use a nearby postcode when the correct location cannot be found. Instead, direct the user through the approved process for finding, adding or correcting the location.
Handle Errors as Product States
An API error should lead to an appropriate next action rather than a generic failure screen.
Plan for situations such as malformed input, a postcode that cannot be found, authentication or permission problems, usage restrictions and temporary service failures.
Use the status codes and error responses in the current API documentation to determine how your application should respond.
For bad input, help the user correct it. For authentication, permission or account problems, direct the issue to the appropriate administrator. For temporary service failures, provide a clear retry path based on the API’s documented guidance.
Write messages that tell people what to do. For example:
We could not find that postcode. Check the characters and try again.
Avoid exposing technical messages such as “Error 404” when they do not help the user solve the problem.
Most importantly, don't encourage someone to substitute the postcode of a nearby building or location. The postcode should resolve to the place the transaction actually refers to.
Avoid Unnecessary Repeat Lookups
Many journeys may attempt to resolve the same postcode multiple times. A customer might reload the checkout, or a dispatcher might reopen the same order.
Design your application so it does not make unnecessary requests when it already has the information required for the current transaction.
If you plan to cache resolved postcode information, first check the current API terms and documentation. Confirm what data may be cached, how long it may be retained, and when it should be refreshed.
This gives you the performance benefits of caching without assuming retention rights that may not apply to the data you receive.
Monitor Reliability and Usage
Once the integration is running, monitor its behaviour in the real user journey.
Useful signals include:
- Total lookup requests
- Successful and failed requests
- Postcodes that cannot be resolved
- Response times
- Duplicate requests
- Retry frequency
- Failures by integration or application
Use the monitoring and usage information provided by the platform, along with your application logs.
Pay particular attention to duplicate requests and aggressive retry behaviour. They can increase load and make an underlying product problem harder to diagnose.
If API usage has a commercial cost, also track the cost of completing the business outcome you care about, rather than looking only at the number of API requests.
Launch One Integration First
Pick one product journey and release it to a small group of users before introducing Digital Postcode everywhere.
For an ecommerce integration, for example, you could start with checkout and measure:
- Form completion rate
- Postcode-not-found rate
- Failed deliveries
- API success rate
- Response time
- Repeat lookup rate
If API usage is billed, add the cost per successful outcome once you have confirmed how the commercial model works.
The objective is not simply to prove that an API request succeeds. You want to know whether adding Digital Postcode improves the real journey that led you to integrate it in the first place.
Start with one clear use case, confirm the current API requirements, and test the complete journey from postcode entry to location confirmation. Once that flow works reliably, you have a stronger foundation for adding Digital Postcode to the rest of your product.
Build Your First Postcode Integration
You do not need to add Digital Postcode everywhere at once. Start with the journey where finding the right location matters most, whether that is checkout, dispatch, onboarding, or a field-service request.
A successful integration should do more than return a postcode. It should help your team and your users refer to the same location.
Ready to build? Create your organisation account today and start your first integration.
More in News
9 Things People Get Wrong About the New Postcode
The new digital postcode gives every addressable building or location an 11-character code. That simple idea invites quick conclusions.
How to Correct Wrong Information on Your Postcode
Your postcode is the digital address of your home or business. Couriers use it to find you. Emergency responders use it to reach you. Banks, delivery apps and g
