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

# Terminal-Create

> Create a new terminal for a *merchant*.

Before creating the Terminal account, it is mandatory to create a merchant.



## OpenAPI

````yaml post /terminal-management/terminals
openapi: 3.0.0
info:
  title: Dynamic routing - OpenAPI 3.0
  description: This the the open API 3.0 specification for the dynamic routing.
  version: 1.0.0
servers: []
security: []
paths:
  /terminal-management/terminals:
    post:
      tags:
        - Terminal Management
      summary: Create a new terminal
      description: Create a new payment terminal
      operationId: createTerminal
      parameters:
        - name: x-tenant-id
          in: header
          required: true
          schema:
            type: string
          example: public
        - name: x-profile-id
          in: header
          required: true
          schema:
            type: string
          example: pro_WX0giXQnzk2wQJjkKVBX
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
          example: snd_D0GbFYDq4ItS8kRCE78f
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TerminalCreateRequest'
      responses:
        '200':
          description: Terminal created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TerminalResponse'
        '400':
          description: Invalid request data
        '401':
          description: Unauthorized request
        '500':
          description: Internal server error
components:
  schemas:
    TerminalCreateRequest:
      type: object
      required:
        - terminal_name
        - merchant_id
        - profile_id
        - terminal_type
      properties:
        terminal_name:
          type: string
          description: Name of the terminal
          example: Store 123 Terminal 1
        merchant_id:
          type: string
          description: Merchant ID associated with the terminal
          example: mer_1234567890
        profile_id:
          type: string
          description: Profile ID associated with the terminal
          example: pro_1234567890
        tms_id:
          type: string
          description: TMS provider ID associated with the terminal
          example: tms_1234567890
        terminal_id_from_tms:
          type: string
          description: Terminal ID from the TMS provider
          example: TMS12345
        serial_number:
          type: string
          description: Serial number of the terminal
          example: SN12345678
        terminal_type:
          type: string
          enum:
            - pos
            - mpos
            - standalone
          description: Type of terminal
          example: pos
        location:
          type: object
          description: Location details of the terminal
          properties:
            address:
              type: string
              description: Address where the terminal is located
              example: 123 Main St
            city:
              type: string
              description: City where the terminal is located
              example: San Francisco
            state:
              type: string
              description: State where the terminal is located
              example: CA
            country:
              type: string
              description: Country where the terminal is located
              example: US
            postal_code:
              type: string
              description: Postal code where the terminal is located
              example: '94105'
        capabilities:
          type: object
          description: Capabilities of the terminal
          properties:
            emv:
              type: boolean
              description: Whether the terminal supports EMV chip cards
              example: true
            contactless:
              type: boolean
              description: Whether the terminal supports contactless payments
              example: true
            magstripe:
              type: boolean
              description: Whether the terminal supports magnetic stripe cards
              example: true
            pin:
              type: boolean
              description: Whether the terminal supports PIN entry
              example: true
        metadata:
          type: object
          description: Additional metadata for the terminal
          additionalProperties: true
    TerminalResponse:
      type: object
      properties:
        terminal_id:
          type: string
          description: Unique identifier for the terminal
          example: term_1234567890
        terminal_name:
          type: string
          description: Name of the terminal
          example: Store 123 Terminal 1
        merchant_id:
          type: string
          description: Merchant ID associated with the terminal
          example: mer_1234567890
        profile_id:
          type: string
          description: Profile ID associated with the terminal
          example: pro_1234567890
        organization_id:
          type: string
          description: Organization ID associated with the terminal
          example: org_1234567890
        tms_id:
          type: string
          description: TMS provider ID associated with the terminal
          example: tms_1234567890
        terminal_id_from_tms:
          type: string
          description: Terminal ID from the TMS provider
          example: TMS12345
        serial_number:
          type: string
          description: Serial number of the terminal
          example: SN12345678
        terminal_type:
          type: string
          enum:
            - pos
            - mpos
            - standalone
          description: Type of terminal
          example: pos
        status:
          type: string
          enum:
            - active
            - inactive
            - pending
          description: Status of the terminal
          example: active
        last_seen:
          type: string
          format: date-time
          description: Timestamp when the terminal was last seen
        location:
          type: object
          description: Location details of the terminal
          properties:
            address:
              type: string
              description: Address where the terminal is located
              example: 123 Main St
            city:
              type: string
              description: City where the terminal is located
              example: San Francisco
            state:
              type: string
              description: State where the terminal is located
              example: CA
            country:
              type: string
              description: Country where the terminal is located
              example: US
            postal_code:
              type: string
              description: Postal code where the terminal is located
              example: '94105'
        capabilities:
          type: object
          description: Capabilities of the terminal
          properties:
            emv:
              type: boolean
              description: Whether the terminal supports EMV chip cards
              example: true
            contactless:
              type: boolean
              description: Whether the terminal supports contactless payments
              example: true
            magstripe:
              type: boolean
              description: Whether the terminal supports magnetic stripe cards
              example: true
            pin:
              type: boolean
              description: Whether the terminal supports PIN entry
              example: true
        metadata:
          type: object
          description: Additional metadata for the terminal
          additionalProperties: true
        created_at:
          type: string
          format: date-time
          description: Timestamp when the terminal was created
        modified_at:
          type: string
          format: date-time
          description: Timestamp when the terminal was last modified

````