Vendure Dutch Postalcode plugin

Decrease checkout friction by autofilling addresses based on postal code and house number with this Vendure plugin

Made by a Vendure Silver Partner!
This plugin is free for personal and commercial use. Just follow the instructions below.

Increase conversion by automatically lookup up a customer based on their postalcode and housenumber.

When a custom fills out his postalcode and housenumber, this plugin retrieves the streetname and city for the customer.

Installation

yarn install vendure-plugin-dutch-postalcode
  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.