getCustomerDocuments
This method allows you to retrieve a list of documents associated with a specific customer.
Parameters
customerId (string, required): The unique identifier of the customer whose documents you want to retrieve.
Returns
A JSON array containing the customer's documents, each with fields like id
, objectKey
, filename
, mimetype
, description
, cmsProjectId
, createdAt
, createdBy
, and presignedUrl
.
Usage Example
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://api.nexera.id/customers/:customerId/documents',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});