openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAPBC_GLOBAL_BOOK:
    post:
      tags:
      - SAPBC_GLOBAL_FIS
      operationId: /rfc/SAPBC_GLOBAL_BOOK
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_AGENCY:
                  type: integer
                  format: int64
                  description: Travel agency
                IV_CARRID:
                  type: string
                  maxLength: 3
                  description: Airline Carrier
                IV_CLASS:
                  type: string
                  default: Y
                  maxLength: 1
                  description: Flight Class
                IV_CONNID:
                  type: integer
                  format: int64
                  description: Connection Number
                IV_COUNTER:
                  type: integer
                  format: int64
                  description: Sales counter
                IV_CUSTOMER:
                  type: integer
                  format: int64
                  description: Customer Number
                IV_EXT_CUSTOMER:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: External customer
                IV_FLDATE:
                  type: string
                  format: date
                  description: Date
                IV_LUGGWEIGHT:
                  type: integer
                  format: int64
                  description: Weight of Luggage
                IV_PASSBIRTH:
                  type: string
                  format: date
                  description: Date of Birth of a Passenger
                IV_PASSFORM:
                  type: string
                  maxLength: 15
                  description: Title for Workbench training data model BC_Travel
                IV_PASSNAME:
                  type: string
                  maxLength: 25
                  description: Name of the Passenger
                IV_RESERVE_ONLY:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Reservation flag
                IV_SMOKER:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Smoker
                IV_TESTRUN:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Switch to Simulation Mode
                IV_WUNIT:
                  type: string
                  default: KG
                  maxLength: 3
              required:
              - IV_CARRID
              - IV_CONNID
              - IV_CUSTOMER
              - IV_FLDATE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_BOOKID:
                    type: integer
                    format: int64
                    description: Booking number
                  EV_CURRENCY:
                    type: string
                    maxLength: 5
                    description: Local currency of airline
                  EV_CUSTOMER_NAME:
                    type: string
                    maxLength: 25
                    description: Customer Name
                  EV_PRICE:
                    type: integer
                    format: int64
                    description: Price of booking in local currency of airline
                  EV_TAX:
                    type: integer
                    format: int64
                    description: Flight tax
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
