> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getopenrails.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a customer

> Fetches a single customer by their cus_* ID.



## OpenAPI

````yaml /api-reference/openapi.json get /api/gateway/customers/{customerId}
openapi: 3.1.0
info:
  title: Open Rails API
  version: 0.1.0
  description: >-
    Hosted checkout, provider routing, runtime schemas, and normalized webhook
    examples for Open Rails merchants and agents.
servers:
  - url: https://dash.getopenrails.com
    description: Production dashboard and API origin
security: []
tags:
  - name: Gateway
  - name: Agent
  - name: Routing
  - name: Webhooks
paths:
  /api/gateway/customers/{customerId}:
    get:
      tags:
        - Gateway
      summary: Get a customer
      description: Fetches a single customer by their cus_* ID.
      operationId: getGatewayCustomer
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Customer record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Customer'
        '404':
          description: Customer not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    Customer:
      type: object
      required:
        - id
        - object
        - email
        - status
        - created
      properties:
        id:
          type: string
          description: Customer ID with cus_* prefix.
        object:
          type: string
          enum:
            - customer
        email:
          type: string
          format: email
        status:
          type: string
        created:
          type: string
          format: date-time
    ApiErrorResponse:
      type: object
      required:
        - ok
        - error
      properties:
        ok:
          type: boolean
          enum:
            - false
        error:
          $ref: '#/components/schemas/ActionError'
    ActionError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
        field:
          type: string
        suggestion:
          type: string
        issues:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              code:
                type: string
              message:
                type: string

````