AIS API
- API version: 1.0.0
- Build date: 2019-06-27T12:18:16.648Z
Account Information Service Provider API
For more information, please visit https://www.dskbank.bg
Automatically generated by the Swagger Codegen
Building the API client library requires:
- Java 1.7+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deploy
Refer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "io.swagger:swagger-java-client:1.0.0"
At first generate the JAR by executing:
mvn clean package
Then manually install the following JARs:
target/swagger-java-client-1.0.0.jar
target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;
import java.io.File;
import java.util.*;
public class AccountApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: api-key-1
ApiKeyAuth api-key-1 = (ApiKeyAuth) defaultClient.getAuthentication("api-key-1");
api-key-1.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api-key-1.setApiKeyPrefix("Token");
AccountApi apiInstance = new AccountApi();
String accountId = "accountId_example"; // String | The account-id is retrieved by using a \"Read Account List\" call. The account-id is the \"resourceId\" attribute of the account structure. Its value is constant at least throughout the lifecycle of a given consent.
UUID xRequestID = new UUID(); // UUID | ID of the request, unique to the call, as determined by the initiating party.
String psUUserAgent = "psUUserAgent_example"; // String | The forwarded Agent header field of the http request between PSU and TPP, if available.
String psUIPPort = "psUIPPort_example"; // String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP, if available.
String psUGeoLocation = "psUGeoLocation_example"; // String | The forwarded Geo Location header field of the corresponding http request between PSU and TPP if available.
String psUAccept = "psUAccept_example"; // String | The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
String psUAcceptCharset = "psUAcceptCharset_example"; // String |
String psUAcceptEncoding = "psUAcceptEncoding_example"; // String |
String psUAcceptLanguage = "psUAcceptLanguage_example"; // String |
String psUHttpMethod = "psUHttpMethod_example"; // String | HTTP method used at the PSU โ TPP interface, if available. Valid values are\\: * GET * POST * PUT * PATCH * DELETE
String psUDeviceID = "psUDeviceID_example"; // String | UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.
String psUIPAddress = "psUIPAddress_example"; // String | The forwarded IP Address header field consists of the corresponding HTTP request IP Address field between PSU and TPP.
try {
InlineResponse2001 result = apiInstance.getAccountByAccountId(accountId, xRequestID, psUUserAgent, psUIPPort, psUGeoLocation, psUAccept, psUAcceptCharset, psUAcceptEncoding, psUAcceptLanguage, psUHttpMethod, psUDeviceID, psUIPAddress);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#getAccountByAccountId");
e.printStackTrace();
}
}
}
All URIs are relative to https://localhost/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AccountApi | getAccountByAccountId | GET /accounts/{account-id} | Read Account Details |
AccountApi | getAccounts | GET /accounts | Read account list |
AccountApi | getBalanceForAccountByAccountId | GET /accounts/{account-id}/balances | Read Balance |
AccountApi | getTransactionsForAccountByAccountId | GET /accounts/{account-id}/transactions | Read Transaction List |
ConsentApi | deleteConsentWithID | DELETE /consents/{consent-id} | Delete consent |
ConsentApi | getAllConsets | GET /consents | Get Consent |
ConsentApi | getConsent | GET /consents/{consent-id} | Get Consent Request |
ConsentApi | getConsentStatus | GET /consents/{consent-id}/status | Consent status request |
ConsentApi | postConsent | POST /consents | Create consent |
- Account
- AccountAccess
- AccountReference
- AccountReport
- Amount
- Balances
- Consent
- ConsentRequestBody
- ConsentRequestBodyAccess
- ConsentStatus
- ErrorModel
- ErrorModelTppMessages
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- InlineResponse2004Consents
- InlineResponse2005
- InlineResponse2006
- InlineResponse201
- Links
- SingleBalance
- Transactions
Authentication schemes defined for the API:
- Type: OAuth
- Flow: accessCode
- Authorization URL: https://apigate.dskbank.bg/identity/connect/authorize
- Scopes:
- ais.sandbox:
- Type: API key
- API key parameter name: X-IBM-Client-Id
- Location: HTTP header
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.