Payment Initiation API
openbanking · Government
Swagger for Payment Initiation API Specification
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
Get Domestic Payment Consents
Get Domestic Payment Consents
https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payment-consents/{ConsentId}
Hover any highlighted part to learn what it does
Headers — extra info sent with the request
| Authorization | example |
curl -X GET "https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payment-consents/{ConsentId}" \
-H "Authorization: example"import requests
headers = {
"Authorization": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payment-consents/{ConsentId}",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payment-consents/{ConsentId}';
const response = await fetch(url, {
headers: {
'Authorization': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payment-consents/{ConsentId}"
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("Authorization", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payment-consents/{ConsentId}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payment-consents/{ConsentId}";
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"Authorization: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Get Domestic Payments
Get Domestic Payments
https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payments/{DomesticPaymentId}
Hover any highlighted part to learn what it does
Headers — extra info sent with the request
| Authorization | example |
curl -X GET "https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payments/{DomesticPaymentId}" \
-H "Authorization: example"import requests
headers = {
"Authorization": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payments/{DomesticPaymentId}",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payments/{DomesticPaymentId}';
const response = await fetch(url, {
headers: {
'Authorization': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payments/{DomesticPaymentId}"
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("Authorization", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payments/{DomesticPaymentId}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-payments/{DomesticPaymentId}";
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"Authorization: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Get Domestic Scheduled Payment Consents
Get Domestic Scheduled Payment Consents
https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-scheduled-payment-consents/{ConsentId}
Hover any highlighted part to learn what it does
Headers — extra info sent with the request
| Authorization | example |
curl -X GET "https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-scheduled-payment-consents/{ConsentId}" \
-H "Authorization: example"import requests
headers = {
"Authorization": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-scheduled-payment-consents/{ConsentId}",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-scheduled-payment-consents/{ConsentId}';
const response = await fetch(url, {
headers: {
'Authorization': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-scheduled-payment-consents/{ConsentId}"
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("Authorization", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-scheduled-payment-consents/{ConsentId}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/openbanking.org.uk/payment-initiation-openapi/3.1.7/domestic-scheduled-payment-consents/{ConsentId}";
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"Authorization: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Payment Initiation API?
Payment Initiation API is a Government API. Developers commonly use government APIs for:
- surfacing public datasets in citizen-facing apps
- building transparency and civic engagement tools
- accessing legislation, court records, and official data
- powering research and journalism tools
- creating compliance and regulatory monitoring dashboards
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Payment Initiation API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide