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

# Show a payment term



## OpenAPI

````yaml /openapi.yaml get /payment_terms/{id}
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /payment_terms/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
    get:
      tags:
        - PaymentTerm
      summary: Show a payment term
      operationId: payment_terms#show
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/payment_term'
        '404':
          description: Not Found
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    payment_term:
      type: object
      description: >-
        A workspace payment term — one reusable payment line (a percentage of
        the order total or a fixed amount, due `due_days` after a trigger).
        Contacts companies pick an ordered list of terms; the ones flagged
        `is_default` apply to suppliers without their own. Purchase orders copy
        the lines, so editing or deleting a term never changes existing orders.
      properties:
        id:
          type: integer
        name:
          type: string
          example: Deposit 30% on order
        description:
          type: string
          nullable: true
        term_type:
          type: string
          enum:
            - percentage
            - amount
          description: Derived — which of percent / amount is set.
        percent:
          type: string
          nullable: true
          description: Of the order total, 4 decimals.
          example: '30.0000'
        amount:
          type: string
          nullable: true
          description: >-
            A fixed amount, 2 decimals, read in the currency of the order it is
            copied onto.
        trigger:
          type: string
          enum:
            - order
            - delivery
            - invoice
          description: >-
            What starts the due_days clock: `order` = the purchase order is
            issued, `delivery` = goods are received (the latest receipt),
            `invoice` = the invoice date.
        due_days:
          type: integer
          minimum: 0
        is_default:
          type: boolean
          description: >-
            Part of the workspace default terms (any number; copied in workspace
            order).
        position:
          type: integer
        created_by_id:
          type: integer
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - name
        - term_type
        - trigger
        - due_days
        - is_default
        - position
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.