updateCustomer

updateCustomer

This method allows you to update a single customer's details.

Parameters

  • id (uuid, required): The unique identifier of the customer to be updated.
  • Body Parameters:
    • riskScore (string, nullable): The risk score of the customer. Possible values: Low, Medium, High, No risk.
    • type (string, nullable): The type of the customer. Possible values: Individual, Company.
    • onboardingLevel (string, nullable): The onboarding level of the customer. Possible values: Sign-up, AML screening, KYC, Questionaire, Onboarded, Onboarding, KYB, Onboarded.
    • status (string, nullable): The status of the customer. Possible values: Active, Rejected, Dormant, To be reviewed, Failed, Escalated, Terminated, No status.
    • reason (string, nullable): The reason for the status or other customer-related information.

Returns

A string response indicating the status of the operation.

Usage Example

const axios = require('axios');
let data = JSON.stringify({
  "riskScore": "Low",
  "type": "Individual",
  "onboardingLevel": "Sign-up",
  "status": "Active",
  "reason": "string"
});

let config = {
  method: 'patch',
  maxBodyLength: Infinity,
  url: 'https://api.nexera.id/customers/:id',
  headers: { 
    'Content-Type': 'application/json', 
    'Accept': 'application/json', 
    'Authorization': 'Bearer <TOKEN>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});