Get customer by ID
GET
/customers/{id}
const url = 'https://api.pipevest.com/v1/customers/clx0a1b2c3d4e5f6g7h8i9j0k';const options = { method: 'GET', headers: {Authorization: 'Bearer <token>', 'x-client-id': '<x-client-id>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pipevest.com/v1/customers/clx0a1b2c3d4e5f6g7h8i9j0k \ --header 'Authorization: Bearer <token>' \ --header 'x-client-id: <x-client-id>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
clx0a1b2c3d4e5f6g7h8i9j0kCustomer identifier (CUID string).
Responses
Section titled “Responses”Customer
Media typeapplication/json
object
data
object
id
string
organizationId
string
firstName
string
lastName
string
msisdn
string
isActive
boolean
identificationNumber
string
identificationType
string
referenceId
string
createdAt
string format: date-time
updatedAt
string format: date-time
Example
{ "data": { "id": "clx0a1b2c3d4e5f6g7h8i9j0k", "organizationId": "clorgb2c3d4e5f6g7h8i9j0k1", "firstName": "John", "lastName": "Doe", "msisdn": "260971234567", "isActive": true, "identificationType": "SSN" }}Authentication failed
Media typeapplication/json
object
error
string
message
string
Example
{ "error": "Unauthorized", "message": "Invalid organization authentication token"}Resource not found
Media typeapplication/json
object
error
string
message
string
Example
{ "error": "Not found", "message": "Customer not found"}