--- swagger: "2.0" info: x-ibm-name: accounts title: Assets/Accounts version: 1.1.11 description: Assets API provides consensual access to customer authorized products and transactions. license: name: Terms and Conditions of Use url: https://rapidlink.piraeusbank.gr/terms contact: name: rapidlink support email: rapidlink@piraeusbank.gr url: https://rapidlink.piraeusbank.gr termsOfService: Privacy Policy schemes: - https basePath: /v1.1/assets/accounts consumes: - application/json produces: - application/json - lisa.pavlidi@gr.ey.com securityDefinitions: MSIS OAuth: type: oauth2 description: "" flow: accessCode authorizationUrl: https://openbank.piraeusbank.gr/identityserver/connect/authorize scopes: winbankAccess winbankAccess.info: "" 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 Assets resources tokenUrl: https://api.rapidlink.piraeusbank.gr/piraeusbank/production/oauth/oauth2/token clientIdHeader: type: apiKey in: header name: X-IBM-Client-Id security: - clientIdHeader: [] MSIS OAuth: - winbankAccess winbankAccess.info - Sandbox OAuth: - /sandboxapi clientIdHeader: [] x-ibm-configuration: testable: true enforced: true phase: realized categories: - Assets paths: /: get: responses: 200: description: OK schema: $ref: '#/definitions/Assets_Accounts_List_output' 400: description: Bad Request schema: $ref: '#/definitions/Error_Output' 401: description: Unauthorized schema: $ref: '#/definitions/Error_Output' 404: description: Not Found 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: Get a list of customer accounts with their corresponding balances tags: - Assets - Accounts parameters: - $ref: '#/parameters/Authorization' /{Iban}/info: get: responses: 200: description: OK schema: $ref: '#/definitions/Assets_Accounts_Iban_Info_output' 400: description: Bad Request schema: $ref: '#/definitions/Error_Output' 401: description: Unauthorized 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: Get information about an account based on its IBAN tags: - Accounts - Assets - IBAN - Info parameters: - $ref: '#/parameters/Authorization' - name: Iban type: string required: true in: path description: The IBAN of the account to get information about /{accountId}/details: get: responses: 200: description: OK schema: $ref: '#/definitions/Assets_Account_Details_Output' 400: description: Bad Request schema: $ref: '#/definitions/Error_Output' 401: description: Unauthorized schema: $ref: '#/definitions/Error_Output' 404: description: Not Found 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: Get details about a specific account based on its unique id tags: - Assets - Accounts - Details parameters: - $ref: '#/parameters/Authorization' - $ref: '#/parameters/accountId' /{accountId}/transactions/{input_filter}: get: responses: 200: description: OK schema: $ref: '#/definitions/Assets_Accounts_Transactions_Output' 400: description: Bad Request schema: $ref: '#/definitions/Error_Output' 401: description: Unauthorized 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: Get a list of transactions for a specific account based on its unique id parameters: - name: input_filter required: true in: path type: string description: Should be JSON tringified with the format of Asset_Accounts_Transactions_Input parameters: - $ref: '#/parameters/Authorization' - $ref: '#/parameters/accountId' definitions: Error_Output: description: "" type: object properties: httpCode: type: string description: "" httpMessage: type: string description: "" errorCode: type: string description: "" errorMessage: type: string description: "" example: "{\n\t\"httpCode\": \"412\",\n\t\"httpMessage\": \"Precondition Failed\",\n\t\"errorCode\": \"API-987\",\n\t\"errorMessage\": \"sample error message\"\n}\n" Assets_Accounts_List_output: description: "" type: object properties: Accounts: type: array items: properties: Type: type: string TypeDescription: type: string Number: type: string Iban: type: string Currency: type: string Balance: type: number AccountingBalance: type: number OverdraftAmount: type: number HolderName: type: string ArrangementId: type: string AccountId: type: string Alias: type: string CanDebit: type: boolean CanViewStatement: type: boolean Status: type: string type: object example: "{\"Accounts\":[\n\t{\n\t\t\"Type\": \"IA\",\n\t\t\"TypeDescription\": \"ΤΑΜΙΕΥΤΗΡΙΟ -Κ-\",\n\t\t\"Number\": \"7022123123123\",\n\t\t\"Iban\": \"GR2801718220007022123123123\",\n\t\t\"Currency\": \"EUR\",\n\t\t\"Balance\": 13000983700.08,\n\t\t\"AccountingBalance\": 14996854573.28,\n\t\t\"OverdraftAmount\": 0,\n\t\t\"HolderName\": \"\",\n\t\t\"ArrangementId\": \"334083\",\n\t\t\"AccountId\": \"cwBsAHgAMABjAHoAMgByAMAioSa639FXqvNWTdbvtyo%3d\",\n\t\t\"Alias\": \"ΤΑΜΙΕΥΤΗΡΙΟ\",\n\t\t\"CanDebit\": true,\n\t\t\"CanViewStatement\": true,\n\t\t\"Status\": \"001\"\n\t}\n]}" Assets_Accounts_Transactions_Input: description: "" type: object properties: fromDate: type: string description: all records returned, will be newer than DateFrom. ISO formatted example: "2017-07-01" toDate: type: string description: all records returned, will be older than DateTo. ISO formatted example: "2017-09-31" fromRow: type: string description: all records returned, will have row number smaller that fromRow. it's used for pagignation example: "12345" pageSize: type: number description: number of records per page to return example: 10 lastBalance: type: number description: all balances are calculated starting with lastBalance if it is supplied example: |- { "fromDate": "2015-1-9", "toDate": "2015-4-9", "fromRow": "", "pageSize": 20, "lastBalance": 0.0 } required: - fromDate - toDate Assets_Accounts_Transactions_Output: description: "" type: object properties: AccountTransactions: type: array items: properties: BranchCode: type: string BranchName: type: string TransactionReference: type: string Comments: type: string UniqueReference: type: string TransactionId: type: string TransactionCode: type: string TransactionType: type: string Description: type: string PostDate: type: string ValueDate: type: string Amount: type: number Currency: type: string RunningBalance: type: number type: object PagingInfo: type: object properties: RowIndex: type: number MaxRows: type: number CountRows: type: boolean TotalRowsCount: type: number NextPagePositioningKey: type: string example: "{\n\t\"AccountTransactions\": [{\n\t\t\"BranchCode\": \"2824\",\n\t\t\"BranchName\": \"GROUP DIGIT. BANKING\",\n\t\t\"TransactionReference\": \"IB10307454902001\",\n\t\t\"Comments\": \"6108136561143\",\n\t\t\"UniqueReference\": \"11501092824IBITA10611\",\n\t\t\"TransactionId\": \"478593152\",\n\t\t\"TransactionCode\": \"013\",\n\t\t\"TransactionType\": \"D\",\n\t\t\"Description\": \"ΜΕΤΑΦΟΡΑ ΣΕ ΛΟΓΑΡΙΑΣΜΟ\",\n\t\t\"PostDate\": \"2015-01-09T00:00:00\",\n\t\t\"ValueDate\": \"2015-01-09T00:00:00\",\n\t\t\"Amount\": -3,\n\t\t\"Currency\": \"EUR\",\n\t\t\"RunningBalance\": 14996854573.28\n\t}],\n\t\"PagingInfo\": {\n\t\t\"RowIndex\": 0,\n\t\t\"MaxRows\": 100,\n\t\t\"CountRows\": false,\n\t\t\"TotalRowsCount\": 0,\n\t\t\"NextPagePositioningKey\": \"465855010\"\n\t}\n}" Assets_Account_Details_Output: description: "" type: object properties: AccountDetails: type: object properties: AssetNumberCleared: type: string Iban: type: string Currency: type: string AccountTypeDescription: type: string AccountingBalance: type: number AccountingBalanceValidityDate: type: string Balance: type: number BalanceValidityDate: type: string PledgedAmount: type: number ValeurUnavailableBalance: type: number OverdraftAmount: type: number OverdraftEndDate: [] MonthlyDebitSum: type: number MonthlyCreditSum: type: number BranchName: type: string Address: type: string BranchCode: type: string BranchAddress: [] AccountId: type: string AssetAlias: type: string CanDebit: type: boolean CanViewStatement: type: boolean Status: type: string StartDate: type: string EndDate: [] Characteristics: type: array items: properties: Name: type: string Value: type: string type: object Beneficiaries: type: array items: properties: Name: type: string Address: [] Type: type: string type: object example: "{\n\t\"AccountDetails\": {\n\t\t\"AssetNumberCleared\": \"7022123123123\",\n\t\t\"Iban\": \"GR2801718220007022123123123\",\n\t\t\"Currency\": \"EUR\",\n\t\t\"AccountTypeDescription\": \"ΤΑΜΙΕΥΤΗΡΙΟ -Κ-\",\n\t\t\"AccountingBalance\": 14996854559.36,\n\t\t\"AccountingBalanceValidityDate\": \"2017-03-16T00:00:00\",\n\t\t\"Balance\": 13000983690.76,\n\t\t\"BalanceValidityDate\": \"2017-03-16T00:00:00\",\n\t\t\"PledgedAmount\": 0.0,\n\t\t\"ValeurUnavailableBalance\": -1995870868.6,\n\t\t\"OverdraftAmount\": 0.0,\n\t\t\"OverdraftEndDate\": null,\n\t\t\"MonthlyDebitSum\": 0.0,\n\t\t\"MonthlyCreditSum\": 0.0,\n\t\t\"OverdraftAmount\": 0.0,\n\t\t\"BranchName\": \"ΚΑΤΑΣΤΗΜΑ ΠΕΡΙΣΤΕΡΙΟΥ\",\n\t\t\"Address\": \"--- HOLD MAIL ---,2960-TRANSACTIONAL BANKING SYSTE\",\n\t\t\"BranchCode\": \"2976\",\n\t\t\"BranchAddress\": null,\n\t\t\"AccountId\": \"cwBsAHgAMABjAHoAMgByAJwpSVvd%2bHu4eerBuGhcJmU%3d\",\n\t\t\"AssetAlias\": \"ΤΑΜΙΕΥΤΗΡΙΟ\",\n\t\t\"CanDebit\": false,\n\t\t\"CanViewStatement\": true,\n\t\t\"Status\": \"Ενεργό\",\n\t\t\"StartDate\": \"2000-04-27T00:00:00\",\n\t\t\"EndDate\": null,\n\t\t\"Characteristics\": [{\n\t\t\t\t\"Name\": \"Είδος\",\n\t\t\t\t\"Value\": \"ΔΙΑΖΕΥΚΤΙΚΟΣ\"\n\t\t\t}, {\n\t\t\t\t\"Name\": \"Ποσό Υπερανάληψης\",\n\t\t\t\t\"Value\": \"0,00 EUR\"\n\t\t\t}, {\n\t\t\t\t\"Name\": \"Λήξη Υπερανάληψης\",\n\t\t\t\t\"Value\": \"\"\n\t\t\t}\n\t\t],\n\t\t\"Beneficiaries\": [{\n\t\t\t\t\"Name\": \"ΓΕΩΡΓΙΟΥ,ΗΛΙΑΣ,ΑΘΑΝΑΣΙΟΥ,ΑΔ123145\",\n\t\t\t\t\"Address\": null,\n\t\t\t\t\"Type\": \"Κύριος Δικαιούχος\"\n\t\t\t}, {\n\t\t\t\t\"Name\": \"ΜΑΚΡΗ,ΣΤΕΛΛΑ,ΙΩΑΝΝΗ,Φ141677\",\n\t\t\t\t\"Address\": null,\n\t\t\t\t\"Type\": \"Συνδικαιούχος\"\n\t\t\t}\n\t\t]\n\t}\n}\n" Assets_Accounts_Iban_Info_output: description: "" type: object properties: IsValid: type: boolean Bank: type: object properties: Name: type: string Bic: type: string DomesticBankCode: type: string Address: type: string City: type: string CountryIsoCode: type: string example: |- { "IsValid": true, "Bank": { "Name": "sample string 1", "Bic": "sample string 2", "DomesticBankCode": "sample string 3", "Address": "sample string 4", "City": "sample string 5", "CountryIsoCode": "sample string 6" } } tags: [] 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 accountId: name: accountId type: string required: true in: path description: The unique id of the account for which details or transactions are retrieved 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 ...