Swiss NextGen Banking API-Framework
Swiss NextGen Banking API-Frameworkv1.3.8_2020-12-14 - Swiss edition 1.3.8.1-CH
Summary The Swiss NextGen API is based on the NextGenPSD2 Framework Version 1.3.4 of the Berlin Group which offers a modern, open, harmonised and interoperable set of Application Programming Interfaces (APIs) as the safest and most efficient way to provide data securely. The NextGen Framework reduces XS2A complexity and costs, addresses the problem of multiple competing standards in Europe and, aligned with the goals of the Euro Retail Payments Board, enables European banking customers to benefit from innovative products and services ('Banking as a Service') by granting TPPs safe and secure…
- Endpoints
- 34 (19 GET, 8 POST, 4 PUT, 3 DELETE)
- Base URL
https://api.dev.openbankingproject.ch- Authentication
- Bearer token
- Spec format
- OpenAPI 3.0.1
- API version
- 1.3.8_2020-12-14 - Swiss edition 1.3.8.1-CH
- Provider
- openbankingproject.ch
- Categories
- Finance
- Last updated
Use this API in Bruno:
- Download the Bruno collection above and unzip it.
- In Bruno, choose Open Collection and select the unzipped folder.
- Set the
baseUrlvariable (for examplehttps://api.dev.openbankingproject.ch) and your Bearer token credentials, then send requests.
GET
Consent status request
{{baseUrl}}/v1/consents/:consentId/status
HEADERS
X-Request-ID
QUERY PARAMS
consentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/consents/:consentId/status");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/consents/:consentId/status" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/consents/:consentId/status"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/consents/:consentId/status"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/consents/:consentId/status");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/consents/:consentId/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/consents/:consentId/status HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/consents/:consentId/status")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/consents/:consentId/status"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/status")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/consents/:consentId/status")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/consents/:consentId/status');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId/status',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/consents/:consentId/status';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/consents/:consentId/status',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/status")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/consents/:consentId/status',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId/status',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/consents/:consentId/status');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId/status',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/consents/:consentId/status';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/consents/:consentId/status"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/consents/:consentId/status" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/consents/:consentId/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/consents/:consentId/status', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/consents/:consentId/status');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/consents/:consentId/status');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/consents/:consentId/status' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/consents/:consentId/status' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/consents/:consentId/status", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/consents/:consentId/status"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/consents/:consentId/status"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/consents/:consentId/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/consents/:consentId/status') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/consents/:consentId/status";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/consents/:consentId/status \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/consents/:consentId/status \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/consents/:consentId/status
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/consents/:consentId/status")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"consentStatus": "valid"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
POST
Create consent
{{baseUrl}}/v1/consents
HEADERS
X-Request-ID
PSU-IP-Address
BODY json
{
"access": {
"accounts": [
{
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
}
],
"additionalInformation": {
"ownerName": [
{}
],
"trustedBeneficiaries": [
{}
]
},
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": [
{}
],
"restrictedTo": [],
"transactions": [
{}
]
},
"combinedServiceIndicator": false,
"frequencyPerDay": 0,
"recurringIndicator": false,
"validUntil": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/consents");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
headers = curl_slist_append(headers, "psu-ip-address: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/consents" {:headers {:x-request-id ""
:psu-ip-address ""}
:content-type :json
:form-params {:access {:accounts [{:cashAccountType ""
:currency ""
:iban ""
:otherAccountIdentification ""}]
:additionalInformation {:ownerName [{}]
:trustedBeneficiaries [{}]}
:allPsd2 ""
:availableAccounts ""
:availableAccountsWithBalance ""
:balances [{}]
:restrictedTo []
:transactions [{}]}
:combinedServiceIndicator false
:frequencyPerDay 0
:recurringIndicator false
:validUntil ""}})
require "http/client"
url = "{{baseUrl}}/v1/consents"
headers = HTTP::Headers{
"x-request-id" => ""
"psu-ip-address" => ""
"content-type" => "application/json"
}
reqBody = "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/consents"),
Headers =
{
{ "x-request-id", "" },
{ "psu-ip-address", "" },
},
Content = new StringContent("{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/consents");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-request-id", "");
request.AddHeader("psu-ip-address", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/consents"
payload := strings.NewReader("{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-request-id", "")
req.Header.Add("psu-ip-address", "")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/consents HTTP/1.1
X-Request-Id:
Psu-Ip-Address:
Content-Type: application/json
Host: example.com
Content-Length: 603
{
"access": {
"accounts": [
{
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
}
],
"additionalInformation": {
"ownerName": [
{}
],
"trustedBeneficiaries": [
{}
]
},
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": [
{}
],
"restrictedTo": [],
"transactions": [
{}
]
},
"combinedServiceIndicator": false,
"frequencyPerDay": 0,
"recurringIndicator": false,
"validUntil": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/consents")
.setHeader("x-request-id", "")
.setHeader("psu-ip-address", "")
.setHeader("content-type", "application/json")
.setBody("{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/consents"))
.header("x-request-id", "")
.header("psu-ip-address", "")
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/consents")
.post(body)
.addHeader("x-request-id", "")
.addHeader("psu-ip-address", "")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/consents")
.header("x-request-id", "")
.header("psu-ip-address", "")
.header("content-type", "application/json")
.body("{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}")
.asString();
const data = JSON.stringify({
access: {
accounts: [
{
cashAccountType: '',
currency: '',
iban: '',
otherAccountIdentification: ''
}
],
additionalInformation: {
ownerName: [
{}
],
trustedBeneficiaries: [
{}
]
},
allPsd2: '',
availableAccounts: '',
availableAccountsWithBalance: '',
balances: [
{}
],
restrictedTo: [],
transactions: [
{}
]
},
combinedServiceIndicator: false,
frequencyPerDay: 0,
recurringIndicator: false,
validUntil: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/consents');
xhr.setRequestHeader('x-request-id', '');
xhr.setRequestHeader('psu-ip-address', '');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/consents',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
data: {
access: {
accounts: [{cashAccountType: '', currency: '', iban: '', otherAccountIdentification: ''}],
additionalInformation: {ownerName: [{}], trustedBeneficiaries: [{}]},
allPsd2: '',
availableAccounts: '',
availableAccountsWithBalance: '',
balances: [{}],
restrictedTo: [],
transactions: [{}]
},
combinedServiceIndicator: false,
frequencyPerDay: 0,
recurringIndicator: false,
validUntil: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/consents';
const options = {
method: 'POST',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
body: '{"access":{"accounts":[{"cashAccountType":"","currency":"","iban":"","otherAccountIdentification":""}],"additionalInformation":{"ownerName":[{}],"trustedBeneficiaries":[{}]},"allPsd2":"","availableAccounts":"","availableAccountsWithBalance":"","balances":[{}],"restrictedTo":[],"transactions":[{}]},"combinedServiceIndicator":false,"frequencyPerDay":0,"recurringIndicator":false,"validUntil":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/consents',
method: 'POST',
headers: {
'x-request-id': '',
'psu-ip-address': '',
'content-type': 'application/json'
},
processData: false,
data: '{\n "access": {\n "accounts": [\n {\n "cashAccountType": "",\n "currency": "",\n "iban": "",\n "otherAccountIdentification": ""\n }\n ],\n "additionalInformation": {\n "ownerName": [\n {}\n ],\n "trustedBeneficiaries": [\n {}\n ]\n },\n "allPsd2": "",\n "availableAccounts": "",\n "availableAccountsWithBalance": "",\n "balances": [\n {}\n ],\n "restrictedTo": [],\n "transactions": [\n {}\n ]\n },\n "combinedServiceIndicator": false,\n "frequencyPerDay": 0,\n "recurringIndicator": false,\n "validUntil": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/consents")
.post(body)
.addHeader("x-request-id", "")
.addHeader("psu-ip-address", "")
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/consents',
headers: {
'x-request-id': '',
'psu-ip-address': '',
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
access: {
accounts: [{cashAccountType: '', currency: '', iban: '', otherAccountIdentification: ''}],
additionalInformation: {ownerName: [{}], trustedBeneficiaries: [{}]},
allPsd2: '',
availableAccounts: '',
availableAccountsWithBalance: '',
balances: [{}],
restrictedTo: [],
transactions: [{}]
},
combinedServiceIndicator: false,
frequencyPerDay: 0,
recurringIndicator: false,
validUntil: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/consents',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
body: {
access: {
accounts: [{cashAccountType: '', currency: '', iban: '', otherAccountIdentification: ''}],
additionalInformation: {ownerName: [{}], trustedBeneficiaries: [{}]},
allPsd2: '',
availableAccounts: '',
availableAccountsWithBalance: '',
balances: [{}],
restrictedTo: [],
transactions: [{}]
},
combinedServiceIndicator: false,
frequencyPerDay: 0,
recurringIndicator: false,
validUntil: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/consents');
req.headers({
'x-request-id': '',
'psu-ip-address': '',
'content-type': 'application/json'
});
req.type('json');
req.send({
access: {
accounts: [
{
cashAccountType: '',
currency: '',
iban: '',
otherAccountIdentification: ''
}
],
additionalInformation: {
ownerName: [
{}
],
trustedBeneficiaries: [
{}
]
},
allPsd2: '',
availableAccounts: '',
availableAccountsWithBalance: '',
balances: [
{}
],
restrictedTo: [],
transactions: [
{}
]
},
combinedServiceIndicator: false,
frequencyPerDay: 0,
recurringIndicator: false,
validUntil: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/consents',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
data: {
access: {
accounts: [{cashAccountType: '', currency: '', iban: '', otherAccountIdentification: ''}],
additionalInformation: {ownerName: [{}], trustedBeneficiaries: [{}]},
allPsd2: '',
availableAccounts: '',
availableAccountsWithBalance: '',
balances: [{}],
restrictedTo: [],
transactions: [{}]
},
combinedServiceIndicator: false,
frequencyPerDay: 0,
recurringIndicator: false,
validUntil: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/consents';
const options = {
method: 'POST',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
body: '{"access":{"accounts":[{"cashAccountType":"","currency":"","iban":"","otherAccountIdentification":""}],"additionalInformation":{"ownerName":[{}],"trustedBeneficiaries":[{}]},"allPsd2":"","availableAccounts":"","availableAccountsWithBalance":"","balances":[{}],"restrictedTo":[],"transactions":[{}]},"combinedServiceIndicator":false,"frequencyPerDay":0,"recurringIndicator":false,"validUntil":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"",
@"psu-ip-address": @"",
@"content-type": @"application/json" };
NSDictionary *parameters = @{ @"access": @{ @"accounts": @[ @{ @"cashAccountType": @"", @"currency": @"", @"iban": @"", @"otherAccountIdentification": @"" } ], @"additionalInformation": @{ @"ownerName": @[ @{ } ], @"trustedBeneficiaries": @[ @{ } ] }, @"allPsd2": @"", @"availableAccounts": @"", @"availableAccountsWithBalance": @"", @"balances": @[ @{ } ], @"restrictedTo": @[ ], @"transactions": @[ @{ } ] },
@"combinedServiceIndicator": @NO,
@"frequencyPerDay": @0,
@"recurringIndicator": @NO,
@"validUntil": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/consents"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/consents" in
let headers = Header.add_list (Header.init ()) [
("x-request-id", "");
("psu-ip-address", "");
("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/consents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'access' => [
'accounts' => [
[
'cashAccountType' => '',
'currency' => '',
'iban' => '',
'otherAccountIdentification' => ''
]
],
'additionalInformation' => [
'ownerName' => [
[
]
],
'trustedBeneficiaries' => [
[
]
]
],
'allPsd2' => '',
'availableAccounts' => '',
'availableAccountsWithBalance' => '',
'balances' => [
[
]
],
'restrictedTo' => [
],
'transactions' => [
[
]
]
],
'combinedServiceIndicator' => null,
'frequencyPerDay' => 0,
'recurringIndicator' => null,
'validUntil' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json",
"psu-ip-address: ",
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/consents', [
'body' => '{
"access": {
"accounts": [
{
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
}
],
"additionalInformation": {
"ownerName": [
{}
],
"trustedBeneficiaries": [
{}
]
},
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": [
{}
],
"restrictedTo": [],
"transactions": [
{}
]
},
"combinedServiceIndicator": false,
"frequencyPerDay": 0,
"recurringIndicator": false,
"validUntil": ""
}',
'headers' => [
'content-type' => 'application/json',
'psu-ip-address' => '',
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/consents');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-request-id' => '',
'psu-ip-address' => '',
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'access' => [
'accounts' => [
[
'cashAccountType' => '',
'currency' => '',
'iban' => '',
'otherAccountIdentification' => ''
]
],
'additionalInformation' => [
'ownerName' => [
[
]
],
'trustedBeneficiaries' => [
[
]
]
],
'allPsd2' => '',
'availableAccounts' => '',
'availableAccountsWithBalance' => '',
'balances' => [
[
]
],
'restrictedTo' => [
],
'transactions' => [
[
]
]
],
'combinedServiceIndicator' => null,
'frequencyPerDay' => 0,
'recurringIndicator' => null,
'validUntil' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'access' => [
'accounts' => [
[
'cashAccountType' => '',
'currency' => '',
'iban' => '',
'otherAccountIdentification' => ''
]
],
'additionalInformation' => [
'ownerName' => [
[
]
],
'trustedBeneficiaries' => [
[
]
]
],
'allPsd2' => '',
'availableAccounts' => '',
'availableAccountsWithBalance' => '',
'balances' => [
[
]
],
'restrictedTo' => [
],
'transactions' => [
[
]
]
],
'combinedServiceIndicator' => null,
'frequencyPerDay' => 0,
'recurringIndicator' => null,
'validUntil' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/consents');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'x-request-id' => '',
'psu-ip-address' => '',
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("psu-ip-address", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/consents' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"access": {
"accounts": [
{
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
}
],
"additionalInformation": {
"ownerName": [
{}
],
"trustedBeneficiaries": [
{}
]
},
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": [
{}
],
"restrictedTo": [],
"transactions": [
{}
]
},
"combinedServiceIndicator": false,
"frequencyPerDay": 0,
"recurringIndicator": false,
"validUntil": ""
}'
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("psu-ip-address", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/consents' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"access": {
"accounts": [
{
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
}
],
"additionalInformation": {
"ownerName": [
{}
],
"trustedBeneficiaries": [
{}
]
},
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": [
{}
],
"restrictedTo": [],
"transactions": [
{}
]
},
"combinedServiceIndicator": false,
"frequencyPerDay": 0,
"recurringIndicator": false,
"validUntil": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}"
headers = {
'x-request-id': "",
'psu-ip-address': "",
'content-type': "application/json"
}
conn.request("POST", "/baseUrl/v1/consents", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/consents"
payload = {
"access": {
"accounts": [
{
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
}
],
"additionalInformation": {
"ownerName": [{}],
"trustedBeneficiaries": [{}]
},
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": [{}],
"restrictedTo": [],
"transactions": [{}]
},
"combinedServiceIndicator": False,
"frequencyPerDay": 0,
"recurringIndicator": False,
"validUntil": ""
}
headers = {
"x-request-id": "",
"psu-ip-address": "",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/consents"
payload <- "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, add_headers('x-request-id' = '', 'psu-ip-address' = ''), content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/consents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = ''
request["psu-ip-address"] = ''
request["content-type"] = 'application/json'
request.body = "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/consents') do |req|
req.headers['x-request-id'] = ''
req.headers['psu-ip-address'] = ''
req.body = "{\n \"access\": {\n \"accounts\": [\n {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n }\n ],\n \"additionalInformation\": {\n \"ownerName\": [\n {}\n ],\n \"trustedBeneficiaries\": [\n {}\n ]\n },\n \"allPsd2\": \"\",\n \"availableAccounts\": \"\",\n \"availableAccountsWithBalance\": \"\",\n \"balances\": [\n {}\n ],\n \"restrictedTo\": [],\n \"transactions\": [\n {}\n ]\n },\n \"combinedServiceIndicator\": false,\n \"frequencyPerDay\": 0,\n \"recurringIndicator\": false,\n \"validUntil\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/consents";
let payload = json!({
"access": json!({
"accounts": (
json!({
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
})
),
"additionalInformation": json!({
"ownerName": (json!({})),
"trustedBeneficiaries": (json!({}))
}),
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": (json!({})),
"restrictedTo": (),
"transactions": (json!({}))
}),
"combinedServiceIndicator": false,
"frequencyPerDay": 0,
"recurringIndicator": false,
"validUntil": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
headers.insert("psu-ip-address", "".parse().unwrap());
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/consents \
--header 'content-type: application/json' \
--header 'psu-ip-address: ' \
--header 'x-request-id: ' \
--data '{
"access": {
"accounts": [
{
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
}
],
"additionalInformation": {
"ownerName": [
{}
],
"trustedBeneficiaries": [
{}
]
},
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": [
{}
],
"restrictedTo": [],
"transactions": [
{}
]
},
"combinedServiceIndicator": false,
"frequencyPerDay": 0,
"recurringIndicator": false,
"validUntil": ""
}'
echo '{
"access": {
"accounts": [
{
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
}
],
"additionalInformation": {
"ownerName": [
{}
],
"trustedBeneficiaries": [
{}
]
},
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": [
{}
],
"restrictedTo": [],
"transactions": [
{}
]
},
"combinedServiceIndicator": false,
"frequencyPerDay": 0,
"recurringIndicator": false,
"validUntil": ""
}' | \
http POST {{baseUrl}}/v1/consents \
content-type:application/json \
psu-ip-address:'' \
x-request-id:''
wget --quiet \
--method POST \
--header 'x-request-id: ' \
--header 'psu-ip-address: ' \
--header 'content-type: application/json' \
--body-data '{\n "access": {\n "accounts": [\n {\n "cashAccountType": "",\n "currency": "",\n "iban": "",\n "otherAccountIdentification": ""\n }\n ],\n "additionalInformation": {\n "ownerName": [\n {}\n ],\n "trustedBeneficiaries": [\n {}\n ]\n },\n "allPsd2": "",\n "availableAccounts": "",\n "availableAccountsWithBalance": "",\n "balances": [\n {}\n ],\n "restrictedTo": [],\n "transactions": [\n {}\n ]\n },\n "combinedServiceIndicator": false,\n "frequencyPerDay": 0,\n "recurringIndicator": false,\n "validUntil": ""\n}' \
--output-document \
- {{baseUrl}}/v1/consents
import Foundation
let headers = [
"x-request-id": "",
"psu-ip-address": "",
"content-type": "application/json"
]
let parameters = [
"access": [
"accounts": [
[
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
]
],
"additionalInformation": [
"ownerName": [[]],
"trustedBeneficiaries": [[]]
],
"allPsd2": "",
"availableAccounts": "",
"availableAccountsWithBalance": "",
"balances": [[]],
"restrictedTo": [],
"transactions": [[]]
],
"combinedServiceIndicator": false,
"frequencyPerDay": 0,
"recurringIndicator": false,
"validUntil": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/consents")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaRedirect": {
"href": "https://www.testbank.com/authentication/1234-wertiq-983"
},
"scaStatus": {
"href": "v1/consents/1234-wertiq-983/authorisations/123auth567"
},
"status": {
"href": "/v1/consents/1234-wertiq-983/status"
}
},
"consentId": "1234-wertiq-983",
"consentStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"startAuthorisation": {
"href": "v1/consents/1234-wertiq-983/authorisations"
}
},
"consentId": "1234-wertiq-983",
"consentStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaOAuth": {
"href": "https://www.testbank.com/oauth/.well-known/oauth-authorization-server"
},
"scaStatus": {
"href": "v1/consents/1234-wertiq-983/authorisations/123auth567"
},
"self": {
"href": "/v1/consents/1234-wertiq-983"
}
},
"consentId": "1234-wertiq-983",
"consentStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"startAuthorisationWithPsuIdentification": {
"href": "/v1/consents/1234-wertiq-983/authorisations"
}
},
"consentId": "1234-wertiq-983",
"consentStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"startAuthorisationWithPsuAuthentication": {
"href": "/v1/consents/1234-wertiq-983/authorisations"
}
},
"consentId": "1234-wertiq-983",
"consentStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
DELETE
Delete Consent
{{baseUrl}}/v1/consents/:consentId
HEADERS
X-Request-ID
QUERY PARAMS
consentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/consents/:consentId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/v1/consents/:consentId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/consents/:consentId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/v1/consents/:consentId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/consents/:consentId");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/consents/:consentId"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/v1/consents/:consentId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1/consents/:consentId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/consents/:consentId"))
.header("x-request-id", "")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId")
.delete(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1/consents/:consentId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/v1/consents/:consentId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v1/consents/:consentId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/consents/:consentId';
const options = {method: 'DELETE', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/consents/:consentId',
method: 'DELETE',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId")
.delete(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/consents/:consentId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v1/consents/:consentId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/v1/consents/:consentId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v1/consents/:consentId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/consents/:consentId';
const options = {method: 'DELETE', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/consents/:consentId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/consents/:consentId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/consents/:consentId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/v1/consents/:consentId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/consents/:consentId');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/consents/:consentId');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/consents/:consentId' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/consents/:consentId' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("DELETE", "/baseUrl/v1/consents/:consentId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/consents/:consentId"
headers = {"x-request-id": ""}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/consents/:consentId"
response <- VERB("DELETE", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/consents/:consentId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/v1/consents/:consentId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/consents/:consentId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/v1/consents/:consentId \
--header 'x-request-id: '
http DELETE {{baseUrl}}/v1/consents/:consentId \
x-request-id:''
wget --quiet \
--method DELETE \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/consents/:consentId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/consents/:consentId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Get consent authorisation sub-resources request
{{baseUrl}}/v1/consents/:consentId/authorisations
HEADERS
X-Request-ID
QUERY PARAMS
consentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/consents/:consentId/authorisations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/consents/:consentId/authorisations" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/consents/:consentId/authorisations"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/consents/:consentId/authorisations"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/consents/:consentId/authorisations");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/consents/:consentId/authorisations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/consents/:consentId/authorisations HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/consents/:consentId/authorisations")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/consents/:consentId/authorisations"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/authorisations")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/consents/:consentId/authorisations")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/consents/:consentId/authorisations');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/consents/:consentId/authorisations';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/consents/:consentId/authorisations',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/authorisations")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/consents/:consentId/authorisations',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/consents/:consentId/authorisations');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/consents/:consentId/authorisations';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/consents/:consentId/authorisations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/consents/:consentId/authorisations" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/consents/:consentId/authorisations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/consents/:consentId/authorisations', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/consents/:consentId/authorisations');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/consents/:consentId/authorisations');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/consents/:consentId/authorisations' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/consents/:consentId/authorisations' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/consents/:consentId/authorisations", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/consents/:consentId/authorisations"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/consents/:consentId/authorisations"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/consents/:consentId/authorisations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/consents/:consentId/authorisations') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/consents/:consentId/authorisations";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/consents/:consentId/authorisations \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/consents/:consentId/authorisations \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/consents/:consentId/authorisations
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/consents/:consentId/authorisations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"authorisationIds": [
"123auth456"
]
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Get consent request
{{baseUrl}}/v1/consents/:consentId
HEADERS
X-Request-ID
QUERY PARAMS
consentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/consents/:consentId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/consents/:consentId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/consents/:consentId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/consents/:consentId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/consents/:consentId");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/consents/:consentId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/consents/:consentId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/consents/:consentId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/consents/:consentId"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/consents/:consentId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/consents/:consentId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/consents/:consentId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/consents/:consentId',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/consents/:consentId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/consents/:consentId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/consents/:consentId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/consents/:consentId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/consents/:consentId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/consents/:consentId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/consents/:consentId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/consents/:consentId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/consents/:consentId');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/consents/:consentId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/consents/:consentId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/consents/:consentId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/consents/:consentId"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/consents/:consentId"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/consents/:consentId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/consents/:consentId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/consents/:consentId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/consents/:consentId \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/consents/:consentId \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/consents/:consentId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/consents/:consentId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"account": {
"href": "/v1/accounts"
}
},
"access": {
"balances": [
{
"iban": "DE2310010010123456789"
}
],
"transactions": [
{
"iban": "DE2310010010123456789"
},
{
"pan": "123456xxxxxx3457"
}
]
},
"consentStatus": "valid",
"frequencyPerDay": 4,
"recurringIndicator": "true",
"validUntil": "2017-11-01"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read account details
{{baseUrl}}/v1/accounts/:account-id
HEADERS
X-Request-ID
Consent-ID
QUERY PARAMS
account-id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/accounts/:account-id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
headers = curl_slist_append(headers, "consent-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/accounts/:account-id" {:headers {:x-request-id ""
:consent-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/accounts/:account-id"
headers = HTTP::Headers{
"x-request-id" => ""
"consent-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/accounts/:account-id"),
Headers =
{
{ "x-request-id", "" },
{ "consent-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/accounts/:account-id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
request.AddHeader("consent-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/accounts/:account-id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
req.Header.Add("consent-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/accounts/:account-id HTTP/1.1
X-Request-Id:
Consent-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/accounts/:account-id")
.setHeader("x-request-id", "")
.setHeader("consent-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/accounts/:account-id"))
.header("x-request-id", "")
.header("consent-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/accounts/:account-id")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/accounts/:account-id")
.header("x-request-id", "")
.header("consent-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/accounts/:account-id');
xhr.setRequestHeader('x-request-id', '');
xhr.setRequestHeader('consent-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id',
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/accounts/:account-id';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/accounts/:account-id',
method: 'GET',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/accounts/:account-id")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/accounts/:account-id',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id',
headers: {'x-request-id': '', 'consent-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/accounts/:account-id');
req.headers({
'x-request-id': '',
'consent-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id',
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/accounts/:account-id';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"",
@"consent-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/accounts/:account-id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/accounts/:account-id" in
let headers = Header.add_list (Header.init ()) [
("x-request-id", "");
("consent-id", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/accounts/:account-id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"consent-id: ",
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/accounts/:account-id', [
'headers' => [
'consent-id' => '',
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/accounts/:account-id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/accounts/:account-id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/accounts/:account-id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/accounts/:account-id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-request-id': "",
'consent-id': ""
}
conn.request("GET", "/baseUrl/v1/accounts/:account-id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/accounts/:account-id"
headers = {
"x-request-id": "",
"consent-id": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/accounts/:account-id"
response <- VERB("GET", url, add_headers('x-request-id' = '', 'consent-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/accounts/:account-id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
request["consent-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/accounts/:account-id') do |req|
req.headers['x-request-id'] = ''
req.headers['consent-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/accounts/:account-id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
headers.insert("consent-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/accounts/:account-id \
--header 'consent-id: ' \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/accounts/:account-id \
consent-id:'' \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--header 'consent-id: ' \
--output-document \
- {{baseUrl}}/v1/accounts/:account-id
import Foundation
let headers = [
"x-request-id": "",
"consent-id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/accounts/:account-id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"account": {
"_links": {
"balances": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f/balances"
},
"transactions": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f/transactions"
}
},
"cashAccountType": "CACC",
"currency": "XXX",
"iban": "FR7612345987650123456789014",
"name": "Aggregation Account",
"ownerName": "Heike Mustermann",
"product": "Multicurrency Account",
"resourceId": "3dc3d5b3-7023-4848-9853-f5400a64e80f"
}
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"account": {
"_links": {
"balances": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f/balances"
},
"transactions": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f/transactions"
}
},
"cashAccountType": "CACC",
"currency": "EUR",
"iban": "FR7612345987650123456789014",
"name": "Main Account",
"ownerName": "Heike Mustermann",
"product": "Girokonto",
"resourceId": "3dc3d5b3-7023-4848-9853-f5400a64e80f"
}
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read account list
{{baseUrl}}/v1/accounts
HEADERS
X-Request-ID
Consent-ID
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/accounts");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
headers = curl_slist_append(headers, "consent-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/accounts" {:headers {:x-request-id ""
:consent-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/accounts"
headers = HTTP::Headers{
"x-request-id" => ""
"consent-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/accounts"),
Headers =
{
{ "x-request-id", "" },
{ "consent-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/accounts");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
request.AddHeader("consent-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
req.Header.Add("consent-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/accounts HTTP/1.1
X-Request-Id:
Consent-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/accounts")
.setHeader("x-request-id", "")
.setHeader("consent-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/accounts"))
.header("x-request-id", "")
.header("consent-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/accounts")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/accounts")
.header("x-request-id", "")
.header("consent-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/accounts');
xhr.setRequestHeader('x-request-id', '');
xhr.setRequestHeader('consent-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts',
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/accounts';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/accounts',
method: 'GET',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/accounts")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/accounts',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts',
headers: {'x-request-id': '', 'consent-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/accounts');
req.headers({
'x-request-id': '',
'consent-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts',
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/accounts';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"",
@"consent-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/accounts"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/accounts" in
let headers = Header.add_list (Header.init ()) [
("x-request-id", "");
("consent-id", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"consent-id: ",
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/accounts', [
'headers' => [
'consent-id' => '',
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/accounts');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/accounts');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/accounts' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/accounts' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-request-id': "",
'consent-id': ""
}
conn.request("GET", "/baseUrl/v1/accounts", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/accounts"
headers = {
"x-request-id": "",
"consent-id": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/accounts"
response <- VERB("GET", url, add_headers('x-request-id' = '', 'consent-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
request["consent-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/accounts') do |req|
req.headers['x-request-id'] = ''
req.headers['consent-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/accounts";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
headers.insert("consent-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/accounts \
--header 'consent-id: ' \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/accounts \
consent-id:'' \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--header 'consent-id: ' \
--output-document \
- {{baseUrl}}/v1/accounts
import Foundation
let headers = [
"x-request-id": "",
"consent-id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/accounts")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"accounts": [
{
"_links": {
"balances": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f/balances"
},
"transactions": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f/transactions"
}
},
"cashAccountType": "CACC",
"currency": "EUR",
"iban": "DE2310010010123456789",
"name": "Main Account",
"product": "Girokonto",
"resourceId": "3dc3d5b3-7023-4848-9853-f5400a64e80f"
},
{
"_links": {
"balances": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e81g/balances"
}
},
"cashAccountType": "CACC",
"currency": "USD",
"iban": "DE2310010010123456788",
"name": "US Dollar Account",
"product": "FremdwC$hrungskonto",
"resourceId": "3dc3d5b3-7023-4848-9853-f5400a64e81g"
}
]
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"accounts": [
{
"_links": {
"balances": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f/balances"
},
"transactions": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f/transactions"
}
},
"cashAccountType": "CACC",
"currency": "EUR",
"iban": "DE2310010010123456788",
"name": "Main Account",
"product": "Girokonto",
"resourceId": "3dc3d5b3-7023-4848-9853-f5400a64e80f"
},
{
"_links": {
"balances": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e81g/balances"
},
"transactions": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e81g/transactions"
}
},
"cashAccountType": "CACC",
"currency": "USD",
"iban": "DE2310010010123456788",
"name": "US Dollar Account",
"product": "FremdwC$hrungskonto",
"resourceId": "3dc3d5b3-7023-4848-9853-f5400a64e81g"
}
]
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read balance
{{baseUrl}}/v1/accounts/:account-id/balances
HEADERS
X-Request-ID
Consent-ID
QUERY PARAMS
account-id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/accounts/:account-id/balances");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
headers = curl_slist_append(headers, "consent-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/accounts/:account-id/balances" {:headers {:x-request-id ""
:consent-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/accounts/:account-id/balances"
headers = HTTP::Headers{
"x-request-id" => ""
"consent-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/accounts/:account-id/balances"),
Headers =
{
{ "x-request-id", "" },
{ "consent-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/accounts/:account-id/balances");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
request.AddHeader("consent-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/accounts/:account-id/balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
req.Header.Add("consent-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/accounts/:account-id/balances HTTP/1.1
X-Request-Id:
Consent-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/accounts/:account-id/balances")
.setHeader("x-request-id", "")
.setHeader("consent-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/accounts/:account-id/balances"))
.header("x-request-id", "")
.header("consent-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/accounts/:account-id/balances")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/accounts/:account-id/balances")
.header("x-request-id", "")
.header("consent-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/accounts/:account-id/balances');
xhr.setRequestHeader('x-request-id', '');
xhr.setRequestHeader('consent-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id/balances',
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/accounts/:account-id/balances';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/accounts/:account-id/balances',
method: 'GET',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/accounts/:account-id/balances")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/accounts/:account-id/balances',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id/balances',
headers: {'x-request-id': '', 'consent-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/accounts/:account-id/balances');
req.headers({
'x-request-id': '',
'consent-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id/balances',
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/accounts/:account-id/balances';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"",
@"consent-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/accounts/:account-id/balances"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/accounts/:account-id/balances" in
let headers = Header.add_list (Header.init ()) [
("x-request-id", "");
("consent-id", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/accounts/:account-id/balances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"consent-id: ",
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/accounts/:account-id/balances', [
'headers' => [
'consent-id' => '',
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/accounts/:account-id/balances');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/accounts/:account-id/balances');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/accounts/:account-id/balances' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/accounts/:account-id/balances' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-request-id': "",
'consent-id': ""
}
conn.request("GET", "/baseUrl/v1/accounts/:account-id/balances", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/accounts/:account-id/balances"
headers = {
"x-request-id": "",
"consent-id": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/accounts/:account-id/balances"
response <- VERB("GET", url, add_headers('x-request-id' = '', 'consent-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/accounts/:account-id/balances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
request["consent-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/accounts/:account-id/balances') do |req|
req.headers['x-request-id'] = ''
req.headers['consent-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/accounts/:account-id/balances";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
headers.insert("consent-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/accounts/:account-id/balances \
--header 'consent-id: ' \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/accounts/:account-id/balances \
consent-id:'' \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--header 'consent-id: ' \
--output-document \
- {{baseUrl}}/v1/accounts/:account-id/balances
import Foundation
let headers = [
"x-request-id": "",
"consent-id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/accounts/:account-id/balances")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"account": {
"iban": "FR7612345987650123456789014"
},
"balances": [
{
"balanceAmount": {
"amount": "500.00",
"currency": "EUR"
},
"balanceType": "closingBooked",
"referenceDate": "2017-10-25"
},
{
"balanceAmount": {
"amount": "900.00",
"currency": "EUR"
},
"balanceType": "expected",
"lastChangeDateTime": "2017-10-25T15:30:35.035Z"
}
]
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"balances": [
{
"balanceAmount": {
"amount": "1000.00",
"currency": "EUR"
},
"balanceType": "interimBooked"
},
{
"balanceAmount": {
"amount": "300.00",
"currency": "EUR"
},
"balanceType": "interimAvailable"
},
{
"balanceAmount": {
"amount": "5300.00",
"currency": "EUR"
},
"balanceType": "interimAvailable",
"creditLimitIncluded": true
}
]
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read the SCA status of the consent authorisation
{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId
HEADERS
X-Request-ID
QUERY PARAMS
consentId
authorisationId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/consents/:consentId/authorisations/:authorisationId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/consents/:consentId/authorisations/:authorisationId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/consents/:consentId/authorisations/:authorisationId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/consents/:consentId/authorisations/:authorisationId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"scaStatus": "psuAuthenticated",
"trustedBeneficiaryFlag": false
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read transaction details
{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId
HEADERS
X-Request-ID
Consent-ID
QUERY PARAMS
account-id
transactionId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
headers = curl_slist_append(headers, "consent-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId" {:headers {:x-request-id ""
:consent-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId"
headers = HTTP::Headers{
"x-request-id" => ""
"consent-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId"),
Headers =
{
{ "x-request-id", "" },
{ "consent-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
request.AddHeader("consent-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
req.Header.Add("consent-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/accounts/:account-id/transactions/:transactionId HTTP/1.1
X-Request-Id:
Consent-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId")
.setHeader("x-request-id", "")
.setHeader("consent-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId"))
.header("x-request-id", "")
.header("consent-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId")
.header("x-request-id", "")
.header("consent-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId');
xhr.setRequestHeader('x-request-id', '');
xhr.setRequestHeader('consent-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId',
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId',
method: 'GET',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/accounts/:account-id/transactions/:transactionId',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId',
headers: {'x-request-id': '', 'consent-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId');
req.headers({
'x-request-id': '',
'consent-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId',
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"",
@"consent-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId" in
let headers = Header.add_list (Header.init ()) [
("x-request-id", "");
("consent-id", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"consent-id: ",
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId', [
'headers' => [
'consent-id' => '',
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-request-id': "",
'consent-id': ""
}
conn.request("GET", "/baseUrl/v1/accounts/:account-id/transactions/:transactionId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId"
headers = {
"x-request-id": "",
"consent-id": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId"
response <- VERB("GET", url, add_headers('x-request-id' = '', 'consent-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
request["consent-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/accounts/:account-id/transactions/:transactionId') do |req|
req.headers['x-request-id'] = ''
req.headers['consent-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
headers.insert("consent-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId \
--header 'consent-id: ' \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId \
consent-id:'' \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--header 'consent-id: ' \
--output-document \
- {{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId
import Foundation
let headers = [
"x-request-id": "",
"consent-id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/accounts/:account-id/transactions/:transactionId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"transactionsDetails": {
"bankTransactionCode": "PMNT-RDDT-ESDD",
"bookingDate": "2017-10-25",
"creditorAccount": {
"iban": "DE67100100101306118605"
},
"creditorName": "John Miles",
"mandateId": "Mandate-2018-04-20-1234",
"remittanceInformationUnstructured": "Example 1",
"transactionAmount": {
"amount": "-256.67",
"currency": "EUR"
},
"transactionId": "1234567",
"valueDate": "2017-10-26"
}
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read transaction list of an account
{{baseUrl}}/v1/accounts/:account-id/transactions
HEADERS
X-Request-ID
Consent-ID
QUERY PARAMS
bookingStatus
account-id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
headers = curl_slist_append(headers, "consent-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/accounts/:account-id/transactions" {:headers {:x-request-id ""
:consent-id ""}
:query-params {:bookingStatus ""}})
require "http/client"
url = "{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus="
headers = HTTP::Headers{
"x-request-id" => ""
"consent-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus="),
Headers =
{
{ "x-request-id", "" },
{ "consent-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
request.AddHeader("consent-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
req.Header.Add("consent-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/accounts/:account-id/transactions?bookingStatus= HTTP/1.1
X-Request-Id:
Consent-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=")
.setHeader("x-request-id", "")
.setHeader("consent-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus="))
.header("x-request-id", "")
.header("consent-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=")
.header("x-request-id", "")
.header("consent-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=');
xhr.setRequestHeader('x-request-id', '');
xhr.setRequestHeader('consent-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id/transactions',
params: {bookingStatus: ''},
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=',
method: 'GET',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=")
.get()
.addHeader("x-request-id", "")
.addHeader("consent-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/accounts/:account-id/transactions?bookingStatus=',
headers: {
'x-request-id': '',
'consent-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id/transactions',
qs: {bookingStatus: ''},
headers: {'x-request-id': '', 'consent-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/accounts/:account-id/transactions');
req.query({
bookingStatus: ''
});
req.headers({
'x-request-id': '',
'consent-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/accounts/:account-id/transactions',
params: {bookingStatus: ''},
headers: {'x-request-id': '', 'consent-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=';
const options = {method: 'GET', headers: {'x-request-id': '', 'consent-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"",
@"consent-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus="]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=" in
let headers = Header.add_list (Header.init ()) [
("x-request-id", "");
("consent-id", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"consent-id: ",
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=', [
'headers' => [
'consent-id' => '',
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/accounts/:account-id/transactions');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData([
'bookingStatus' => ''
]);
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/accounts/:account-id/transactions');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
'bookingStatus' => ''
]));
$request->setHeaders([
'x-request-id' => '',
'consent-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("consent-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-request-id': "",
'consent-id': ""
}
conn.request("GET", "/baseUrl/v1/accounts/:account-id/transactions?bookingStatus=", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/accounts/:account-id/transactions"
querystring = {"bookingStatus":""}
headers = {
"x-request-id": "",
"consent-id": ""
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/accounts/:account-id/transactions"
queryString <- list(bookingStatus = "")
response <- VERB("GET", url, query = queryString, add_headers('x-request-id' = '', 'consent-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
request["consent-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/accounts/:account-id/transactions') do |req|
req.headers['x-request-id'] = ''
req.headers['consent-id'] = ''
req.params['bookingStatus'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/accounts/:account-id/transactions";
let querystring = [
("bookingStatus", ""),
];
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
headers.insert("consent-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.query(&querystring)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=' \
--header 'consent-id: ' \
--header 'x-request-id: '
http GET '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=' \
consent-id:'' \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--header 'consent-id: ' \
--output-document \
- '{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus='
import Foundation
let headers = [
"x-request-id": "",
"consent-id": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/accounts/:account-id/transactions?bookingStatus=")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"account": {
"iban": "DE2310010010123456788"
},
"transactions": {
"_links": {
"account": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f"
}
},
"booked": [
{
"bookingDate": "2017-10-25",
"creditorAccount": {
"iban": "DE67100100101306118605"
},
"creditorName": "John Miles",
"remittanceInformationUnstructured": "Example 1",
"transactionAmount": {
"amount": "256.67",
"currency": "EUR"
},
"transactionId": "1234567",
"valueDate": "2017-10-26"
},
{
"bookingDate": "2017-10-25",
"debtorAccount": {
"iban": "NL76RABO0359400371"
},
"debtorName": "Paul Simpson",
"remittanceInformationUnstructured": "Example 2",
"transactionAmount": {
"amount": "343.01",
"currency": "EUR"
},
"transactionId": "1234568",
"valueDate": "2017-10-26"
}
],
"pending": [
{
"creditorAccount": {
"iban": "FR7612345987650123456789014"
},
"creditorName": "Claude Renault",
"remittanceInformationUnstructured": "Example 3",
"transactionAmount": {
"amount": "-100.03",
"currency": "EUR"
},
"transactionId": "1234569",
"valueDate": "2017-10-26"
}
]
}
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"download": {
"href": "www.test-api.com/xs2a/v1/accounts/12345678999/transactions/download/"
}
}
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"account": {
"iban": "DE40100100103307118608"
},
"transactions": {
"_links": {
"account": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f"
}
},
"booked": [
{
"bookingDate": "2017-10-25",
"creditorAccount": {
"iban": "DE67100100101306118605"
},
"creditorName": "John Miles",
"remittanceInformationUnstructured": "Example 1",
"transactionAmount": {
"amount": "-256.67",
"currency": "EUR"
},
"transactionId": "1234567",
"valueDate": "2017-10-26"
},
{
"bookingDate": "2017-10-25",
"debtorAccount": {
"iban": "NL76RABO0359400371"
},
"debtorName": "Paul Simpson",
"remittanceInformationUnstructured": "Example 2",
"transactionAmount": {
"amount": "343.01",
"currency": "EUR"
},
"transactionId": "1234568",
"valueDate": "2017-10-26"
},
{
"bookingDate": "2017-10-25",
"debtorAccount": {
"iban": "SE9412309876543211234567"
},
"debtorName": "Pepe Martin",
"remittanceInformationUnstructured": "Example 3",
"transactionAmount": {
"amount": "100",
"currency": "USD"
},
"transactionId": "1234569",
"valueDate": "2017-10-26"
}
],
"pending": [
{
"creditorAccount": {
"iban": "FR7612345987650123456789014"
},
"creditorName": "Claude Renault",
"remittanceInformationUnstructured": "Example 4",
"transactionAmount": {
"amount": "-100.03",
"currency": "EUR"
},
"transactionId": "1234570",
"valueDate": "2017-10-26"
}
]
}
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"account": {
"iban": "CH2808397020020195606"
},
"transactions": {
"_links": {
"account": {
"href": "/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80f"
}
},
"booked": [
{
"debtorAccount": {
"bban": "01-43884-8"
},
"debtorName": "Ricardo Schweiz",
"instructedAmount": {
"amount": "123.50",
"currency": "CHF"
},
"remittanceInformationStructured": "15 00011 23456 78901 23456 78901",
"transactionId": "1234573"
},
{
"bookingDate": "2019-05-29",
"debtorAccount": {
"iban": "CH9109000000400018554"
},
"debtorName": "GlC
RESPONSE HEADERS
Content-Type
application/xml
RESPONSE BODY xml
MSGID-C053.01.00.10-110725163809-01
2017-07-25T19:30:47
1
true
STMID-C053.01.00.10-110725163809-01
147
2017-07-25T19:30:47
CH9581320000001998736
OPBD
2501.50
CRDT
2017-07-24
CLBD
2397.2
CRDT
2017-07-25
010001628
145.70
CRDT
BOOK
2017-07-25
2017-07-25
P001.01.00.01-110718163809
PMNT
RCDT
VCOM
2
P001.01.00.01-110718163809-01
100
CRDT
PMNT
RCDT
VCOM
ISR Reference
123456789012345678901234567
P001.01.00.01-110718163809-02
45.70
CRDT
PMNT
RCDT
VCOM
ISR Reference
123456000012345678901234567
250.00
DBIT
BOOK
2017-07-25
2017-07-25
P001.01.00.02-110718163809
PMNT
ICDT
AUTT
P001.01.00.02-110718163809-01
250.00
DBIT
PMNT
ICDT
AUTT
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
POST
Start the authorisation process for a consent
{{baseUrl}}/v1/consents/:consentId/authorisations
HEADERS
X-Request-ID
QUERY PARAMS
consentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/consents/:consentId/authorisations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/consents/:consentId/authorisations" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/consents/:consentId/authorisations"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/consents/:consentId/authorisations"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/consents/:consentId/authorisations");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/consents/:consentId/authorisations"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/consents/:consentId/authorisations HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/consents/:consentId/authorisations")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/consents/:consentId/authorisations"))
.header("x-request-id", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/authorisations")
.post(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/consents/:consentId/authorisations")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/consents/:consentId/authorisations');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/consents/:consentId/authorisations';
const options = {method: 'POST', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/consents/:consentId/authorisations',
method: 'POST',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/authorisations")
.post(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/consents/:consentId/authorisations',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/consents/:consentId/authorisations');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/consents/:consentId/authorisations';
const options = {method: 'POST', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/consents/:consentId/authorisations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/consents/:consentId/authorisations" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/consents/:consentId/authorisations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/consents/:consentId/authorisations', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/consents/:consentId/authorisations');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/consents/:consentId/authorisations');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/consents/:consentId/authorisations' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/consents/:consentId/authorisations' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = ""
headers = { 'x-request-id': "" }
conn.request("POST", "/baseUrl/v1/consents/:consentId/authorisations", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/consents/:consentId/authorisations"
payload = ""
headers = {"x-request-id": ""}
response = requests.post(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/consents/:consentId/authorisations"
payload <- ""
response <- VERB("POST", url, body = payload, add_headers('x-request-id' = ''), content_type(""))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/consents/:consentId/authorisations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/v1/consents/:consentId/authorisations') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/consents/:consentId/authorisations";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/consents/:consentId/authorisations \
--header 'x-request-id: '
http POST {{baseUrl}}/v1/consents/:consentId/authorisations \
x-request-id:''
wget --quiet \
--method POST \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/consents/:consentId/authorisations
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/consents/:consentId/authorisations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaStatus": {
"href": "/v1/payments/qwer3456tzui7890/authorisations/123auth456"
}
},
"authorisationId": "123auth456",
"psuMessage": "Please use your BankApp for transaction Authorisation.",
"scaStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
PUT
Update PSU Data for consents
{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId
HEADERS
X-Request-ID
QUERY PARAMS
consentId
authorisationId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/v1/consents/:consentId/authorisations/:authorisationId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"))
.header("x-request-id", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
.put(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId';
const options = {method: 'PUT', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId',
method: 'PUT',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
.put(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/consents/:consentId/authorisations/:authorisationId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId';
const options = {method: 'PUT', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = ""
headers = { 'x-request-id': "" }
conn.request("PUT", "/baseUrl/v1/consents/:consentId/authorisations/:authorisationId", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"
payload = ""
headers = {"x-request-id": ""}
response = requests.put(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId"
payload <- ""
response <- VERB("PUT", url, body = payload, add_headers('x-request-id' = ''), content_type(""))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/v1/consents/:consentId/authorisations/:authorisationId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId \
--header 'x-request-id: '
http PUT {{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId \
x-request-id:''
wget --quiet \
--method PUT \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/consents/:consentId/authorisations/:authorisationId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"status": {
"href": "/v1/payments/sepa-credit-transfers/qwer3456tzui7890/status"
}
},
"scaStatus": "finalised"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"authoriseTransaction": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
}
},
"challengeData": {
"otpFormat": "integer",
"otpMaxLength": "6"
},
"chosenScaMethod": {
"authenticationMethodId": "myAuthenticationID",
"authenticationType": "SMS_OTP"
},
"scaStatus": "scaMethodSelected"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"scaStatus": "finalised"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"authoriseTransaction": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
}
},
"scaStatus": "psuAuthenticated"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaStatus": {
"href": "/v1/payments/qwer3456tzui7890/authorisations/123auth456"
}
},
"psuMessage": "Please use your BankApp for transaction Authorisation.",
"scatransactionStatus": "psuIdentified"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "ACCESS_EXCEEDED",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
POST
Confirmation of funds request
{{baseUrl}}/v1/funds-confirmations
HEADERS
X-Request-ID
BODY json
{
"account": {
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
},
"cardNumber": "",
"instructedAmount": {
"amount": "",
"currency": ""
},
"payee": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/funds-confirmations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/funds-confirmations" {:headers {:x-request-id ""}
:content-type :json
:form-params {:account {:cashAccountType ""
:currency ""
:iban ""
:otherAccountIdentification ""}
:cardNumber ""
:instructedAmount {:amount ""
:currency ""}
:payee ""}})
require "http/client"
url = "{{baseUrl}}/v1/funds-confirmations"
headers = HTTP::Headers{
"x-request-id" => ""
"content-type" => "application/json"
}
reqBody = "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/funds-confirmations"),
Headers =
{
{ "x-request-id", "" },
},
Content = new StringContent("{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/funds-confirmations");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-request-id", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/funds-confirmations"
payload := strings.NewReader("{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-request-id", "")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/funds-confirmations HTTP/1.1
X-Request-Id:
Content-Type: application/json
Host: example.com
Content-Length: 223
{
"account": {
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
},
"cardNumber": "",
"instructedAmount": {
"amount": "",
"currency": ""
},
"payee": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/funds-confirmations")
.setHeader("x-request-id", "")
.setHeader("content-type", "application/json")
.setBody("{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/funds-confirmations"))
.header("x-request-id", "")
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/funds-confirmations")
.post(body)
.addHeader("x-request-id", "")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/funds-confirmations")
.header("x-request-id", "")
.header("content-type", "application/json")
.body("{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}")
.asString();
const data = JSON.stringify({
account: {
cashAccountType: '',
currency: '',
iban: '',
otherAccountIdentification: ''
},
cardNumber: '',
instructedAmount: {
amount: '',
currency: ''
},
payee: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/funds-confirmations');
xhr.setRequestHeader('x-request-id', '');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/funds-confirmations',
headers: {'x-request-id': '', 'content-type': 'application/json'},
data: {
account: {cashAccountType: '', currency: '', iban: '', otherAccountIdentification: ''},
cardNumber: '',
instructedAmount: {amount: '', currency: ''},
payee: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/funds-confirmations';
const options = {
method: 'POST',
headers: {'x-request-id': '', 'content-type': 'application/json'},
body: '{"account":{"cashAccountType":"","currency":"","iban":"","otherAccountIdentification":""},"cardNumber":"","instructedAmount":{"amount":"","currency":""},"payee":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/funds-confirmations',
method: 'POST',
headers: {
'x-request-id': '',
'content-type': 'application/json'
},
processData: false,
data: '{\n "account": {\n "cashAccountType": "",\n "currency": "",\n "iban": "",\n "otherAccountIdentification": ""\n },\n "cardNumber": "",\n "instructedAmount": {\n "amount": "",\n "currency": ""\n },\n "payee": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/funds-confirmations")
.post(body)
.addHeader("x-request-id", "")
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/funds-confirmations',
headers: {
'x-request-id': '',
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
account: {cashAccountType: '', currency: '', iban: '', otherAccountIdentification: ''},
cardNumber: '',
instructedAmount: {amount: '', currency: ''},
payee: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/funds-confirmations',
headers: {'x-request-id': '', 'content-type': 'application/json'},
body: {
account: {cashAccountType: '', currency: '', iban: '', otherAccountIdentification: ''},
cardNumber: '',
instructedAmount: {amount: '', currency: ''},
payee: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/funds-confirmations');
req.headers({
'x-request-id': '',
'content-type': 'application/json'
});
req.type('json');
req.send({
account: {
cashAccountType: '',
currency: '',
iban: '',
otherAccountIdentification: ''
},
cardNumber: '',
instructedAmount: {
amount: '',
currency: ''
},
payee: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/funds-confirmations',
headers: {'x-request-id': '', 'content-type': 'application/json'},
data: {
account: {cashAccountType: '', currency: '', iban: '', otherAccountIdentification: ''},
cardNumber: '',
instructedAmount: {amount: '', currency: ''},
payee: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/funds-confirmations';
const options = {
method: 'POST',
headers: {'x-request-id': '', 'content-type': 'application/json'},
body: '{"account":{"cashAccountType":"","currency":"","iban":"","otherAccountIdentification":""},"cardNumber":"","instructedAmount":{"amount":"","currency":""},"payee":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"",
@"content-type": @"application/json" };
NSDictionary *parameters = @{ @"account": @{ @"cashAccountType": @"", @"currency": @"", @"iban": @"", @"otherAccountIdentification": @"" },
@"cardNumber": @"",
@"instructedAmount": @{ @"amount": @"", @"currency": @"" },
@"payee": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/funds-confirmations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/funds-confirmations" in
let headers = Header.add_list (Header.init ()) [
("x-request-id", "");
("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/funds-confirmations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'account' => [
'cashAccountType' => '',
'currency' => '',
'iban' => '',
'otherAccountIdentification' => ''
],
'cardNumber' => '',
'instructedAmount' => [
'amount' => '',
'currency' => ''
],
'payee' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json",
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/funds-confirmations', [
'body' => '{
"account": {
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
},
"cardNumber": "",
"instructedAmount": {
"amount": "",
"currency": ""
},
"payee": ""
}',
'headers' => [
'content-type' => 'application/json',
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/funds-confirmations');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-request-id' => '',
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'account' => [
'cashAccountType' => '',
'currency' => '',
'iban' => '',
'otherAccountIdentification' => ''
],
'cardNumber' => '',
'instructedAmount' => [
'amount' => '',
'currency' => ''
],
'payee' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'account' => [
'cashAccountType' => '',
'currency' => '',
'iban' => '',
'otherAccountIdentification' => ''
],
'cardNumber' => '',
'instructedAmount' => [
'amount' => '',
'currency' => ''
],
'payee' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/funds-confirmations');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'x-request-id' => '',
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/funds-confirmations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"account": {
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
},
"cardNumber": "",
"instructedAmount": {
"amount": "",
"currency": ""
},
"payee": ""
}'
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/funds-confirmations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"account": {
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
},
"cardNumber": "",
"instructedAmount": {
"amount": "",
"currency": ""
},
"payee": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}"
headers = {
'x-request-id': "",
'content-type': "application/json"
}
conn.request("POST", "/baseUrl/v1/funds-confirmations", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/funds-confirmations"
payload = {
"account": {
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
},
"cardNumber": "",
"instructedAmount": {
"amount": "",
"currency": ""
},
"payee": ""
}
headers = {
"x-request-id": "",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/funds-confirmations"
payload <- "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, add_headers('x-request-id' = ''), content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/funds-confirmations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = ''
request["content-type"] = 'application/json'
request.body = "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/funds-confirmations') do |req|
req.headers['x-request-id'] = ''
req.body = "{\n \"account\": {\n \"cashAccountType\": \"\",\n \"currency\": \"\",\n \"iban\": \"\",\n \"otherAccountIdentification\": \"\"\n },\n \"cardNumber\": \"\",\n \"instructedAmount\": {\n \"amount\": \"\",\n \"currency\": \"\"\n },\n \"payee\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/funds-confirmations";
let payload = json!({
"account": json!({
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
}),
"cardNumber": "",
"instructedAmount": json!({
"amount": "",
"currency": ""
}),
"payee": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/funds-confirmations \
--header 'content-type: application/json' \
--header 'x-request-id: ' \
--data '{
"account": {
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
},
"cardNumber": "",
"instructedAmount": {
"amount": "",
"currency": ""
},
"payee": ""
}'
echo '{
"account": {
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
},
"cardNumber": "",
"instructedAmount": {
"amount": "",
"currency": ""
},
"payee": ""
}' | \
http POST {{baseUrl}}/v1/funds-confirmations \
content-type:application/json \
x-request-id:''
wget --quiet \
--method POST \
--header 'x-request-id: ' \
--header 'content-type: application/json' \
--body-data '{\n "account": {\n "cashAccountType": "",\n "currency": "",\n "iban": "",\n "otherAccountIdentification": ""\n },\n "cardNumber": "",\n "instructedAmount": {\n "amount": "",\n "currency": ""\n },\n "payee": ""\n}' \
--output-document \
- {{baseUrl}}/v1/funds-confirmations
import Foundation
let headers = [
"x-request-id": "",
"content-type": "application/json"
]
let parameters = [
"account": [
"cashAccountType": "",
"currency": "",
"iban": "",
"otherAccountIdentification": ""
],
"cardNumber": "",
"instructedAmount": [
"amount": "",
"currency": ""
],
"payee": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/funds-confirmations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"fundsAvailable": "true"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Get payment information
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:payment-service/:payment-product/:paymentId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/:payment-service/:payment-product/:paymentId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:payment-service/:payment-product/:paymentId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/xml
RESPONSE BODY xml
MIPI-123456789RI-123456789
2017-02-14T20:23:34.000Z
1
123
PaymentInitiator
DE10000000012
PISP
BIPI-123456789RI-123456789
TRF
1
123
SEPA
2017-02-15
PSU Name
DE87200500001234567890
SLEV
RI-123456789
123
Merchant123
DE23100120020123456789
Ref Number Merchant-123456
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Get payment initiation authorisation sub-resources request
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"authorisationIds": [
"123auth456"
]
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
DELETE
Payment cancellation request
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/v1/:payment-service/:payment-product/:paymentId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"))
.header("x-request-id", "")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
.delete(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId';
const options = {method: 'DELETE', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId',
method: 'DELETE',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
.delete(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId';
const options = {method: 'DELETE', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("DELETE", "/baseUrl/v1/:payment-service/:payment-product/:paymentId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"
headers = {"x-request-id": ""}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId"
response <- VERB("DELETE", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/v1/:payment-service/:payment-product/:paymentId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId \
--header 'x-request-id: '
http DELETE {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId \
x-request-id:''
wget --quiet \
--method DELETE \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"self": {
"href": "/v1/payments/123456scheduled789"
},
"startAuthorisation": {
"href": "/v1/payments/123456scheduled789/cancellation-authorisations"
},
"status": {
"href": "/v1/payments/123456scheduled789/status"
}
},
"transactionStatus": "ACTC"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
POST
Payment initiation request
{{baseUrl}}/v1/:payment-service/:payment-product
HEADERS
X-Request-ID
PSU-IP-Address
QUERY PARAMS
payment-service
payment-product
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
headers = curl_slist_append(headers, "psu-ip-address: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:payment-service/:payment-product" {:headers {:x-request-id ""
:psu-ip-address ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product"
headers = HTTP::Headers{
"x-request-id" => ""
"psu-ip-address" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product"),
Headers =
{
{ "x-request-id", "" },
{ "psu-ip-address", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-request-id", "");
request.AddHeader("psu-ip-address", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-request-id", "")
req.Header.Add("psu-ip-address", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:payment-service/:payment-product HTTP/1.1
X-Request-Id:
Psu-Ip-Address:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:payment-service/:payment-product")
.setHeader("x-request-id", "")
.setHeader("psu-ip-address", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product"))
.header("x-request-id", "")
.header("psu-ip-address", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product")
.post(null)
.addHeader("x-request-id", "")
.addHeader("psu-ip-address", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:payment-service/:payment-product")
.header("x-request-id", "")
.header("psu-ip-address", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:payment-service/:payment-product');
xhr.setRequestHeader('x-request-id', '');
xhr.setRequestHeader('psu-ip-address', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:payment-service/:payment-product',
headers: {'x-request-id': '', 'psu-ip-address': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product';
const options = {method: 'POST', headers: {'x-request-id': '', 'psu-ip-address': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product',
method: 'POST',
headers: {
'x-request-id': '',
'psu-ip-address': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product")
.post(null)
.addHeader("x-request-id", "")
.addHeader("psu-ip-address", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product',
headers: {
'x-request-id': '',
'psu-ip-address': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:payment-service/:payment-product',
headers: {'x-request-id': '', 'psu-ip-address': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:payment-service/:payment-product');
req.headers({
'x-request-id': '',
'psu-ip-address': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:payment-service/:payment-product',
headers: {'x-request-id': '', 'psu-ip-address': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product';
const options = {method: 'POST', headers: {'x-request-id': '', 'psu-ip-address': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"",
@"psu-ip-address": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product" in
let headers = Header.add_list (Header.init ()) [
("x-request-id", "");
("psu-ip-address", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"psu-ip-address: ",
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:payment-service/:payment-product', [
'headers' => [
'psu-ip-address' => '',
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-request-id' => '',
'psu-ip-address' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-request-id' => '',
'psu-ip-address' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("psu-ip-address", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("psu-ip-address", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = ""
headers = {
'x-request-id': "",
'psu-ip-address': ""
}
conn.request("POST", "/baseUrl/v1/:payment-service/:payment-product", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product"
payload = ""
headers = {
"x-request-id": "",
"psu-ip-address": ""
}
response = requests.post(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product"
payload <- ""
response <- VERB("POST", url, body = payload, add_headers('x-request-id' = '', 'psu-ip-address' = ''), content_type(""))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = ''
request["psu-ip-address"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/v1/:payment-service/:payment-product') do |req|
req.headers['x-request-id'] = ''
req.headers['psu-ip-address'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
headers.insert("psu-ip-address", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:payment-service/:payment-product \
--header 'psu-ip-address: ' \
--header 'x-request-id: '
http POST {{baseUrl}}/v1/:payment-service/:payment-product \
psu-ip-address:'' \
x-request-id:''
wget --quiet \
--method POST \
--header 'x-request-id: ' \
--header 'psu-ip-address: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product
import Foundation
let headers = [
"x-request-id": "",
"psu-ip-address": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"self": {
"href": "/v1/payments/1234-wertiq-983"
},
"startAuthorisation": {
"href": "/v1/payments1234-wertiq-983/authorisations"
},
"status": {
"href": "/v1/payments/1234-wertiq-983/status"
}
},
"paymentId": "1234-wertiq-983",
"transactionStatus": "RCVD"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaRedirect": {
"href": "https://www.testbank.com/asdfasdfasdf"
},
"scaStatus": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
},
"self": {
"href": "/v1/payments/swiss-sepa-credit-transfers/1234-wertiq-983"
},
"status": {
"href": "/v1/payments/1234-wertiq-983/status"
}
},
"paymentId": "1234-wertiq-983",
"transactionStatus": "RCVD"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaOAuth": {
"href": "https://www.testbank.com/oauth/.well-known/oauth-authorization-server"
},
"scaStatus": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
},
"self": {
"href": "/v1/payments/1234-wertiq-983"
},
"status": {
"href": "/v1/payments/1234-wertiq-983/status"
}
},
"paymentId": "1234-wertiq-983",
"transactionStatus": "RCVD"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"self": {
"href": "/v1/payments/1234-wertiq-983"
},
"startAuthorisationWithPsuIdentification": {
"href": "/v1/payments/1234-wertiq-983/authorisations"
}
},
"paymentId": "1234-wertiq-983",
"transactionStatus": "RCVD"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"self": {
"href": "/v1/payments/1234-wertiq-983"
},
"startAuthenticationWithPsuAuthentication": {
"href": "/v1/payments/1234-wertiq-983/authorisations"
}
},
"paymentId": "1234-wertiq-983",
"transactionStatus": "RCVD"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Payment initiation status request
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:payment-service/:payment-product/:paymentId/status HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId/status',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/:payment-service/:payment-product/:paymentId/status", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:payment-service/:payment-product/:paymentId/status') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/status")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"transactionStatus": "ACCP",
"scaStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"transactionStatus": "ACCP"
}
RESPONSE HEADERS
Content-Type
application/xml
RESPONSE BODY xml
4572457256725689726906
2017-02-14T20:24:56.021Z
ABCDDEFF
DCBADEFF
MIPI-123456789RI-123456789
pain.001.001.03
2017-02-14T20:23:34.000Z
1
123
ACCT
BIPI-123456789RI-123456789
1
123
ACCT
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read the SCA status of the payment authorisation
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
authorisationId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"scaStatus": "psuAuthenticated",
"trustedBeneficiaryFlag": false
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read the SCA status of the payment cancellation's authorisation
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
authorisationId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"scaStatus": "psuAuthenticated",
"trustedBeneficiaryFlag": false
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
POST
Start the authorisation process for a payment initiation
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"))
.header("x-request-id", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
.post(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations';
const options = {method: 'POST', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations',
method: 'POST',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
.post(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations';
const options = {method: 'POST', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = ""
headers = { 'x-request-id': "" }
conn.request("POST", "/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"
payload = ""
headers = {"x-request-id": ""}
response = requests.post(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations"
payload <- ""
response <- VERB("POST", url, body = payload, add_headers('x-request-id' = ''), content_type(""))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations \
--header 'x-request-id: '
http POST {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations \
x-request-id:''
wget --quiet \
--method POST \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaStatus": {
"href": "/v1/payments/qwer3456tzui7890/authorisations/123auth456"
}
},
"authorisationId": "123auth456",
"psuMessage": "Please use your BankApp for transaction Authorisation.",
"scaStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
POST
Start the authorisation process for the cancellation of the addressed payment
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"))
.header("x-request-id", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
.post(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations';
const options = {method: 'POST', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
method: 'POST',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
.post(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations';
const options = {method: 'POST', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = ""
headers = { 'x-request-id': "" }
conn.request("POST", "/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"
payload = ""
headers = {"x-request-id": ""}
response = requests.post(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"
payload <- ""
response <- VERB("POST", url, body = payload, add_headers('x-request-id' = ''), content_type(""))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations \
--header 'x-request-id: '
http POST {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations \
x-request-id:''
wget --quiet \
--method POST \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaStatus": {
"href": "/v1/payments/qwer3456tzui7890/authorisations/123auth456"
}
},
"authorisationId": "123auth456",
"psuMessage": "Please use your BankApp for transaction Authorisation.",
"scaStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
PUT
Update PSU data for payment initiation cancellation
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
authorisationId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"))
.header("x-request-id", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
.put(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId';
const options = {method: 'PUT', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
method: 'PUT',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
.put(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId';
const options = {method: 'PUT', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = ""
headers = { 'x-request-id': "" }
conn.request("PUT", "/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"
payload = ""
headers = {"x-request-id": ""}
response = requests.put(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId"
payload <- ""
response <- VERB("PUT", url, body = payload, add_headers('x-request-id' = ''), content_type(""))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId \
--header 'x-request-id: '
http PUT {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId \
x-request-id:''
wget --quiet \
--method PUT \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations/:authorisationId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"status": {
"href": "/v1/payments/sepa-credit-transfers/qwer3456tzui7890/status"
}
},
"scaStatus": "finalised"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"authoriseTransaction": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
}
},
"challengeData": {
"otpFormat": "integer",
"otpMaxLength": "6"
},
"chosenScaMethod": {
"authenticationMethodId": "myAuthenticationID",
"authenticationType": "SMS_OTP"
},
"scaStatus": "scaMethodSelected"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"scaStatus": "finalised"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"authoriseTransaction": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
}
},
"scaStatus": "psuAuthenticated"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaStatus": {
"href": "/v1/payments/qwer3456tzui7890/authorisations/123auth456"
}
},
"psuMessage": "Please use your BankApp for transaction Authorisation.",
"scatransactionStatus": "psuIdentified"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
PUT
Update PSU data for payment initiation
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
authorisationId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"))
.header("x-request-id", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
.put(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId';
const options = {method: 'PUT', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
method: 'PUT',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
.put(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId';
const options = {method: 'PUT', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = ""
headers = { 'x-request-id': "" }
conn.request("PUT", "/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"
payload = ""
headers = {"x-request-id": ""}
response = requests.put(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId"
payload <- ""
response <- VERB("PUT", url, body = payload, add_headers('x-request-id' = ''), content_type(""))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId \
--header 'x-request-id: '
http PUT {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId \
x-request-id:''
wget --quiet \
--method PUT \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/authorisations/:authorisationId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"status": {
"href": "/v1/payments/sepa-credit-transfers/qwer3456tzui7890/status"
}
},
"scaStatus": "finalised"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"authoriseTransaction": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
}
},
"challengeData": {
"otpFormat": "integer",
"otpMaxLength": "6"
},
"chosenScaMethod": {
"authenticationMethodId": "myAuthenticationID",
"authenticationType": "SMS_OTP"
},
"scaStatus": "scaMethodSelected"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"scaStatus": "finalised"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"authoriseTransaction": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
}
},
"scaStatus": "psuAuthenticated"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaStatus": {
"href": "/v1/payments/qwer3456tzui7890/authorisations/123auth456"
}
},
"psuMessage": "Please use your BankApp for transaction Authorisation.",
"scatransactionStatus": "psuIdentified"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Will deliver an array of resource identifications to all generated cancellation authorisation sub-resources
{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations
HEADERS
X-Request-ID
QUERY PARAMS
payment-service
payment-product
paymentId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:payment-service/:payment-product/:paymentId/cancellation-authorisations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"authorisationIds": [
"123auth456"
]
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
POST
Create a signing basket resource
{{baseUrl}}/v1/signing-baskets
HEADERS
X-Request-ID
PSU-IP-Address
BODY json
{
"consentIds": [],
"paymentIds": []
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/signing-baskets");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
headers = curl_slist_append(headers, "psu-ip-address: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"consentIds\": [],\n \"paymentIds\": []\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/signing-baskets" {:headers {:x-request-id ""
:psu-ip-address ""}
:content-type :json
:form-params {:consentIds []
:paymentIds []}})
require "http/client"
url = "{{baseUrl}}/v1/signing-baskets"
headers = HTTP::Headers{
"x-request-id" => ""
"psu-ip-address" => ""
"content-type" => "application/json"
}
reqBody = "{\n \"consentIds\": [],\n \"paymentIds\": []\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/signing-baskets"),
Headers =
{
{ "x-request-id", "" },
{ "psu-ip-address", "" },
},
Content = new StringContent("{\n \"consentIds\": [],\n \"paymentIds\": []\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/signing-baskets");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-request-id", "");
request.AddHeader("psu-ip-address", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"consentIds\": [],\n \"paymentIds\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/signing-baskets"
payload := strings.NewReader("{\n \"consentIds\": [],\n \"paymentIds\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-request-id", "")
req.Header.Add("psu-ip-address", "")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/signing-baskets HTTP/1.1
X-Request-Id:
Psu-Ip-Address:
Content-Type: application/json
Host: example.com
Content-Length: 42
{
"consentIds": [],
"paymentIds": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/signing-baskets")
.setHeader("x-request-id", "")
.setHeader("psu-ip-address", "")
.setHeader("content-type", "application/json")
.setBody("{\n \"consentIds\": [],\n \"paymentIds\": []\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/signing-baskets"))
.header("x-request-id", "")
.header("psu-ip-address", "")
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"consentIds\": [],\n \"paymentIds\": []\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"consentIds\": [],\n \"paymentIds\": []\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets")
.post(body)
.addHeader("x-request-id", "")
.addHeader("psu-ip-address", "")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/signing-baskets")
.header("x-request-id", "")
.header("psu-ip-address", "")
.header("content-type", "application/json")
.body("{\n \"consentIds\": [],\n \"paymentIds\": []\n}")
.asString();
const data = JSON.stringify({
consentIds: [],
paymentIds: []
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/signing-baskets');
xhr.setRequestHeader('x-request-id', '');
xhr.setRequestHeader('psu-ip-address', '');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/signing-baskets',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
data: {consentIds: [], paymentIds: []}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/signing-baskets';
const options = {
method: 'POST',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
body: '{"consentIds":[],"paymentIds":[]}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/signing-baskets',
method: 'POST',
headers: {
'x-request-id': '',
'psu-ip-address': '',
'content-type': 'application/json'
},
processData: false,
data: '{\n "consentIds": [],\n "paymentIds": []\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"consentIds\": [],\n \"paymentIds\": []\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets")
.post(body)
.addHeader("x-request-id", "")
.addHeader("psu-ip-address", "")
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/signing-baskets',
headers: {
'x-request-id': '',
'psu-ip-address': '',
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({consentIds: [], paymentIds: []}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/signing-baskets',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
body: {consentIds: [], paymentIds: []},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/signing-baskets');
req.headers({
'x-request-id': '',
'psu-ip-address': '',
'content-type': 'application/json'
});
req.type('json');
req.send({
consentIds: [],
paymentIds: []
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/signing-baskets',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
data: {consentIds: [], paymentIds: []}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/signing-baskets';
const options = {
method: 'POST',
headers: {'x-request-id': '', 'psu-ip-address': '', 'content-type': 'application/json'},
body: '{"consentIds":[],"paymentIds":[]}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"",
@"psu-ip-address": @"",
@"content-type": @"application/json" };
NSDictionary *parameters = @{ @"consentIds": @[ ],
@"paymentIds": @[ ] };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/signing-baskets"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/signing-baskets" in
let headers = Header.add_list (Header.init ()) [
("x-request-id", "");
("psu-ip-address", "");
("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n \"consentIds\": [],\n \"paymentIds\": []\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/signing-baskets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'consentIds' => [
],
'paymentIds' => [
]
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json",
"psu-ip-address: ",
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/signing-baskets', [
'body' => '{
"consentIds": [],
"paymentIds": []
}',
'headers' => [
'content-type' => 'application/json',
'psu-ip-address' => '',
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/signing-baskets');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-request-id' => '',
'psu-ip-address' => '',
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'consentIds' => [
],
'paymentIds' => [
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'consentIds' => [
],
'paymentIds' => [
]
]));
$request->setRequestUrl('{{baseUrl}}/v1/signing-baskets');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'x-request-id' => '',
'psu-ip-address' => '',
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("psu-ip-address", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/signing-baskets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"consentIds": [],
"paymentIds": []
}'
$headers=@{}
$headers.Add("x-request-id", "")
$headers.Add("psu-ip-address", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/signing-baskets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"consentIds": [],
"paymentIds": []
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"consentIds\": [],\n \"paymentIds\": []\n}"
headers = {
'x-request-id': "",
'psu-ip-address': "",
'content-type': "application/json"
}
conn.request("POST", "/baseUrl/v1/signing-baskets", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/signing-baskets"
payload = {
"consentIds": [],
"paymentIds": []
}
headers = {
"x-request-id": "",
"psu-ip-address": "",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/signing-baskets"
payload <- "{\n \"consentIds\": [],\n \"paymentIds\": []\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, add_headers('x-request-id' = '', 'psu-ip-address' = ''), content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/signing-baskets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = ''
request["psu-ip-address"] = ''
request["content-type"] = 'application/json'
request.body = "{\n \"consentIds\": [],\n \"paymentIds\": []\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v1/signing-baskets') do |req|
req.headers['x-request-id'] = ''
req.headers['psu-ip-address'] = ''
req.body = "{\n \"consentIds\": [],\n \"paymentIds\": []\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/signing-baskets";
let payload = json!({
"consentIds": (),
"paymentIds": ()
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
headers.insert("psu-ip-address", "".parse().unwrap());
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/signing-baskets \
--header 'content-type: application/json' \
--header 'psu-ip-address: ' \
--header 'x-request-id: ' \
--data '{
"consentIds": [],
"paymentIds": []
}'
echo '{
"consentIds": [],
"paymentIds": []
}' | \
http POST {{baseUrl}}/v1/signing-baskets \
content-type:application/json \
psu-ip-address:'' \
x-request-id:''
wget --quiet \
--method POST \
--header 'x-request-id: ' \
--header 'psu-ip-address: ' \
--header 'content-type: application/json' \
--body-data '{\n "consentIds": [],\n "paymentIds": []\n}' \
--output-document \
- {{baseUrl}}/v1/signing-baskets
import Foundation
let headers = [
"x-request-id": "",
"psu-ip-address": "",
"content-type": "application/json"
]
let parameters = [
"consentIds": [],
"paymentIds": []
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/signing-baskets")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"self": {
"href": "/v1/signing-baskets/1234-basket-567"
},
"startAuthorisation": {
"href": "/v1/signing-baskets/1234-basket-567/authorisations"
},
"status": {
"href": "/v1/signing-baskets/1234-basket-567/status"
}
},
"basketId": "1234-basket-567",
"transactionStatus": "RCVD"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
DELETE
Delete the signing basket
{{baseUrl}}/v1/signing-baskets/:basketId
HEADERS
X-Request-ID
QUERY PARAMS
basketId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/signing-baskets/:basketId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/v1/signing-baskets/:basketId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/signing-baskets/:basketId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/v1/signing-baskets/:basketId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/signing-baskets/:basketId");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/signing-baskets/:basketId"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/v1/signing-baskets/:basketId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v1/signing-baskets/:basketId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/signing-baskets/:basketId"))
.header("x-request-id", "")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId")
.delete(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1/signing-baskets/:basketId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/v1/signing-baskets/:basketId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v1/signing-baskets/:basketId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/signing-baskets/:basketId';
const options = {method: 'DELETE', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/signing-baskets/:basketId',
method: 'DELETE',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId")
.delete(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/signing-baskets/:basketId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v1/signing-baskets/:basketId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/v1/signing-baskets/:basketId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v1/signing-baskets/:basketId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/signing-baskets/:basketId';
const options = {method: 'DELETE', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/signing-baskets/:basketId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/signing-baskets/:basketId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/signing-baskets/:basketId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/v1/signing-baskets/:basketId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/signing-baskets/:basketId');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/signing-baskets/:basketId');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/signing-baskets/:basketId' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/signing-baskets/:basketId' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("DELETE", "/baseUrl/v1/signing-baskets/:basketId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/signing-baskets/:basketId"
headers = {"x-request-id": ""}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/signing-baskets/:basketId"
response <- VERB("DELETE", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/signing-baskets/:basketId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/v1/signing-baskets/:basketId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/signing-baskets/:basketId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/v1/signing-baskets/:basketId \
--header 'x-request-id: '
http DELETE {{baseUrl}}/v1/signing-baskets/:basketId \
x-request-id:''
wget --quiet \
--method DELETE \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/signing-baskets/:basketId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/signing-baskets/:basketId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Get signing basket authorisation sub-resources request
{{baseUrl}}/v1/signing-baskets/:basketId/authorisations
HEADERS
X-Request-ID
QUERY PARAMS
basketId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/signing-baskets/:basketId/authorisations HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/signing-baskets/:basketId/authorisations',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/signing-baskets/:basketId/authorisations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/signing-baskets/:basketId/authorisations');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/signing-baskets/:basketId/authorisations');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/signing-baskets/:basketId/authorisations", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/signing-baskets/:basketId/authorisations') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/signing-baskets/:basketId/authorisations \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/signing-baskets/:basketId/authorisations \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/signing-baskets/:basketId/authorisations
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"authorisationIds": [
"123auth456"
]
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read the SCA status of the signing basket authorisation
{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId
HEADERS
X-Request-ID
QUERY PARAMS
basketId
authorisationId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/signing-baskets/:basketId/authorisations/:authorisationId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/signing-baskets/:basketId/authorisations/:authorisationId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/signing-baskets/:basketId/authorisations/:authorisationId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/signing-baskets/:basketId/authorisations/:authorisationId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"scaStatus": "psuAuthenticated",
"trustedBeneficiaryFlag": false
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Read the status of the signing basket
{{baseUrl}}/v1/signing-baskets/:basketId/status
HEADERS
X-Request-ID
QUERY PARAMS
basketId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/signing-baskets/:basketId/status");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/signing-baskets/:basketId/status" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/signing-baskets/:basketId/status"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/signing-baskets/:basketId/status"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/signing-baskets/:basketId/status");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/signing-baskets/:basketId/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/signing-baskets/:basketId/status HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/signing-baskets/:basketId/status")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/signing-baskets/:basketId/status"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/status")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/signing-baskets/:basketId/status")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/signing-baskets/:basketId/status');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/status',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/status';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/signing-baskets/:basketId/status',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/status")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/signing-baskets/:basketId/status',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/status',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/signing-baskets/:basketId/status');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/status',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/status';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/signing-baskets/:basketId/status"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/signing-baskets/:basketId/status" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/signing-baskets/:basketId/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/signing-baskets/:basketId/status', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/signing-baskets/:basketId/status');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/signing-baskets/:basketId/status');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/status' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/status' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/signing-baskets/:basketId/status", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/signing-baskets/:basketId/status"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/signing-baskets/:basketId/status"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/signing-baskets/:basketId/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/signing-baskets/:basketId/status') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/signing-baskets/:basketId/status";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/signing-baskets/:basketId/status \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/signing-baskets/:basketId/status \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/signing-baskets/:basketId/status
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/signing-baskets/:basketId/status")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"transactionStatus": "RCVD"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
GET
Returns the content of an signing basket object
{{baseUrl}}/v1/signing-baskets/:basketId
HEADERS
X-Request-ID
QUERY PARAMS
basketId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/signing-baskets/:basketId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v1/signing-baskets/:basketId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/signing-baskets/:basketId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v1/signing-baskets/:basketId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/signing-baskets/:basketId");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/signing-baskets/:basketId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v1/signing-baskets/:basketId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v1/signing-baskets/:basketId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/signing-baskets/:basketId"))
.header("x-request-id", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId")
.get()
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/signing-baskets/:basketId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v1/signing-baskets/:basketId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/signing-baskets/:basketId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/signing-baskets/:basketId',
method: 'GET',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId")
.get()
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/signing-baskets/:basketId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v1/signing-baskets/:basketId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v1/signing-baskets/:basketId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/signing-baskets/:basketId';
const options = {method: 'GET', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/signing-baskets/:basketId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/signing-baskets/:basketId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/signing-baskets/:basketId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v1/signing-baskets/:basketId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/signing-baskets/:basketId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/signing-baskets/:basketId');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/signing-baskets/:basketId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/signing-baskets/:basketId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-request-id': "" }
conn.request("GET", "/baseUrl/v1/signing-baskets/:basketId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/signing-baskets/:basketId"
headers = {"x-request-id": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/signing-baskets/:basketId"
response <- VERB("GET", url, add_headers('x-request-id' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/signing-baskets/:basketId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v1/signing-baskets/:basketId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/signing-baskets/:basketId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v1/signing-baskets/:basketId \
--header 'x-request-id: '
http GET {{baseUrl}}/v1/signing-baskets/:basketId \
x-request-id:''
wget --quiet \
--method GET \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/signing-baskets/:basketId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/signing-baskets/:basketId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"payments": [
"1234pay567",
"1234pay568",
"1234pay888"
],
"transactionStatus": "ACTC"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
POST
Start the authorisation process for a signing basket
{{baseUrl}}/v1/signing-baskets/:basketId/authorisations
HEADERS
X-Request-ID
QUERY PARAMS
basketId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v1/signing-baskets/:basketId/authorisations HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"))
.header("x-request-id", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
.post(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations';
const options = {method: 'POST', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations',
method: 'POST',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
.post(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/signing-baskets/:basketId/authorisations',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations';
const options = {method: 'POST', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/signing-baskets/:basketId/authorisations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/signing-baskets/:basketId/authorisations');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/signing-baskets/:basketId/authorisations');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = ""
headers = { 'x-request-id': "" }
conn.request("POST", "/baseUrl/v1/signing-baskets/:basketId/authorisations", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"
payload = ""
headers = {"x-request-id": ""}
response = requests.post(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations"
payload <- ""
response <- VERB("POST", url, body = payload, add_headers('x-request-id' = ''), content_type(""))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/v1/signing-baskets/:basketId/authorisations') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/v1/signing-baskets/:basketId/authorisations \
--header 'x-request-id: '
http POST {{baseUrl}}/v1/signing-baskets/:basketId/authorisations \
x-request-id:''
wget --quiet \
--method POST \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/signing-baskets/:basketId/authorisations
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaStatus": {
"href": "/v1/payments/qwer3456tzui7890/authorisations/123auth456"
}
},
"authorisationId": "123auth456",
"psuMessage": "Please use your BankApp for transaction Authorisation.",
"scaStatus": "received"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]
PUT
Update PSU data for signing basket
{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId
HEADERS
X-Request-ID
QUERY PARAMS
basketId
authorisationId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-request-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId" {:headers {:x-request-id ""}})
require "http/client"
url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"
headers = HTTP::Headers{
"x-request-id" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"),
Headers =
{
{ "x-request-id", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-request-id", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-request-id", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/v1/signing-baskets/:basketId/authorisations/:authorisationId HTTP/1.1
X-Request-Id:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
.setHeader("x-request-id", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"))
.header("x-request-id", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
.put(null)
.addHeader("x-request-id", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
.header("x-request-id", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId');
xhr.setRequestHeader('x-request-id', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId';
const options = {method: 'PUT', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId',
method: 'PUT',
headers: {
'x-request-id': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
.put(null)
.addHeader("x-request-id", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/v1/signing-baskets/:basketId/authorisations/:authorisationId',
headers: {
'x-request-id': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId');
req.headers({
'x-request-id': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId',
headers: {'x-request-id': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId';
const options = {method: 'PUT', headers: {'x-request-id': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-request-id": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId" in
let headers = Header.add (Header.init ()) "x-request-id" "" in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"x-request-id: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId', [
'headers' => [
'x-request-id' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-request-id' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-request-id' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-request-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = ""
headers = { 'x-request-id': "" }
conn.request("PUT", "/baseUrl/v1/signing-baskets/:basketId/authorisations/:authorisationId", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"
payload = ""
headers = {"x-request-id": ""}
response = requests.put(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId"
payload <- ""
response <- VERB("PUT", url, body = payload, add_headers('x-request-id' = ''), content_type(""))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-request-id"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/v1/signing-baskets/:basketId/authorisations/:authorisationId') do |req|
req.headers['x-request-id'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-request-id", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId \
--header 'x-request-id: '
http PUT {{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId \
x-request-id:''
wget --quiet \
--method PUT \
--header 'x-request-id: ' \
--output-document \
- {{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId
import Foundation
let headers = ["x-request-id": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/signing-baskets/:basketId/authorisations/:authorisationId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"status": {
"href": "/v1/payments/sepa-credit-transfers/qwer3456tzui7890/status"
}
},
"scaStatus": "finalised"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"authoriseTransaction": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
}
},
"challengeData": {
"otpFormat": "integer",
"otpMaxLength": "6"
},
"chosenScaMethod": {
"authenticationMethodId": "myAuthenticationID",
"authenticationType": "SMS_OTP"
},
"scaStatus": "scaMethodSelected"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"scaStatus": "finalised"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"authoriseTransaction": {
"href": "/v1/payments/1234-wertiq-983/authorisations/123auth456"
}
},
"scaStatus": "psuAuthenticated"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"_links": {
"scaStatus": {
"href": "/v1/payments/qwer3456tzui7890/authorisations/123auth456"
}
},
"psuMessage": "Please use your BankApp for transaction Authorisation.",
"scatransactionStatus": "psuIdentified"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"category": "ERROR",
"code": "STATUS_INVALID",
"text": "additional text information of the ASPSP up to 500 characters"
}
]