Payment Initiation API (PIS)

PIS API

createAuthorisation

Start the authorisation process for a payment initiation

Create an authorisation sub-resource and start the authorisation process. The message might in addition transmit authentication and authorisation related data. The ASPSP might make the usage of this access method unnecessary in case of only one SCA process needed, since the related authorisation resource might be automatically created by the ASPSP after the submission of the payment data with the first *POST /api/v1/payments/{payment-product}* call. The start authorisation process is a process which is needed for creating a new authorisation. This applies in the following scenarios: - The ASPSP has indicated with a 'startAuthorisation' hyperlink in the preceding Payment initiation response that an explicit start of the authorisation process is needed by the TPP.


/api/v1/payments/{payment-product}/{payment-id}/authorisations

Usage and SDK Samples

curl -X POST\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"//api/v1/payments/{payment-product}/{payment-id}/authorisations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentInitiationServicePISApi;

import java.io.File;
import java.util.*;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String tPPRedirectURI = tPPRedirectURI_example; // String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. String tPPNokRedirectURI = tPPNokRedirectURI_example; // String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported. String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource. 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 { CreateAuthorisationResponse result = apiInstance.createAuthorisation(xRequestID, tPPRedirectURI, tPPNokRedirectURI, paymentProduct, paymentId, pSUIPAddress); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PaymentInitiationServicePISApi#createAuthorisation"); e.printStackTrace(); } } }
import io.swagger.client.api.PaymentInitiationServicePISApi;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String tPPRedirectURI = tPPRedirectURI_example; // String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. String tPPNokRedirectURI = tPPNokRedirectURI_example; // String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported. String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource. 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 { CreateAuthorisationResponse result = apiInstance.createAuthorisation(xRequestID, tPPRedirectURI, tPPNokRedirectURI, paymentProduct, paymentId, pSUIPAddress); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PaymentInitiationServicePISApi#createAuthorisation"); e.printStackTrace(); } } }
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *xRequestID = xRequestID_example; // ID of the request, unique to the call, as determined by the initiating party.
String *tPPRedirectURI = tPPRedirectURI_example; // URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. String *tPPNokRedirectURI = tPPNokRedirectURI_example; // If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. String *paymentProduct = paymentProduct_example; // The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported. String *paymentId = paymentId_example; // Resource identification of the generated payment initiation resource. String *pSUIPAddress = pSUIPAddress_example; // The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP. (optional) PaymentInitiationServicePISApi *apiInstance = [[PaymentInitiationServicePISApi alloc] init]; // Start the authorisation process for a payment initiation [apiInstance createAuthorisationWith:xRequestID tPPRedirectURI:tPPRedirectURI tPPNokRedirectURI:tPPNokRedirectURI paymentProduct:paymentProduct paymentId:paymentId pSUIPAddress:pSUIPAddress completionHandler: ^(CreateAuthorisationResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } if (error) { NSLog(@"Error: %@", error); } }];
var PaymentInitiationApiPis = require('payment_initiation_api__pis');
var defaultClient = PaymentInitiationApiPis.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new PaymentInitiationApiPis.PaymentInitiationServicePISApi()
var xRequestID = xRequestID_example; // {{String}} ID of the request, unique to the call, as determined by the initiating party.
var tPPRedirectURI = tPPRedirectURI_example; // {{String}} URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. var tPPNokRedirectURI = tPPNokRedirectURI_example; // {{String}} If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. var paymentProduct = paymentProduct_example; // {{String}} The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported. var paymentId = paymentId_example; // {{String}} Resource identification of the generated payment initiation resource. var opts = { 'pSUIPAddress': pSUIPAddress_example // {{String}} The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP. }; var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.createAuthorisation(xRequestID, tPPRedirectURI, tPPNokRedirectURI, paymentProduct, paymentId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createAuthorisationExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new PaymentInitiationServicePISApi();
            var xRequestID = xRequestID_example;  // String | ID of the request, unique to the call, as determined by the initiating party.
            var tPPRedirectURI = tPPRedirectURI_example;  // String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. var tPPNokRedirectURI = tPPNokRedirectURI_example; // String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. var paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported. var paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource. var pSUIPAddress = pSUIPAddress_example; // String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP. (optional) try { // Start the authorisation process for a payment initiation CreateAuthorisationResponse result = apiInstance.createAuthorisation(xRequestID, tPPRedirectURI, tPPNokRedirectURI, paymentProduct, paymentId, pSUIPAddress); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling PaymentInitiationServicePISApi.createAuthorisation: " + e.Message ); } } } }
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiPaymentInitiationServicePISApi();
$xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
$tPPRedirectURI = tPPRedirectURI_example; // String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. $tPPNokRedirectURI = tPPNokRedirectURI_example; // String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. $paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported. $paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource. $pSUIPAddress = pSUIPAddress_example; // String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP. try { $result = $api_instance->createAuthorisation($xRequestID, $tPPRedirectURI, $tPPNokRedirectURI, $paymentProduct, $paymentId, $pSUIPAddress); print_r($result); } catch (Exception $e) { echo 'Exception when calling PaymentInitiationServicePISApi->createAuthorisation: ', $e->getMessage(), PHP_EOL; } ?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentInitiationServicePISApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentInitiationServicePISApi->new();
my $xRequestID = xRequestID_example; # String | ID of the request, unique to the call, as determined by the initiating party.
my $tPPRedirectURI = tPPRedirectURI_example; # String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. my $tPPNokRedirectURI = tPPNokRedirectURI_example; # String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. my $paymentProduct = paymentProduct_example; # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported. my $paymentId = paymentId_example; # String | Resource identification of the generated payment initiation resource. my $pSUIPAddress = pSUIPAddress_example; # String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP. eval { my $result = $api_instance->createAuthorisation(xRequestID => $xRequestID, tPPRedirectURI => $tPPRedirectURI, tPPNokRedirectURI => $tPPNokRedirectURI, paymentProduct => $paymentProduct, paymentId => $paymentId, pSUIPAddress => $pSUIPAddress); print Dumper($result); }; if ($@) { warn "Exception when calling PaymentInitiationServicePISApi->createAuthorisation: $@\n"; }
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentInitiationServicePISApi()
xRequestID = xRequestID_example # String | ID of the request, unique to the call, as determined by the initiating party.
tPPRedirectURI = tPPRedirectURI_example # String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. tPPNokRedirectURI = tPPNokRedirectURI_example # String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. paymentProduct = paymentProduct_example # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported. paymentId = paymentId_example # String | Resource identification of the generated payment initiation resource. pSUIPAddress = pSUIPAddress_example # String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP. (optional) try: # Start the authorisation process for a payment initiation api_response = api_instance.create_authorisation(xRequestID, tPPRedirectURI, tPPNokRedirectURI, paymentProduct, paymentId, pSUIPAddress=pSUIPAddress) pprint(api_response) except ApiException as e: print("Exception when calling PaymentInitiationServicePISApi->createAuthorisation: %s\n" % e)

Parameters

Path parameters
Name Description
payment-product*
String
The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
Required
payment-id*
String
Resource identification of the generated payment initiation resource.
Required
Header parameters
Name Description
X-Request-ID*
String
ID of the request, unique to the call, as determined by the initiating party.
Required
TPP-Redirect-URI*
String
URI of the TPP, where the transaction flow shall be redirected to after a Redirect. Mandated for the Redirect SCA Approach, specifically when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.<br> **Remark for Future:** This field might be changed to mandatory in the next version of the specification.
Required
TPP-Nok-Redirect-URI*
String
If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP.
Required
PSU-IP-Address
String
The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.

Responses

Status: 201 - Created

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not found

Status: 409 - Invalid status

Status: 500 - Internal Server Error

Status: 503 - Service Unavailable


getAuthorisationStatus

Read the SCA status of the payment authorisation

This method returns the SCA status of a payment initiation's authorisation sub-resource.


/api/v1/payments/{payment-product}/{payment-id}/authorisations/{authorisation-id}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"//api/v1/payments/{payment-product}/{payment-id}/authorisations/{authorisation-id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentInitiationServicePISApi;

import java.io.File;
import java.util.*;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        String authorisationId = authorisationId_example; // String | Resource identification of the related SCA.
        try {
            AuthorisationStatusResponse result = apiInstance.getAuthorisationStatus(xRequestID, paymentProduct, paymentId, authorisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#getAuthorisationStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentInitiationServicePISApi;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        String authorisationId = authorisationId_example; // String | Resource identification of the related SCA.
        try {
            AuthorisationStatusResponse result = apiInstance.getAuthorisationStatus(xRequestID, paymentProduct, paymentId, authorisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#getAuthorisationStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *xRequestID = xRequestID_example; // ID of the request, unique to the call, as determined by the initiating party.
String *paymentProduct = paymentProduct_example; // The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
String *paymentId = paymentId_example; // Resource identification of the generated payment initiation resource.
String *authorisationId = authorisationId_example; // Resource identification of the related SCA.

PaymentInitiationServicePISApi *apiInstance = [[PaymentInitiationServicePISApi alloc] init];

// Read the SCA status of the payment authorisation
[apiInstance getAuthorisationStatusWith:xRequestID
    paymentProduct:paymentProduct
    paymentId:paymentId
    authorisationId:authorisationId
              completionHandler: ^(AuthorisationStatusResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaymentInitiationApiPis = require('payment_initiation_api__pis');
var defaultClient = PaymentInitiationApiPis.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new PaymentInitiationApiPis.PaymentInitiationServicePISApi()
var xRequestID = xRequestID_example; // {{String}} ID of the request, unique to the call, as determined by the initiating party.
var paymentProduct = paymentProduct_example; // {{String}} The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
var paymentId = paymentId_example; // {{String}} Resource identification of the generated payment initiation resource.
var authorisationId = authorisationId_example; // {{String}} Resource identification of the related SCA.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAuthorisationStatus(xRequestID, paymentProduct, paymentId, authorisationId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAuthorisationStatusExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new PaymentInitiationServicePISApi();
            var xRequestID = xRequestID_example;  // String | ID of the request, unique to the call, as determined by the initiating party.
            var paymentProduct = paymentProduct_example;  // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
            var paymentId = paymentId_example;  // String | Resource identification of the generated payment initiation resource.
            var authorisationId = authorisationId_example;  // String | Resource identification of the related SCA.

            try
            {
                // Read the SCA status of the payment authorisation
                AuthorisationStatusResponse result = apiInstance.getAuthorisationStatus(xRequestID, paymentProduct, paymentId, authorisationId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentInitiationServicePISApi.getAuthorisationStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiPaymentInitiationServicePISApi();
$xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
$paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
$paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
$authorisationId = authorisationId_example; // String | Resource identification of the related SCA.

try {
    $result = $api_instance->getAuthorisationStatus($xRequestID, $paymentProduct, $paymentId, $authorisationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentInitiationServicePISApi->getAuthorisationStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentInitiationServicePISApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentInitiationServicePISApi->new();
my $xRequestID = xRequestID_example; # String | ID of the request, unique to the call, as determined by the initiating party.
my $paymentProduct = paymentProduct_example; # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
my $paymentId = paymentId_example; # String | Resource identification of the generated payment initiation resource.
my $authorisationId = authorisationId_example; # String | Resource identification of the related SCA.

eval { 
    my $result = $api_instance->getAuthorisationStatus(xRequestID => $xRequestID, paymentProduct => $paymentProduct, paymentId => $paymentId, authorisationId => $authorisationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentInitiationServicePISApi->getAuthorisationStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentInitiationServicePISApi()
xRequestID = xRequestID_example # String | ID of the request, unique to the call, as determined by the initiating party.
paymentProduct = paymentProduct_example # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
paymentId = paymentId_example # String | Resource identification of the generated payment initiation resource.
authorisationId = authorisationId_example # String | Resource identification of the related SCA.

try: 
    # Read the SCA status of the payment authorisation
    api_response = api_instance.get_authorisation_status(xRequestID, paymentProduct, paymentId, authorisationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentInitiationServicePISApi->getAuthorisationStatus: %s\n" % e)

Parameters

Path parameters
Name Description
payment-product*
String
The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
Required
payment-id*
String
Resource identification of the generated payment initiation resource.
Required
authorisation-id*
String
Resource identification of the related SCA.
Required
Header parameters
Name Description
X-Request-ID*
String
ID of the request, unique to the call, as determined by the initiating party.
Required

Responses

Status: 200 - OK

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not found

Status: 500 - Internal Server Error

Status: 503 - Service Unavailable


getAuthorisations

Get payment initiation authorisation sub-resources request

Read a list of all authorisation sub-resources IDs which have been created.


/api/v1/payments/{payment-product}/{payment-id}/authorisations

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"//api/v1/payments/{payment-product}/{payment-id}/authorisations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentInitiationServicePISApi;

import java.io.File;
import java.util.*;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        try {
            AuthorisationsResponse result = apiInstance.getAuthorisations(xRequestID, paymentProduct, paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#getAuthorisations");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentInitiationServicePISApi;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        try {
            AuthorisationsResponse result = apiInstance.getAuthorisations(xRequestID, paymentProduct, paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#getAuthorisations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *xRequestID = xRequestID_example; // ID of the request, unique to the call, as determined by the initiating party.
String *paymentProduct = paymentProduct_example; // The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
String *paymentId = paymentId_example; // Resource identification of the generated payment initiation resource.

PaymentInitiationServicePISApi *apiInstance = [[PaymentInitiationServicePISApi alloc] init];

// Get payment initiation authorisation sub-resources request
[apiInstance getAuthorisationsWith:xRequestID
    paymentProduct:paymentProduct
    paymentId:paymentId
              completionHandler: ^(AuthorisationsResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaymentInitiationApiPis = require('payment_initiation_api__pis');
var defaultClient = PaymentInitiationApiPis.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new PaymentInitiationApiPis.PaymentInitiationServicePISApi()
var xRequestID = xRequestID_example; // {{String}} ID of the request, unique to the call, as determined by the initiating party.
var paymentProduct = paymentProduct_example; // {{String}} The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
var paymentId = paymentId_example; // {{String}} Resource identification of the generated payment initiation resource.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAuthorisations(xRequestID, paymentProduct, paymentId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAuthorisationsExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new PaymentInitiationServicePISApi();
            var xRequestID = xRequestID_example;  // String | ID of the request, unique to the call, as determined by the initiating party.
            var paymentProduct = paymentProduct_example;  // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
            var paymentId = paymentId_example;  // String | Resource identification of the generated payment initiation resource.

            try
            {
                // Get payment initiation authorisation sub-resources request
                AuthorisationsResponse result = apiInstance.getAuthorisations(xRequestID, paymentProduct, paymentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentInitiationServicePISApi.getAuthorisations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiPaymentInitiationServicePISApi();
$xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
$paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
$paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.

try {
    $result = $api_instance->getAuthorisations($xRequestID, $paymentProduct, $paymentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentInitiationServicePISApi->getAuthorisations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentInitiationServicePISApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentInitiationServicePISApi->new();
my $xRequestID = xRequestID_example; # String | ID of the request, unique to the call, as determined by the initiating party.
my $paymentProduct = paymentProduct_example; # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
my $paymentId = paymentId_example; # String | Resource identification of the generated payment initiation resource.

eval { 
    my $result = $api_instance->getAuthorisations(xRequestID => $xRequestID, paymentProduct => $paymentProduct, paymentId => $paymentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentInitiationServicePISApi->getAuthorisations: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentInitiationServicePISApi()
xRequestID = xRequestID_example # String | ID of the request, unique to the call, as determined by the initiating party.
paymentProduct = paymentProduct_example # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
paymentId = paymentId_example # String | Resource identification of the generated payment initiation resource.

try: 
    # Get payment initiation authorisation sub-resources request
    api_response = api_instance.get_authorisations(xRequestID, paymentProduct, paymentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentInitiationServicePISApi->getAuthorisations: %s\n" % e)

Parameters

Path parameters
Name Description
payment-product*
String
The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
Required
payment-id*
String
Resource identification of the generated payment initiation resource.
Required
Header parameters
Name Description
X-Request-ID*
String
ID of the request, unique to the call, as determined by the initiating party.
Required

Responses

Status: 200 - OK

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not found

Status: 500 - Internal Server Error

Status: 503 - Service Unavailable


getPayment

Get payment information

Returns the content of a payment object.


/api/v1/payments/{payment-product}/{payment-id}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"//api/v1/payments/{payment-product}/{payment-id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentInitiationServicePISApi;

import java.io.File;
import java.util.*;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        try {
            PaymentResponse result = apiInstance.getPayment(xRequestID, paymentProduct, paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#getPayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentInitiationServicePISApi;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        try {
            PaymentResponse result = apiInstance.getPayment(xRequestID, paymentProduct, paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#getPayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *xRequestID = xRequestID_example; // ID of the request, unique to the call, as determined by the initiating party.
String *paymentProduct = paymentProduct_example; // The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
String *paymentId = paymentId_example; // Resource identification of the generated payment initiation resource.

PaymentInitiationServicePISApi *apiInstance = [[PaymentInitiationServicePISApi alloc] init];

// Get payment information
[apiInstance getPaymentWith:xRequestID
    paymentProduct:paymentProduct
    paymentId:paymentId
              completionHandler: ^(PaymentResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaymentInitiationApiPis = require('payment_initiation_api__pis');
var defaultClient = PaymentInitiationApiPis.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new PaymentInitiationApiPis.PaymentInitiationServicePISApi()
var xRequestID = xRequestID_example; // {{String}} ID of the request, unique to the call, as determined by the initiating party.
var paymentProduct = paymentProduct_example; // {{String}} The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
var paymentId = paymentId_example; // {{String}} Resource identification of the generated payment initiation resource.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPayment(xRequestID, paymentProduct, paymentId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPaymentExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new PaymentInitiationServicePISApi();
            var xRequestID = xRequestID_example;  // String | ID of the request, unique to the call, as determined by the initiating party.
            var paymentProduct = paymentProduct_example;  // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
            var paymentId = paymentId_example;  // String | Resource identification of the generated payment initiation resource.

            try
            {
                // Get payment information
                PaymentResponse result = apiInstance.getPayment(xRequestID, paymentProduct, paymentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentInitiationServicePISApi.getPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiPaymentInitiationServicePISApi();
$xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
$paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
$paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.

try {
    $result = $api_instance->getPayment($xRequestID, $paymentProduct, $paymentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentInitiationServicePISApi->getPayment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentInitiationServicePISApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentInitiationServicePISApi->new();
my $xRequestID = xRequestID_example; # String | ID of the request, unique to the call, as determined by the initiating party.
my $paymentProduct = paymentProduct_example; # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
my $paymentId = paymentId_example; # String | Resource identification of the generated payment initiation resource.

eval { 
    my $result = $api_instance->getPayment(xRequestID => $xRequestID, paymentProduct => $paymentProduct, paymentId => $paymentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentInitiationServicePISApi->getPayment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentInitiationServicePISApi()
xRequestID = xRequestID_example # String | ID of the request, unique to the call, as determined by the initiating party.
paymentProduct = paymentProduct_example # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
paymentId = paymentId_example # String | Resource identification of the generated payment initiation resource.

try: 
    # Get payment information
    api_response = api_instance.get_payment(xRequestID, paymentProduct, paymentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentInitiationServicePISApi->getPayment: %s\n" % e)

Parameters

Path parameters
Name Description
payment-product*
String
The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
Required
payment-id*
String
Resource identification of the generated payment initiation resource.
Required
Header parameters
Name Description
X-Request-ID*
String
ID of the request, unique to the call, as determined by the initiating party.
Required

Responses

Status: 200 - OK

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not found

Status: 500 - Internal Server Error

Status: 503 - Service Unavailable


getPaymentStatus

Payment initiation status request

Check the transaction status of a payment initiation. If status is not yet final then newest status will be fetched.


/api/v1/payments/{payment-product}/{payment-id}/status

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"//api/v1/payments/{payment-product}/{payment-id}/status"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentInitiationServicePISApi;

import java.io.File;
import java.util.*;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        try {
            PaymentStatusResponse result = apiInstance.getPaymentStatus(xRequestID, paymentProduct, paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#getPaymentStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentInitiationServicePISApi;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        try {
            PaymentStatusResponse result = apiInstance.getPaymentStatus(xRequestID, paymentProduct, paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#getPaymentStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *xRequestID = xRequestID_example; // ID of the request, unique to the call, as determined by the initiating party.
String *paymentProduct = paymentProduct_example; // The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
String *paymentId = paymentId_example; // Resource identification of the generated payment initiation resource.

PaymentInitiationServicePISApi *apiInstance = [[PaymentInitiationServicePISApi alloc] init];

// Payment initiation status request
[apiInstance getPaymentStatusWith:xRequestID
    paymentProduct:paymentProduct
    paymentId:paymentId
              completionHandler: ^(PaymentStatusResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaymentInitiationApiPis = require('payment_initiation_api__pis');
var defaultClient = PaymentInitiationApiPis.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new PaymentInitiationApiPis.PaymentInitiationServicePISApi()
var xRequestID = xRequestID_example; // {{String}} ID of the request, unique to the call, as determined by the initiating party.
var paymentProduct = paymentProduct_example; // {{String}} The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
var paymentId = paymentId_example; // {{String}} Resource identification of the generated payment initiation resource.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPaymentStatus(xRequestID, paymentProduct, paymentId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPaymentStatusExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new PaymentInitiationServicePISApi();
            var xRequestID = xRequestID_example;  // String | ID of the request, unique to the call, as determined by the initiating party.
            var paymentProduct = paymentProduct_example;  // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
            var paymentId = paymentId_example;  // String | Resource identification of the generated payment initiation resource.

            try
            {
                // Payment initiation status request
                PaymentStatusResponse result = apiInstance.getPaymentStatus(xRequestID, paymentProduct, paymentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentInitiationServicePISApi.getPaymentStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiPaymentInitiationServicePISApi();
$xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
$paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
$paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.

try {
    $result = $api_instance->getPaymentStatus($xRequestID, $paymentProduct, $paymentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentInitiationServicePISApi->getPaymentStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentInitiationServicePISApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentInitiationServicePISApi->new();
my $xRequestID = xRequestID_example; # String | ID of the request, unique to the call, as determined by the initiating party.
my $paymentProduct = paymentProduct_example; # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
my $paymentId = paymentId_example; # String | Resource identification of the generated payment initiation resource.

eval { 
    my $result = $api_instance->getPaymentStatus(xRequestID => $xRequestID, paymentProduct => $paymentProduct, paymentId => $paymentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentInitiationServicePISApi->getPaymentStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentInitiationServicePISApi()
xRequestID = xRequestID_example # String | ID of the request, unique to the call, as determined by the initiating party.
paymentProduct = paymentProduct_example # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
paymentId = paymentId_example # String | Resource identification of the generated payment initiation resource.

try: 
    # Payment initiation status request
    api_response = api_instance.get_payment_status(xRequestID, paymentProduct, paymentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentInitiationServicePISApi->getPaymentStatus: %s\n" % e)

Parameters

Path parameters
Name Description
payment-product*
String
The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
Required
payment-id*
String
Resource identification of the generated payment initiation resource.
Required
Header parameters
Name Description
X-Request-ID*
String
ID of the request, unique to the call, as determined by the initiating party.
Required

Responses

Status: 200 - OK

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not found

Status: 500 - Internal Server Error

Status: 503 - Service Unavailable


initiate

Payment initiation request

This method is used to initiate a payment at the ASPSP.


/api/v1/payments/{payment-product}

Usage and SDK Samples

curl -X POST\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//api/v1/payments/{payment-product}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentInitiationServicePISApi;

import java.io.File;
import java.util.*;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        InitiatePaymentRequest body = ; // InitiatePaymentRequest | 
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String pSUIPAddress = pSUIPAddress_example; // String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String tPPRedirectURI = tPPRedirectURI_example; // String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. String tPPNokRedirectURI = tPPNokRedirectURI_example; // String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. Boolean tPPRedirectPreferred = true; // Boolean | If it equals "true", the TPP prefers a redirect over an embedded SCA approach and new authorisation resource will be created with preselected redirect SCA method. If it equals "false", the TPP prefers not to be redirected for SCA. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU. try { InitiatePaymentResponse result = apiInstance.initiate(body, xRequestID, pSUIPAddress, paymentProduct, tPPRedirectURI, tPPNokRedirectURI, tPPRedirectPreferred); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PaymentInitiationServicePISApi#initiate"); e.printStackTrace(); } } }
import io.swagger.client.api.PaymentInitiationServicePISApi;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        InitiatePaymentRequest body = ; // InitiatePaymentRequest | 
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String pSUIPAddress = pSUIPAddress_example; // String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String tPPRedirectURI = tPPRedirectURI_example; // String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. String tPPNokRedirectURI = tPPNokRedirectURI_example; // String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. Boolean tPPRedirectPreferred = true; // Boolean | If it equals "true", the TPP prefers a redirect over an embedded SCA approach and new authorisation resource will be created with preselected redirect SCA method. If it equals "false", the TPP prefers not to be redirected for SCA. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU. try { InitiatePaymentResponse result = apiInstance.initiate(body, xRequestID, pSUIPAddress, paymentProduct, tPPRedirectURI, tPPNokRedirectURI, tPPRedirectPreferred); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PaymentInitiationServicePISApi#initiate"); e.printStackTrace(); } } }
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
InitiatePaymentRequest *body = ; // 
String *xRequestID = xRequestID_example; // ID of the request, unique to the call, as determined by the initiating party.
String *pSUIPAddress = pSUIPAddress_example; // The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
String *paymentProduct = paymentProduct_example; // The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
String *tPPRedirectURI = tPPRedirectURI_example; // URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. (optional) String *tPPNokRedirectURI = tPPNokRedirectURI_example; // If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. (optional) Boolean *tPPRedirectPreferred = true; // If it equals "true", the TPP prefers a redirect over an embedded SCA approach and new authorisation resource will be created with preselected redirect SCA method. If it equals "false", the TPP prefers not to be redirected for SCA. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU. (optional) PaymentInitiationServicePISApi *apiInstance = [[PaymentInitiationServicePISApi alloc] init]; // Payment initiation request [apiInstance initiateWith:body xRequestID:xRequestID pSUIPAddress:pSUIPAddress paymentProduct:paymentProduct tPPRedirectURI:tPPRedirectURI tPPNokRedirectURI:tPPNokRedirectURI tPPRedirectPreferred:tPPRedirectPreferred completionHandler: ^(InitiatePaymentResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } if (error) { NSLog(@"Error: %@", error); } }];
var PaymentInitiationApiPis = require('payment_initiation_api__pis');
var defaultClient = PaymentInitiationApiPis.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new PaymentInitiationApiPis.PaymentInitiationServicePISApi()
var body = ; // {{InitiatePaymentRequest}} 
var xRequestID = xRequestID_example; // {{String}} ID of the request, unique to the call, as determined by the initiating party.
var pSUIPAddress = pSUIPAddress_example; // {{String}} The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
var paymentProduct = paymentProduct_example; // {{String}} The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
var opts = { 
  'tPPRedirectURI': tPPRedirectURI_example // {{String}} URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. 'tPPNokRedirectURI': tPPNokRedirectURI_example // {{String}} If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. 'tPPRedirectPreferred': true // {{Boolean}} If it equals "true", the TPP prefers a redirect over an embedded SCA approach and new authorisation resource will be created with preselected redirect SCA method. If it equals "false", the TPP prefers not to be redirected for SCA. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU. }; var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.initiate(bodyxRequestIDpSUIPAddresspaymentProduct, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class initiateExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new PaymentInitiationServicePISApi();
            var body = new InitiatePaymentRequest(); // InitiatePaymentRequest | 
            var xRequestID = xRequestID_example;  // String | ID of the request, unique to the call, as determined by the initiating party.
            var pSUIPAddress = pSUIPAddress_example;  // String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
            var paymentProduct = paymentProduct_example;  // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
            var tPPRedirectURI = tPPRedirectURI_example;  // String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. (optional) var tPPNokRedirectURI = tPPNokRedirectURI_example; // String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. (optional) var tPPRedirectPreferred = true; // Boolean | If it equals "true", the TPP prefers a redirect over an embedded SCA approach and new authorisation resource will be created with preselected redirect SCA method. If it equals "false", the TPP prefers not to be redirected for SCA. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU. (optional) try { // Payment initiation request InitiatePaymentResponse result = apiInstance.initiate(body, xRequestID, pSUIPAddress, paymentProduct, tPPRedirectURI, tPPNokRedirectURI, tPPRedirectPreferred); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling PaymentInitiationServicePISApi.initiate: " + e.Message ); } } } }
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiPaymentInitiationServicePISApi();
$body = ; // InitiatePaymentRequest | 
$xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
$pSUIPAddress = pSUIPAddress_example; // String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
$paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
$tPPRedirectURI = tPPRedirectURI_example; // String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. $tPPNokRedirectURI = tPPNokRedirectURI_example; // String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. $tPPRedirectPreferred = true; // Boolean | If it equals "true", the TPP prefers a redirect over an embedded SCA approach and new authorisation resource will be created with preselected redirect SCA method. If it equals "false", the TPP prefers not to be redirected for SCA. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU. try { $result = $api_instance->initiate($body, $xRequestID, $pSUIPAddress, $paymentProduct, $tPPRedirectURI, $tPPNokRedirectURI, $tPPRedirectPreferred); print_r($result); } catch (Exception $e) { echo 'Exception when calling PaymentInitiationServicePISApi->initiate: ', $e->getMessage(), PHP_EOL; } ?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentInitiationServicePISApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentInitiationServicePISApi->new();
my $body = WWW::SwaggerClient::Object::InitiatePaymentRequest->new(); # InitiatePaymentRequest | 
my $xRequestID = xRequestID_example; # String | ID of the request, unique to the call, as determined by the initiating party.
my $pSUIPAddress = pSUIPAddress_example; # String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
my $paymentProduct = paymentProduct_example; # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
my $tPPRedirectURI = tPPRedirectURI_example; # String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. my $tPPNokRedirectURI = tPPNokRedirectURI_example; # String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. my $tPPRedirectPreferred = true; # Boolean | If it equals "true", the TPP prefers a redirect over an embedded SCA approach and new authorisation resource will be created with preselected redirect SCA method. If it equals "false", the TPP prefers not to be redirected for SCA. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU. eval { my $result = $api_instance->initiate(body => $body, xRequestID => $xRequestID, pSUIPAddress => $pSUIPAddress, paymentProduct => $paymentProduct, tPPRedirectURI => $tPPRedirectURI, tPPNokRedirectURI => $tPPNokRedirectURI, tPPRedirectPreferred => $tPPRedirectPreferred); print Dumper($result); }; if ($@) { warn "Exception when calling PaymentInitiationServicePISApi->initiate: $@\n"; }
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentInitiationServicePISApi()
body =  # InitiatePaymentRequest | 
xRequestID = xRequestID_example # String | ID of the request, unique to the call, as determined by the initiating party.
pSUIPAddress = pSUIPAddress_example # String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
paymentProduct = paymentProduct_example # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
tPPRedirectURI = tPPRedirectURI_example # String | URI of the TPP, where the transaction flow shall be redirected to after a Redirect.  Mandated for the Redirect SCA Approach, specifically  when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
**Remark for Future:** This field might be changed to mandatory in the next version of the specification. (optional) tPPNokRedirectURI = tPPNokRedirectURI_example # String | If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP. (optional) tPPRedirectPreferred = true # Boolean | If it equals "true", the TPP prefers a redirect over an embedded SCA approach and new authorisation resource will be created with preselected redirect SCA method. If it equals "false", the TPP prefers not to be redirected for SCA. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU. (optional) try: # Payment initiation request api_response = api_instance.initiate(body, xRequestID, pSUIPAddress, paymentProduct, tPPRedirectURI=tPPRedirectURI, tPPNokRedirectURI=tPPNokRedirectURI, tPPRedirectPreferred=tPPRedirectPreferred) pprint(api_response) except ApiException as e: print("Exception when calling PaymentInitiationServicePISApi->initiate: %s\n" % e)

Parameters

Path parameters
Name Description
payment-product*
String
The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
Required
Header parameters
Name Description
X-Request-ID*
String
ID of the request, unique to the call, as determined by the initiating party.
Required
PSU-IP-Address*
String
The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
Required
TPP-Redirect-URI
String
URI of the TPP, where the transaction flow shall be redirected to after a Redirect. Mandated for the Redirect SCA Approach, specifically when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.<br> **Remark for Future:** This field might be changed to mandatory in the next version of the specification.
TPP-Nok-Redirect-URI
String
If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP.
TPP-Redirect-Preferred
Boolean
If it equals "true", the TPP prefers a redirect over an embedded SCA approach and new authorisation resource will be created with preselected redirect SCA method. If it equals "false", the TPP prefers not to be redirected for SCA. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU.
Body parameters
Name Description
body *

Responses

Status: 201 - Created

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not found

Status: 500 - Internal Server Error

Status: 503 - Service Unavailable


selectAuthorisationMethod

Update PSU data for payment initiation

Update data on the authorisation resource if needed. Independently from the SCA Approach it supports e.g. the selection of the authentication method and a non-SCA PSU authentication.


/api/v1/payments/{payment-product}/{payment-id}/authorisations/{authorisation-id}

Usage and SDK Samples

curl -X PATCH\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//api/v1/payments/{payment-product}/{payment-id}/authorisations/{authorisation-id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentInitiationServicePISApi;

import java.io.File;
import java.util.*;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        SelectAuthorisationMethodRequest body = ; // SelectAuthorisationMethodRequest | 
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        String authorisationId = authorisationId_example; // String | Resource identification of the related SCA.
        try {
            SelectAuthorisationMethodResponse result = apiInstance.selectAuthorisationMethod(body, xRequestID, paymentProduct, paymentId, authorisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#selectAuthorisationMethod");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentInitiationServicePISApi;

public class PaymentInitiationServicePISApiExample {

    public static void main(String[] args) {
        PaymentInitiationServicePISApi apiInstance = new PaymentInitiationServicePISApi();
        SelectAuthorisationMethodRequest body = ; // SelectAuthorisationMethodRequest | 
        String xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
        String paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
        String paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
        String authorisationId = authorisationId_example; // String | Resource identification of the related SCA.
        try {
            SelectAuthorisationMethodResponse result = apiInstance.selectAuthorisationMethod(body, xRequestID, paymentProduct, paymentId, authorisationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentInitiationServicePISApi#selectAuthorisationMethod");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
SelectAuthorisationMethodRequest *body = ; // 
String *xRequestID = xRequestID_example; // ID of the request, unique to the call, as determined by the initiating party.
String *paymentProduct = paymentProduct_example; // The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
String *paymentId = paymentId_example; // Resource identification of the generated payment initiation resource.
String *authorisationId = authorisationId_example; // Resource identification of the related SCA.

PaymentInitiationServicePISApi *apiInstance = [[PaymentInitiationServicePISApi alloc] init];

// Update PSU data for payment initiation
[apiInstance selectAuthorisationMethodWith:body
    xRequestID:xRequestID
    paymentProduct:paymentProduct
    paymentId:paymentId
    authorisationId:authorisationId
              completionHandler: ^(SelectAuthorisationMethodResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PaymentInitiationApiPis = require('payment_initiation_api__pis');
var defaultClient = PaymentInitiationApiPis.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new PaymentInitiationApiPis.PaymentInitiationServicePISApi()
var body = ; // {{SelectAuthorisationMethodRequest}} 
var xRequestID = xRequestID_example; // {{String}} ID of the request, unique to the call, as determined by the initiating party.
var paymentProduct = paymentProduct_example; // {{String}} The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
var paymentId = paymentId_example; // {{String}} Resource identification of the generated payment initiation resource.
var authorisationId = authorisationId_example; // {{String}} Resource identification of the related SCA.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.selectAuthorisationMethod(bodyxRequestIDpaymentProductpaymentIdauthorisationId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class selectAuthorisationMethodExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new PaymentInitiationServicePISApi();
            var body = new SelectAuthorisationMethodRequest(); // SelectAuthorisationMethodRequest | 
            var xRequestID = xRequestID_example;  // String | ID of the request, unique to the call, as determined by the initiating party.
            var paymentProduct = paymentProduct_example;  // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
            var paymentId = paymentId_example;  // String | Resource identification of the generated payment initiation resource.
            var authorisationId = authorisationId_example;  // String | Resource identification of the related SCA.

            try
            {
                // Update PSU data for payment initiation
                SelectAuthorisationMethodResponse result = apiInstance.selectAuthorisationMethod(body, xRequestID, paymentProduct, paymentId, authorisationId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentInitiationServicePISApi.selectAuthorisationMethod: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiPaymentInitiationServicePISApi();
$body = ; // SelectAuthorisationMethodRequest | 
$xRequestID = xRequestID_example; // String | ID of the request, unique to the call, as determined by the initiating party.
$paymentProduct = paymentProduct_example; // String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
$paymentId = paymentId_example; // String | Resource identification of the generated payment initiation resource.
$authorisationId = authorisationId_example; // String | Resource identification of the related SCA.

try {
    $result = $api_instance->selectAuthorisationMethod($body, $xRequestID, $paymentProduct, $paymentId, $authorisationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentInitiationServicePISApi->selectAuthorisationMethod: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentInitiationServicePISApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PaymentInitiationServicePISApi->new();
my $body = WWW::SwaggerClient::Object::SelectAuthorisationMethodRequest->new(); # SelectAuthorisationMethodRequest | 
my $xRequestID = xRequestID_example; # String | ID of the request, unique to the call, as determined by the initiating party.
my $paymentProduct = paymentProduct_example; # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
my $paymentId = paymentId_example; # String | Resource identification of the generated payment initiation resource.
my $authorisationId = authorisationId_example; # String | Resource identification of the related SCA.

eval { 
    my $result = $api_instance->selectAuthorisationMethod(body => $body, xRequestID => $xRequestID, paymentProduct => $paymentProduct, paymentId => $paymentId, authorisationId => $authorisationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentInitiationServicePISApi->selectAuthorisationMethod: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentInitiationServicePISApi()
body =  # SelectAuthorisationMethodRequest | 
xRequestID = xRequestID_example # String | ID of the request, unique to the call, as determined by the initiating party.
paymentProduct = paymentProduct_example # String | The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
paymentId = paymentId_example # String | Resource identification of the generated payment initiation resource.
authorisationId = authorisationId_example # String | Resource identification of the related SCA.

try: 
    # Update PSU data for payment initiation
    api_response = api_instance.select_authorisation_method(body, xRequestID, paymentProduct, paymentId, authorisationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentInitiationServicePISApi->selectAuthorisationMethod: %s\n" % e)

Parameters

Path parameters
Name Description
payment-product*
String
The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
Required
payment-id*
String
Resource identification of the generated payment initiation resource.
Required
authorisation-id*
String
Resource identification of the related SCA.
Required
Header parameters
Name Description
X-Request-ID*
String
ID of the request, unique to the call, as determined by the initiating party.
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not found

Status: 500 - Internal Server Error

Status: 503 - Service Unavailable