Back to plugins & integrations

Dutch Postalcode Lookup icon

Dutch Postalcode Lookup

Help out your customers by looking up their full address by searching on postal code and house number

npm install @pinelab/vendure-plugin-dutch-postalcode

Integration type

Partner
Plugins built by certified Vendure partners

Category

Other

Last published

118 days ago

Downloads in past month

23
README.md

Vendure Plugin Dutch Postalcodes

Vendure version

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

  1. Register at https://postcode.tech/ to get an API key
  2. Add the following code to your plugins in vendure-config.ts
plugins: [
  DutchPostalCodePlugin.init('your-postcode.tech-apikey'),
  ...
]
  1. Start your Vendure server
  2. 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.