GET
/
customer
/
by-id
Get customer by ID
curl --request GET \
  --url https://api.keymint.dev/customer/by-id \
  --header 'Authorization: Bearer <token>'
{
  "action": "getCustomerById",
  "status": true,
  "data": [
    {
      "id": "078116d0069c32407b4f63",
      "name": "Test Customer",
      "email": "test-1756752334256@example.com",
      "active": true,
      "createdAt": "2025-09-01T18:45:38.060Z",
      "updatedAt": "2025-09-01T18:45:38.060Z",
      "createdBy": "928b9f01e54dc6a2ed6769"
    }
  ],
  "code": 0
}

Authorizations

Authorization
string
header
required

Access token for API authentication

Query Parameters

customerId
string
required

The unique identifier of the customer

Response

200 - application/json

Successfully retrieved customer information

The response is of type object.