Help out your customers by looking up their full address by searching on postal code and house number
Vendure Plugin Dutch Postalcodes
Official documentation here
Find Dutch addresses by postalcode and housenumber using https://postcode.tech’s api. You need to register to obtain an API key, but registering is free of charge.
Getting started
- Register at https://postcode.tech/ to get an API key
- Add the following code to your plugins in
vendure-config.ts
import { DutchPostalCodePlugin } from "@pinelab/vendure-plugin-dutch-postalcode"
plugins: [
DutchPostalCodePlugin.init('your-postcode.tech-apikey'),
...
]
- Start your Vendure server
- You can now lookup address details based on a postalcode and housenumber via the shop-api
query {
dutchAddressLookup(input: { postalCode: "8932BR", houseNumber: "48" }) {
lat
lon
postalCode
houseNumber
street
city
municipality
province
}
}
The api has permission Public
set, which requires you to be authorized as guest or logged in customer. If you have an
activeOrder, you’re usually authorized.
Create your first commerce experience with Vendure in less than 2 minutes
Vendure is a registered trademark. Our trademark policy ensures that our brand and products are protected. Feel free to reach out if you have any questions about our trademarks.
Documentation
Newsletter
Get the latest product news and announcements delivered directly to your inbox.