Skip to content

MngGetCustomer

Deprecated

The command still works, with no change to its request, response, or required permissions. It is superseded by a pair of commands split by customer kind: MngGetClient (see_clients) and MngGetLead (see_leads). See Deprecated Commands.

Returns one customer by customer_id. Leads are retrieved with this same method and are identified by customer_kind = 0.

Access Control

Requires CRM access and see_customers. The customer brand and desk must be inside the manager scope. Admin scope bypasses this check.

If the manager does not have see_customer_contacts, email and phone are returned masked.

Request

{
  "command": "MngGetCustomer",
  "extID": "1",
  "data": {
    "customer_id": 1
  }
}

Response Data

{
  "customer": {
    "customer_id": 1,
    "avatar": "8e68414e-0e3f-48dd-b7b8-f5be9e26d4f7.svg",
    "email": "[email protected]",
    "phone": "+35700000000",
    "full_name": "John Smith",
    "status": 0,
    "lifecycle_flags": 5,
    "customer_kind": 1,
    "conversion_flags": 1,
    "deposit_allowed": 1,
    "withdrawal_allowed": 1
  }
}

lifecycle_stage is no longer part of the customer object. Milestones are returned as the lifecycle_flags bit mask, and the lead or client kind as customer_kind; see Lifecycle Flags and Lead and Client Kind.