openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ESR_NUMBER_CHECK:
    post:
      tags:
      - SSRV
      summary: Check of PBC/POR number
      operationId: /rfc/ESR_NUMBER_CHECK
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AMOUNT:
                  type: integer
                  format: int64
                  default: 0
                  description: Amount
                CASH_DISCOUNT:
                  type: integer
                  format: int64
                  default: 0
                  description: Cash discount amount
                COUNTRY:
                  type: string
                  maxLength: 3
                  description: Country Key
                ESR_CHECK_DIGIT:
                  type: string
                  default: ' '
                  maxLength: 2
                  description: Check digit
                ESR_NUMBER:
                  type: string
                  default: ' '
                  maxLength: 11
                  description: POR number
                ESR_REF_NUMBER:
                  type: string
                  default: ' '
                  maxLength: 27
                  description: POR reference number
                PAYMENT_TERMS1:
                  type: integer
                  format: int64
                  default: 0
                  description: Payment term 1
              required:
              - COUNTRY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ESR_CHECK_DIGIT:
                    type: string
                    maxLength: 2
                    description: Check digit
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
