---
swagger: "2.0"
info:
x-ibm-name: security
title: Security
version: 1.1.3
description: Includes API calls for securing monetrary transactions, implementing
a 2FA mechanism using sms and/or token devices.
termsOfService: Privacy Policy
contact:
name: rapidlink support
email: rapidlink@piraeusbank.gr
url: https://rapidlink.piraeusbank.gr
license:
name: Terms and Conditions of Use
url: https://rapidlink.piraeusbank.gr/terms
schemes:
- https
basePath: /v1.1/security
securityDefinitions:
MSIS OAuth:
type: oauth2
description: ""
flow: accessCode
authorizationUrl: https://openbank.piraeusbank.gr/identityserver/connect/authorize
scopes:
winbankAccess winbankAccess.info winbankAccess.monetaryTransactions: ""
tokenUrl: https://openbank.piraeusbank.gr/identityserver/connect/token
x-tokenIntrospect:
url: https://$(api.endpoint.address)/$(api.org.name)/$(env.path)/oauth/external/introspect
Sandbox OAuth:
type: oauth2
description: Resource Owner Implicit Grant Type
flow: accessCode
authorizationUrl: https://api.rapidlink.piraeusbank.gr/piraeusbank/production/oauth/oauth2/authorize
scopes:
/sandboxapi: Access to all security resources in sandbox
tokenUrl: https://api.rapidlink.piraeusbank.gr/piraeusbank/production/oauth/oauth2/token
clientIdHeader:
type: apiKey
description: ""
in: header
name: X-IBM-Client-Id
security:
- clientIdHeader: []
MSIS OAuth:
- winbankAccess winbankAccess.info winbankAccess.monetaryTransactions
- clientIdHeader: []
Sandbox OAuth:
- /sandboxapi
paths:
/{TokenType}/generate:
post:
responses:
200:
description: OK
schema:
$ref: '#/definitions/Token_Generate_Output'
400:
description: Bad Request
schema:
$ref: '#/definitions/Error_Output'
401:
description: Unauthorized
schema:
$ref: '#/definitions/Error_Output'
403:
description: Forbidden
schema:
$ref: '#/definitions/Error_Output'
404:
description: Not Found
schema:
$ref: '#/definitions/Error_Output'
412:
description: Precondition Failed
schema:
$ref: '#/definitions/Error_Output'
440:
description: Login Time-Out
schema:
$ref: '#/definitions/Error_Output'
501:
description: Not Implemented
schema:
$ref: '#/definitions/Error_Output'
summary: Generate {TokenType} second factor pin
description: Use /{TokenType}/generate to generate a temporary pin to be used
as a second factor authentication in monetary and other information sensitive
transactions.
parameters:
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/TokenType'
/{TokenType}/generate/force:
post:
responses:
200:
description: OK
schema:
$ref: '#/definitions/Token_Generate_Output'
400:
description: Bad Request
schema:
$ref: '#/definitions/Error_Output'
401:
description: Unauthorized
schema:
$ref: '#/definitions/Error_Output'
403:
description: Forbidden
schema:
$ref: '#/definitions/Error_Output'
404:
description: Not Found
schema:
$ref: '#/definitions/Error_Output'
412:
description: Precondition Failed
schema:
$ref: '#/definitions/Error_Output'
440:
description: Login Time-Out
schema:
$ref: '#/definitions/Error_Output'
501:
description: Not Implemented
schema:
$ref: '#/definitions/Error_Output'
description: Use /{TokenType}/generate/force to generate again
temporary pin to be used as a second factor authentication in monetary and
other information sensitive transactions. This is usefull in case the first
pin, never reached the client.
summary: Generate {TokenType} second factor pin
tags: []
parameters:
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/TokenType'
/token/validate/{TokenValue}:
get:
responses:
200:
description: OK
schema:
$ref: '#/definitions/Token_Validate_Output'
400:
description: Bad Request
schema:
$ref: '#/definitions/Error_Output'
401:
description: Unauthorized
schema:
$ref: '#/definitions/Error_Output'
403:
description: Forbidden
schema:
$ref: '#/definitions/Error_Output'
404:
description: Not Found
schema:
$ref: '#/definitions/Error_Output'
412:
description: Precondition Failed
schema:
$ref: '#/definitions/Error_Output'
440:
description: Login Time-Out
schema:
$ref: '#/definitions/Error_Output'
501:
description: Not Implemented
schema:
$ref: '#/definitions/Error_Output'
summary: validate received temporary pin
description: Use /token/validate/{TokenValue} to validate the received
pin {TokenValue}, as part of second factor authentication procedure, letting
the system understand its type.
parameters:
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/TokenValue'
/{TokenType}/validate/{TokenValue}:
get:
responses:
200:
description: OK
schema:
$ref: '#/definitions/Token_Validate_Output'
400:
description: Bad Request
schema:
$ref: '#/definitions/Error_Output'
401:
description: Unauthorized
schema:
$ref: '#/definitions/Error_Output'
403:
description: Forbidden
schema:
$ref: '#/definitions/Error_Output'
404:
description: Not Found
schema:
$ref: '#/definitions/Error_Output'
412:
description: Precondition Failed
schema:
$ref: '#/definitions/Error_Output'
440:
description: Login Time-Out
schema:
$ref: '#/definitions/Error_Output'
501:
description: Not Implemented
schema:
$ref: '#/definitions/Error_Output'
summary: Validate received temporary pin, of type {TokenType}
description: Use /{TokenType}/validate/{TokenValue} to validate the received
pin {TokenValue}, as part of second factor authentication procedure, providing
its type as {TokenType}
parameters:
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/TokenType'
- $ref: '#/parameters/TokenValue'
x-ibm-configuration:
testable: true
enforced: true
phase: realized
consumes:
- application/json
produces:
- application/json
- lisa.pavlidi@gr.ey.com
parameters:
Authorization:
name: Authorization
type: string
required: true
in: header
description: This header should be in the form "Bearer Token", where Token is
returned from the call to OAuth2
TokenType:
name: TokenType
type: string
required: true
in: path
TokenValue:
name: TokenValue
type: string
required: true
in: path
definitions:
Token_Generate_Output:
description: ""
type: object
properties:
Success:
type: boolean
Recipient:
type: string
example: |2-
{
"Success": true,
"Recipient": "sample string"
}
Token_Validate_Output:
description: ""
type: object
properties:
Valid:
type: boolean
tokenType:
type: string
example: "{\n\t\"Valid\": true,\n\t\"tokenType\": \"extrapin\"\n}"
Error_Output:
description: ""
type: object
properties:
httpCode:
type: string
httpMessage:
type: string
errorCode:
type: string
errorMessage:
type: string
example: "{\n\t\"httpCode\": \"412\",\n\t\"httpMessage\": \"Precondition Failed\",\n\t\"errorCode\":
\"API-987\",\n\t\"errorMessage\": \"sample error message\"\n}"
externalDocs:
description: Getting Started
url: https://rapidlink.piraeusbank.gr/start
x-ibm-endpoints:
- endpointUrl: https://api.rapidlink.piraeusbank.gr/piraeusbank/production
description: Base Gateway API Endpoint
type:
- production
- development
...