Read one exact payment batch including older settled history
curl --request GET \
--url https://api.app.lastaccountingcompany.com/portal/payment-batches/{batch_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.app.lastaccountingcompany.com/portal/payment-batches/{batch_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-batches/{batch_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-batches/{batch_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-batches/{batch_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-batches/{batch_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/payment-batches/{batch_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{
"customer_id": "<string>",
"viewer_role": "<string>",
"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_cancel": 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"
},
"payment_setup_ready": true,
"payment_verification_pending": true
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Payments
Read one exact payment batch including older settled history
Requires access to every source in the batch. Operators can inspect purchase payments; payroll and reimbursements require an admin or approver. Missing, cancelled and forbidden-source records return 404. Release and recovery capabilities retain their named-member authority.
GET
/
payment-batches
/
{batch_id}
Read one exact payment batch including older settled history
curl --request GET \
--url https://api.app.lastaccountingcompany.com/portal/payment-batches/{batch_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.app.lastaccountingcompany.com/portal/payment-batches/{batch_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-batches/{batch_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-batches/{batch_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-batches/{batch_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-batches/{batch_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/payment-batches/{batch_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{
"customer_id": "<string>",
"viewer_role": "<string>",
"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_cancel": 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"
},
"payment_setup_ready": true,
"payment_verification_pending": true
}{
"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
Required string length:
1 - 300Query Parameters
Target company. Optional — API keys are pinned to one company, and single-company sessions default to it.