title: OAuth Client
type: object
description: Represents a confidential OAuth client.
x-tags:
  - Models
required:
  - client_id
  - name
  - scopes
  - created_at
  - updated_at
properties:
  client_id:
    type: string
    minLength: 1
    maxLength: 255
    readOnly: true
    description: The OAuth client identifier.
  name:
    type: string
    minLength: 1
    maxLength: 255
    readOnly: true
    description: The name of the application or integration.
    example: Inventory Integration
  scopes:
    type: array
    minItems: 1
    uniqueItems: true
    readOnly: true
    description: The API scopes assigned to this client.
    items:
      $ref: ./MerchantOAuthScope.yaml
  created_at:
    type: string
    format: date-time
    readOnly: true
    description: The date-time that the client was created.
  updated_at:
    type: string
    format: date-time
    readOnly: true
    description: The date-time that the client was last updated.
