getCustomer

getCustomer

This method retrieves a single customer with customer fields based on the customerId.

Parameters

id (uuid, required): The unique identifier of the customer to retrieve.

Returns

A JSON object containing the details of the customer.

Usage Example

const axios = require('axios');

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

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