v1/Customer/GetCustomer

 

API parameters
Required

 

Name In Type Description
Bearer Token Authorization string Authentication token.
CustomerId Parameter string CustomerId.

 

 

 

Response

 

[
   {
     "CustomerType": "Corporate",
     "Status": "Inactive",
     "Company":{  
     "Name": "abc Company",
     "Type": "LTD",
     "RegistrationNumber": "3333333",
     "SICCode": "123456987",
     "IncorporationDate": "01-01-2020",
     "Address":{
     "Address": "TestAddress",
     "City": "TestCity",
     "Postcode": "HA298UE",
     "Country": "GB"
     }
   },  
     "Contacts":[{
     "FirstName": "John",
     "LastName": "Cena",
     "DateofBirth": "07-09-1980",
     "Occupation": "Director",
     "Nationality": "GB",
     "PhoneNumber": "+44 123456789",
     "Email": "John@mailinator.com",
     "PrimaryContact": "false",
     "Status": "Inactive",
     "Address":{
     "Address": "TestAddress",
     "City": "TestCity",
     "PostCode": "HA298UE",
     "Country": "GB"  
     }
   },
    {
     "FirstName": "Mike",
     "LastName": "Tyson",
     "DateofBirth": "09-07-1980",
     "Occupation": "Director",
     "Nationality": "GB",
     "PhoneNumber": "+44 123456789",
     "Email": "Mike@mailinator.com",
     "PrimaryContact": "true",
     "Status": "Inactive",
     "Address":{
     "Address": "TestAddress",
     "City": "TestCity",
     "PostCode": "HA298UE",
     "Country": "GB"  
      }
    }
  ]                                  
 }
]
 

 

Error Codes

 

HTTP Status Code Description
401 Invalid credentials Invalid credentials
400 Customerid required Customerid required
404 Invalid customerid Invalid customerid