openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAPBC_GLOBAL_CUSTOMER_CREATE:
    post:
      tags:
      - SAPBC_GLOBAL_CUSTOMER
      operationId: /rfc/SAPBC_GLOBAL_CUSTOMER_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CITY:
                  type: string
                  maxLength: 25
                  description: Location
                COUNTRY:
                  type: string
                  maxLength: 3
                  description: Country
                CUSTTYPE:
                  type: string
                  default: P
                  maxLength: 1
                  description: Customer Category
                DISCOUNT:
                  type: integer
                  format: int64
                  default: 2
                  description: Discount in %
                FORM:
                  type: string
                  maxLength: 15
                  description: Form of Address
                LANGU:
                  type: string
                  default: DE
                  maxLength: 1
                  description: Language Key
                NAME:
                  type: string
                  maxLength: 25
                  description: Name
                POSTBOX:
                  type: string
                  maxLength: 10
                  description: P.O. Box
                POSTCODE:
                  type: string
                  maxLength: 10
                  description: Postal Code
                REGION:
                  type: string
                  maxLength: 3
                  description: Region
                STREET:
                  type: string
                  maxLength: 30
                  description: Street Name
                TELEPHONE:
                  type: string
                  maxLength: 30
                  description: Telephone Number
                TESTRUN:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Switch to Simulation Session for Write BAPIs
              required:
              - CITY
              - COUNTRY
              - FORM
              - NAME
              - POSTCODE
              - REGION
              - STREET
              - TELEPHONE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ID:
                    type: integer
                    format: int64
                    description: Booking number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
