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

# Get a merchant



## OpenAPI

````yaml /openapi.json get /v1/merchants/{id}
openapi: 3.0.3
info:
  title: SaturnShift Partner API
  version: 1.0.0
  description: >-
    Server-to-server API for partner PSPs to authenticate, read native crypto
    transactions and merchants, and receive webhooks. All endpoints are scoped
    to the authenticated institution.
servers:
  - url: https://api.saturnshift.io
    description: Production
security: []
tags:
  - name: Authentication
    description: OAuth2 client credentials.
  - name: Transactions
    description: Read native crypto transactions.
  - name: Merchants
    description: Read your merchants.
paths:
  /v1/merchants/{id}:
    get:
      tags:
        - Merchants
      summary: Get a merchant
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: The merchant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Merchant'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - oauth2:
            - merchants:read
components:
  schemas:
    Merchant:
      type: object
      properties:
        object:
          type: string
          example: merchant
        id:
          type: integer
          example: 116
        name:
          type: string
          nullable: true
          example: Green Leaf Coffee
        legal_name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
          example: owner@greenleaf.example
        status:
          type: string
          nullable: true
          example: ACTIVE
        onboarding_status:
          type: string
          nullable: true
          example: ACTIVE
        crypto_enabled:
          type: boolean
          example: true
        onboarding_complete:
          type: boolean
          example: true
        created_at:
          type: string
          format: date-time
          nullable: true
    OAuthError:
      type: object
      properties:
        error:
          type: string
          example: invalid_client
        error_description:
          type: string
          nullable: true
    Error:
      type: object
      properties:
        error:
          type: string
          example: not_found
        error_description:
          type: string
          nullable: true
  responses:
    Unauthorized:
      description: Missing or invalid bearer token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/OAuthError'
    NotFound:
      description: Resource not found in your institution
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth2 client credentials. Request a token from /oauth/token and send it
        as `Authorization: Bearer <token>`.
      flows:
        clientCredentials:
          tokenUrl: https://api.saturnshift.io/oauth/token
          scopes:
            transactions:read: Read transactions
            merchants:read: Read merchants

````