---
title: "Fetch a customer by ID"
url: "https://kongair.kong-sales-engineering.com/apis/customer-information/versions/a20074e9-8ec3-4c7a-b5e7-1d08834f75d6/operations/get-customer-by-id"
---

> Full API specification: https://kongair.kong-sales-engineering.com/apis/customer-information/versions/a20074e9-8ec3-4c7a-b5e7-1d08834f75d6.md

# Fetch a customer by ID

`GET` `/customers/{id}`

Operation ID: `get-customer-by-id`

Fetch a customer's information by their ID

## Path parameters

- `id` (string, required) - The ID of the customer to fetch

## Responses

- `200` - A get action response for a single Customer
- `404` - Customer Not Found

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Customer Information Service
  version: 0.1.0
servers:
  - url: https://shared-services.kong-sales-engineering.com/kongair
    description: KongAir API Server
paths:
  /customers/{id}:
    get:
      summary: Fetch a customer by ID
      description: Fetch a customer's information by their ID
      tags:
        - customer
      operationId: get-customer-by-id
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the customer to fetch
          schema:
            type: string
            example: 1
      responses:
        "200":
          $ref: "#/components/responses/CustomerSingle"
        "404":
          description: Customer Not Found
security:
  - basicAuth: []
components:
  responses:
    CustomerSingle:
      description: A get action response for a single Customer
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/Customer"
  schemas:
    Customer:
      type: object
      properties:
        id:
          type: string
        username:
          type: string
        name:
          type: string
        information:
          $ref: "#/components/schemas/CustomerInformation"
    CustomerInformation:
      type: object
      properties:
        address:
          type: string
        phone_number:
          type: string
        email:
          type: string
        frequent_flier_number:
          type: string
        payment_methods:
          type: array
          items:
            $ref: "#/components/schemas/PaymentMethod"
    PaymentMethod:
      type: object
      properties:
        id:
          type: string
        redacted_card_number:
          type: string
        card_holder_name:
          type: string
        expiration-date:
          type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
```
