This API endpoint allows you to retrieve the details of a customer record for a specified subcompany. You need to provide the subcompany ID and the customer's unique ID in the URL path. The takeover secret must be included in the header.
Last updated 4 months ago
Successful Response
const response = await fetch('https://v3-api.proto.cx/api/platform/v1/customers/{subcompany_id}/customer/{provided_unique_id}/get-customer', { method: 'GET', headers: { "authorization": "text" }, }); const data = await response.json();
{ "id": "text", "external_customer_id": "text", "provided_unique_id": "text", "name": "text", "location": "text", "email": "name@gmail.com", "phone_number": "text", "avatar": "text", "notes": [ { "id": "text", "created_at": "2024-11-21T06:47:02.017Z", "updated_at": "2024-11-21T06:47:02.017Z", "text": "text", "color": "text", "created_by_id": "text" } ], "tags": [ { "id": "text", "tag": "text", "color": "text" } ], "tag_groups": [ { "id": "text", "name": "text", "color": "text", "tags": [ { "id": "text", "tag": "text", "color": "text" } ] } ], "gateway_profiles": [ { "id": "text", "gateway_type": "proto_v2", "gateway_user_id": "text", "name": "text", "location": "text", "email": "text", "phone_number": "text", "avatar": "text", "ip_address": "0.0.0.0", "browser": "text", "os": "text" } ] }