API
API Reference
Customer
Get Customer

Get Customer

Retrieve a single customer by the external ID you already use to create or update them.

For interactive API documentation, see the Swagger reference (opens in a new tab).

Endpoint

MethodURL
GEThttps://api.customerscore.io/api/v1/customer/{customerExternalId}

Path Parameters

ParameterTypeRequiredDescription
customerExternalIdstringYesCustomer external ID — the same identifier used to create/update.

Query Parameters

ParameterTypeRequiredDescription
propertiesstringNoComma-separated custom property codenames to include in the properties object (e.g. mrr,plan). Omit to return all. Core fields are always returned.

Example Request

curl -X GET "https://api.customerscore.io/api/v1/customer/12345?properties=mrr,plan" \
  -H "customerscore-key: your-generated-key"

Response Body

FieldTypeNullableDescription
idstringNoCustomer external ID (the identifier from your system).
customerscore_idnumberNoInternal CustomerScore ID of the customer record.
namestringYesCustomer name.
fitscorenumberYesFit score.
engagementscorenumberYesEngagement (health) score.
churn_risknumberYesChurn risk score.
is_churnedbooleanYesWhether the customer is churned.
last_seenstringYesLatest scoring date (YYYY-MM-DD).
engagementscore_differencenumberYesEngagement score change since the previous scoring record.
engagementscore_trendobjectYesEngagement score history (last 15 records within 1 year), keyed by scoring date (YYYY-MM-DD).
ownerstringYesEmail of the user who owns this customer. null when unassigned.
tagsstring[]NoTitles of the tags assigned to this customer. Empty array when none.
propertiesobjectNoCustom property values keyed by codename.
createdAtstringYesWhen the customer record was created (ISO 8601).
updatedAtstringYesWhen the customer record was last updated (ISO 8601).

Example Response

{
  "id": "12345",
  "customerscore_id": 98765,
  "name": "Acme Corporation",
  "fitscore": 82,
  "engagementscore": 67,
  "churn_risk": 18,
  "is_churned": false,
  "last_seen": "2024-06-15",
  "engagementscore_difference": 3,
  "engagementscore_trend": {
    "2024-06-14": 64,
    "2024-06-15": 67
  },
  "owner": "jane@acme.com",
  "tags": ["VIP", "Trial"],
  "properties": {
    "mrr": 1500,
    "plan": "enterprise"
  },
  "createdAt": "2024-01-10T08:30:00.000Z",
  "updatedAt": "2024-06-15T09:00:00.000Z"
}

Response Codes

CodeDescription
200The customer was found and returned
401Unauthorized - Missing customerscore-key in the header
403Forbidden - Invalid key
404Customer not found
405Method Not Allowed - Only GET method is allowed