    "definitions": {
 diff --git a/Koha/REST/V1/NorwegianPatronDB.pm b/Koha/REST/V1/NorwegianPatronDB.pm
 new file mode 100644
-index 0000000..311c9b8
+index 0000000..feda8a1
 --- /dev/null
 +++ b/Koha/REST/V1/NorwegianPatronDB.pm
-@@ -0,0 +1,59 @@
+@@ -0,0 +1,73 @@
 +package Koha::REST::V1::NorwegianPatronDB;
 +
 +# This file is part of Koha.

+    unless ($res->fault) {
+        my $nl = $res->result();
+        warn Dumper($nl);
+        return $c->$cb({message => "Result from central lookup: $nl->{'melding'}", results => int($nl->{'antall_treff'}) }, 200);
+    } else {
+        return $c->$cb({error => "Error in call against Norwegian Patron Database"}, 403);
+    }

+    unless ($user && haspermission($user->userid, {borrowers => 1})) {
+       return $c->$cb({error => "You don't have the required permission"}, 403);
+    }
+    my $response = {
+        count => 0,
+        localdb => 0,
+        centraldb => 0,
+        message => ""
+    };
+
+    # lookup by birthdate, name and/or ssn
+    my $params = $c->req->query_params->to_hash;
+
+    # local lookup
+    my $localpatrons = Koha::Patrons->search({
+        surname => $params->{surname},
