v1/Customer/UpdateCustomer

 

API parameters
Required

 

Name In Type Description Default
Bearer Token Authorization string Authentication token.
CustomerId Json Data string Customer Id
CustomerStatus Json Data string Customer Status of the contact. Active,Inactive
Name Json Data string Name Of the Company,Required Only in Corporate.
Type Json Data string Type Of the Company,Required Only in Corporate. LTD,LLP,Sole Trader,Others,Trust,Public Limited
SICCode Json Data string SICCode Of the Company,Required Only in Corporate.
RegistrationNumber Json Data string Registration Number Of the Company,Required Only in Corporate.
IncorporationDate Json Data string Incorporation Date Of the Company,Required Only in Corporate.
AddressLine1 Json Data string Address Of the Company,Required Only in Corporate.
City Json Data string City Of the Company,Required Only in Corporate.
PostCode Json Data string Post Code Of the Company,Required Only in Corporate.
Country Json Data string Country Of the Company,Required Only in Corporate.
Status Json Data string Contact status. Active,Inactive

 

 

 

Request

 

{   
  "CustomerId": "7F76C7B1-443D-41AC-B6B7-",
  "CustomerStatus": "Active",
  "CompanyDetail": {
  "Name": "abc Company",
  "Type": "LTD",
  "SICCode": "123456987",
  "RegistrationNumber": "3333333",
  "IncorporationDate": "01-01-2020",
  "AddressDetail":{ 
  "AddressLine1": "TestAddress",
  "City": "TestCity",
  "PostCode": "HA298UE",
  "Country": "GB"
  }
}    
 
}

 

Response

 

{

     "message": "Customer updated successfully!!!"
 
}

 

Error Codes

 

HTTP Status Code Description
401 Invalid credentials Invalid credentials
400 Invalid JSON body Invalid JSON body
400 Customerid required Customerid required
404 Invalid customerid Invalid customerid
400 Customer status required Customer status required
404 Invalid customer status Invalid customer status
400 Company name required Company name required
400 Company type required Company type required
404 Invalid company type Invalid company type
400 Company SIC code required Company SIC code required
400 Company registration number required Company registration number required
400 Company incorporation date required Company incorporation date required
400 Company incorporation date should be in dd/mm/yyyy Company incorporation date should be in dd/mm/yyyy
400 Company incorporation date should not be a future date Company incorporation date should not be a future date
400 Company addressline1 required Company addressline1 required
400 Company city required Company city required
400 Company post code required Company post code required
400 Company country required Company country required
404 Invalid company country Invalid company country