Get Customer
GET
/customers
Retrieve a single customer by phone
or email
.
Set locations=true
to include the customer's locations.
GET /customers
curl \
-X GET https://{workspace}.fleetrunnr.com/api/v1/customers?phone=string&email=hello%40example.com \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"message": "success",
"data": {
"customer": {
"uuid": "69e93118-a581-4a13-afea-b6d4a2d2c40c",
"external_id": "ABCDE12345",
"name": "John Doe",
"email": "john.ondricka@example.com",
"phone": "+12163547758",
"type": "INDIVIDUAL",
"locations": [
{
"uuid": "84e249df-8d50-4212-8329-6059fc002563",
"name": null,
"line_1": "4840 Sun Valley Road",
"line_2": "Flat 302",
"city": "Prescott",
"region": "Washington",
"country": "US",
"zip_code": "99348",
"coordinates": {
"lat": 46.371826,
"lng": -118.496391
}
}
]
}
}
}