CustomerLookup

Summary

Returns the customers address based on social security number or mobile number.

Resource URL /api/v3/lookup/customer
HTTP method POST
Content type application/json; charset=utf-8

Input parameters

Parameter name Location Type / Model Description
request Body CustomerLookupRequest required

Responses

HTTP status code Model Comment
OK(200) CustomerLookupResponse
BadRequest (400) array of ResponseMessage Request failed. Check response model for list of Errors.
Unauthorized (401) API user is unauthorized. Make sure X-Auth-Key header is sent.
InternalServerError (500) Request failed due internal error. Retry request later.

Examples

{
  "mobilePhone": "447755664",
  "countryCode": "NO"
}
{
  "userProfiles": [
    {
      "firstName": "Santa",
      "lastName": "Claus",
      "mobileNumber": "447755664",
      "eMail": "email@arvato.com",
      "languageCode": "NO",
      "addressList": [
        {
          "street": "Some vei",
          "streetNumber": "95",
          "entrance": "Z",
          "city": "Oslo",
          "postalCode": "1001",
          "country": "NORWAY"
        }
      ]
    }
  ]
}
var AfterPayApi = require("./afterPay.js");
var apiKeyAuthentication = require("./api_key_filter");

var key = 'CHANGE_ME';
var client = new AfterPayApi().addFilter(apiKeyAuthentication.create(key));
var request = {
  "mobilePhone": "447755664",
  "countryCode": "NO"
};

client.Common.customerLookup(request, 
  function(err, response, httpRequest, httpResponse) {
  });
$LOAD_PATH.unshift File.dirname(__FILE__)
require 'after_pay.rb'
require 'json'

client = AfterPayApi::AfterPay.new(AfterPayApi::ApiKeyCredentials.new('YOUR_API_KEY'))

requestAsJson = '{"mobilePhone":"447755664","countryCode":"NO"}'
request = AfterPayApi::Models::CustomerLookupRequest.deserialize_object(JSON.parse(requestAsJson))


client.common.customerLookup_async(request).then{|response|

}.execute.wait
var key = "CHANGE_ME";
var client = new CommonApi(new Configuration() { DefaultHeader = new Dictionary<string, string>() { { "X-Auth-Key", key} } });

var request = new CustomerLookupRequest(){
  MobilePhone = "447755664",
  CountryCode = CountryCode.NO
};

var responce = client.CommonCustomerLookup(request);