---
search:
  tags:
    - Customers
    - GET
seo:
  description: >-
    Any signed in user. Returns one customer with its credit limit, balance,…
    Reference for the GET /api/v1/customers/{customerId} endpoint in the
    PharmaFlow API.
sidebar:
  label: Get a customer
  badge: GET
title: Get a customer
type: openapi-operation
---
Any signed in user. Returns one customer with its credit limit, balance, and credit flag. An unknown customer answers 404, and money fields stay strings, so exact decimals survive.

`GET /api/v1/customers/{customerId}`

**Responses**

- `200` — The customer
- `401` — Not authenticated
- `404` — Customer not found

Response example, 200:

```json
{
  "id": "string",
  "name": "string",
  "phone": "string",
  "national_id": "string",
  "notes": "string",
  "image_url": "string",
  "credit_limit": "string",
  "current_balance": "string",
  "is_credit_allowed": true,
  "created_at": "string",
  "updated_at": "string",
  "is_deleted": true
}
```
