---
swagger: "2.0"
info:
  version: "1.0"
  title: olbb-sandbox
  x-ibm-name: olbb-sandbox
  x-api-id: 042d9789-15fb-44d4-ac60-6a9df5405d38
  x-audience: company-internal
  x-bmo-api-type: internal-api
  x-bmo-api-provider-id: 26777
  x-bmoservicedomain-name: Commercial_sb
  x-api-specification-compliant: true
  description: |-
    ## Endpoints for Connectivity
    Try It scenarios
  x-ibm-summary: ""
schemes:
- https
paths:
  /olbb/apisandbox/systems-operations/tryit-scenarios/get:
    post:
      x-dataclassification-code: Confidential
      operationId: getScenarios
      consumes:
      - application/json
      produces:
      - application/json
      parameters:
      - name: bmo-request-id
        in: header
        required: false
        type: string
      - name: x-api-key
        in: header
        required: false
        type: string
      - in: body
        name: getScenarioRequest
        required: false
        schema:
          $ref: '#/definitions/getScenarioRequest'
      security:
      - api_key: []
        OAuth:
        - bmo.devportal.systems-operations.read
      responses:
        200:
          description: 200 response
          schema:
            $ref: '#/definitions/getScenarioResponse'
          headers:
            x-request-id:
              type: string
        400:
          description: 400 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
        404:
          description: 404 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
        500:
          description: 500 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
        503:
          description: 503 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
        504:
          description: 504 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
  /olbb/apisandbox/systems-operations/tryit-payload/get:
    post:
      x-dataclassification-code: Confidential
      operationId: getPayload
      consumes:
      - application/json
      produces:
      - application/json
      parameters:
      - name: bmo-request-id
        in: header
        required: false
        type: string
      - name: x-api-key
        in: header
        required: false
        type: string
      - in: body
        name: getPayloadRequest
        required: false
        schema:
          $ref: '#/definitions/getPayloadRequest'
      security:
      - api_key: []
        OAuth:
        - bmo.devportal.systems-operations.read
      responses:
        200:
          description: 200 response
          schema:
            $ref: '#/definitions/getPayloadResponse'
          headers:
            x-request-id:
              type: string
        400:
          description: 400 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
        404:
          description: 404 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
        500:
          description: 500 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
        503:
          description: 503 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
        504:
          description: 504 response
          schema:
            $ref: '#/definitions/response'
          headers:
            x-request-id:
              type: string
  /olbb/apisandbox/systems-operations/explicitLog:
    post:
      x-dataclassification-code: Confidential
      operationId: explicityLog
      consumes:
      - application/json
      produces:
      - application/json
      parameters:
      - name: bmo-request-id
        in: header
        required: false
        type: string
      - name: x-api-key
        in: header
        required: false
        type: string
      - in: body
        name: requestbody
        required: true
        schema:
          type: string
      security:
      - api_key: []
        OAuth:
        - bmo.devportal.systems-operations.create
      responses:
        200:
          description: Ok
        400:
          description: Bad Request
        404:
          description: Unauthorized
        500:
          description: Internal Server Error
securityDefinitions:
  api_key:
    type: apiKey
    x-key-type: client_id
    name: x-api-key
    in: header
  OAuth:
    type: oauth2
    flow: accessCode
    x-ibm-oauth-provider: apic-oauth-ob-commercial-sb-provider
    authorizationUrl: https://open-api.bmofg.com/open-banking/commercial-sb/oauth20/authorize
    tokenUrl: https://open-api.bmofg.com/open-banking/commercial-sb/oauth20/token
    scopes:
      bmo.devportal.systems-operations.read: bmo.devportal.systems-operations.read
      bmo.devportal.systems-operations.create: bmo.devportal.systems-operations.create
definitions:
  getScenarioRequest:
    type: object
    properties:
      apiId:
        type: string
  response:
    type: object
    properties:
      code:
        type: string
        description: Contains the API response code e.g. 200, 500 etc
      errorDescription:
        type: string
        description: Contains the response fault message i.e. 'Bad Request', 'Internal
          Server Error' etc
  getScenarioResponse:
    type: array
    description: Contains list of scenarios
    items:
      type: string
  getPayloadRequest:
    type: object
    properties:
      apiId:
        type: string
      scenario:
        type: string
  getPayloadResponse:
    type: array
    items:
      type: object
      properties:
        apiId:
          type: string
        scenario:
          type: string
        requestpayload:
          type: string
        pathparam:
          type: string
        queryparam:
          type: string
x-ibm-configuration:
  type: rest
  phase: realized
  enforced: true
  testable: true
  categories:
  - bian--bd--operationalservices
  cors:
    enabled: true
  servers:
  - url: https://sandbox-open-api.bmo.com/open-banking/commercial-sb
    type:
    - production
    - development
  oauth-servers:
    OAuth:
      tokenUrls:
      - https://open-api.bmofg.com/open-banking/commercial-sb/oauth20/token
      authorizationUrls:
      - https://open-api.bmofg.com/open-banking/commercial-sb/oauth20/authorize
      refreshUrls: []
host: sandbox-open-api.bmo.com
basePath: /open-banking/commercial-sb
...
