Get one exact contextual payment source and its active batch
curl --request GET \
--url https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_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 => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"source": {
"kind": "purchase_invoice",
"id": "<string>",
"revision": "<string>",
"eligible": true,
"ineligibility": "<string>"
},
"can_prepare": true,
"can_release": true,
"payment_setup_configured": true,
"payment_setup_ready": true,
"can_configure_payment_setup": true,
"batch": {
"id": "<string>",
"payload_hash": "<string>",
"sources": [
{
"kind": "purchase_invoice",
"id": "<string>",
"revision": "<string>"
}
],
"purpose": "<string>",
"requested_execution_date": "2023-12-25",
"debtor_name": "<string>",
"debtor_iban": "<string>",
"currency": "EUR",
"total_cents": 2,
"instructions": [
{
"id": "<string>",
"creditor_name": "<string>",
"creditor_iban": "<string>",
"amount_cents": 2,
"currency": "EUR",
"requested_execution_date": "2023-12-25",
"remittance": "<string>",
"creditor_reference": "<string>",
"category_purpose": "<string>"
}
],
"state": "ready_to_release",
"status_message": "<string>",
"can_release": true,
"can_poll": true,
"can_resolve": true,
"can_resolve_submitted": true,
"can_resolve_rejected": true,
"requires_bank_authorization": true,
"created_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Payments
Get one exact contextual payment source and its active batch
Source-scoped and non-enumerable. Payroll and reimbursement privacy is enforced before any batch amount, recipient, or IBAN is returned.
GET
/
payment-sources
/
{kind}
/
{source_id}
Get one exact contextual payment source and its active batch
curl --request GET \
--url https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_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 => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/payment-sources/{kind}/{source_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"source": {
"kind": "purchase_invoice",
"id": "<string>",
"revision": "<string>",
"eligible": true,
"ineligibility": "<string>"
},
"can_prepare": true,
"can_release": true,
"payment_setup_configured": true,
"payment_setup_ready": true,
"can_configure_payment_setup": true,
"batch": {
"id": "<string>",
"payload_hash": "<string>",
"sources": [
{
"kind": "purchase_invoice",
"id": "<string>",
"revision": "<string>"
}
],
"purpose": "<string>",
"requested_execution_date": "2023-12-25",
"debtor_name": "<string>",
"debtor_iban": "<string>",
"currency": "EUR",
"total_cents": 2,
"instructions": [
{
"id": "<string>",
"creditor_name": "<string>",
"creditor_iban": "<string>",
"amount_cents": 2,
"currency": "EUR",
"requested_execution_date": "2023-12-25",
"remittance": "<string>",
"creditor_reference": "<string>",
"category_purpose": "<string>"
}
],
"state": "ready_to_release",
"status_message": "<string>",
"can_release": true,
"can_poll": true,
"can_resolve": true,
"can_resolve_submitted": true,
"can_resolve_rejected": true,
"requires_bank_authorization": true,
"created_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Authorizations
Firebase ID token from an interactive portal session. Required for interactive operations (payroll, company settings, API-key management) and invoice decisions allowed by the member's review permissions.
Path Parameters
Available options:
purchase_invoice, payroll_run, reimbursement Query Parameters
Target company. Optional — API keys are pinned to one company, and single-company sessions default to it.
Response
Server-derived source observation and exact current frozen batch, if any.