curl --request POST \
--url https://ledgitify.com/api/v1/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rows": [
{
"externalId": "GL-2026-0001",
"date": "2026-08-01",
"description": "Office supplies",
"contact": "Officeworks",
"amount": 249.5,
"accountCode": "400"
},
{
"externalId": "GL-2026-0002",
"date": "2026-08-02",
"description": "Grant receipt",
"amount": -50000
}
]
}
'import requests
url = "https://ledgitify.com/api/v1/transactions"
payload = { "rows": [
{
"externalId": "GL-2026-0001",
"date": "2026-08-01",
"description": "Office supplies",
"contact": "Officeworks",
"amount": 249.5,
"accountCode": "400"
},
{
"externalId": "GL-2026-0002",
"date": "2026-08-02",
"description": "Grant receipt",
"amount": -50000
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
externalId: 'GL-2026-0001',
date: '2026-08-01',
description: 'Office supplies',
contact: 'Officeworks',
amount: 249.5,
accountCode: '400'
},
{
externalId: 'GL-2026-0002',
date: '2026-08-02',
description: 'Grant receipt',
amount: -50000
}
]
})
};
fetch('https://ledgitify.com/api/v1/transactions', 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://ledgitify.com/api/v1/transactions",
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([
'rows' => [
[
'externalId' => 'GL-2026-0001',
'date' => '2026-08-01',
'description' => 'Office supplies',
'contact' => 'Officeworks',
'amount' => 249.5,
'accountCode' => '400'
],
[
'externalId' => 'GL-2026-0002',
'date' => '2026-08-02',
'description' => 'Grant receipt',
'amount' => -50000
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ledgitify.com/api/v1/transactions"
payload := strings.NewReader("{\n \"rows\": [\n {\n \"externalId\": \"GL-2026-0001\",\n \"date\": \"2026-08-01\",\n \"description\": \"Office supplies\",\n \"contact\": \"Officeworks\",\n \"amount\": 249.5,\n \"accountCode\": \"400\"\n },\n {\n \"externalId\": \"GL-2026-0002\",\n \"date\": \"2026-08-02\",\n \"description\": \"Grant receipt\",\n \"amount\": -50000\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ledgitify.com/api/v1/transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rows\": [\n {\n \"externalId\": \"GL-2026-0001\",\n \"date\": \"2026-08-01\",\n \"description\": \"Office supplies\",\n \"contact\": \"Officeworks\",\n \"amount\": 249.5,\n \"accountCode\": \"400\"\n },\n {\n \"externalId\": \"GL-2026-0002\",\n \"date\": \"2026-08-02\",\n \"description\": \"Grant receipt\",\n \"amount\": -50000\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ledgitify.com/api/v1/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rows\": [\n {\n \"externalId\": \"GL-2026-0001\",\n \"date\": \"2026-08-01\",\n \"description\": \"Office supplies\",\n \"contact\": \"Officeworks\",\n \"amount\": 249.5,\n \"accountCode\": \"400\"\n },\n {\n \"externalId\": \"GL-2026-0002\",\n \"date\": \"2026-08-02\",\n \"description\": \"Grant receipt\",\n \"amount\": -50000\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"externalId": "GL-2026-0001",
"status": "created",
"id": "77aa..."
},
{
"externalId": "GL-2026-0002",
"status": "updated",
"id": "77ab..."
}
],
"summary": {
"total": 2,
"created": 1,
"updated": 1,
"rejected": 0
}
}Push transactions (batch)
Create or update cash transactions in batch from an external finance system (the inbound counterpart to the Xero sync). Requires the transactions:write scope. Each row is validated independently, so a batch may partially succeed; re-pushing the same externalId updates the existing row instead of duplicating it. Amounts are in your organisation’s base currency, signed (money-in negative). Cash movements only — journal lines are not accepted.
curl --request POST \
--url https://ledgitify.com/api/v1/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rows": [
{
"externalId": "GL-2026-0001",
"date": "2026-08-01",
"description": "Office supplies",
"contact": "Officeworks",
"amount": 249.5,
"accountCode": "400"
},
{
"externalId": "GL-2026-0002",
"date": "2026-08-02",
"description": "Grant receipt",
"amount": -50000
}
]
}
'import requests
url = "https://ledgitify.com/api/v1/transactions"
payload = { "rows": [
{
"externalId": "GL-2026-0001",
"date": "2026-08-01",
"description": "Office supplies",
"contact": "Officeworks",
"amount": 249.5,
"accountCode": "400"
},
{
"externalId": "GL-2026-0002",
"date": "2026-08-02",
"description": "Grant receipt",
"amount": -50000
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
externalId: 'GL-2026-0001',
date: '2026-08-01',
description: 'Office supplies',
contact: 'Officeworks',
amount: 249.5,
accountCode: '400'
},
{
externalId: 'GL-2026-0002',
date: '2026-08-02',
description: 'Grant receipt',
amount: -50000
}
]
})
};
fetch('https://ledgitify.com/api/v1/transactions', 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://ledgitify.com/api/v1/transactions",
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([
'rows' => [
[
'externalId' => 'GL-2026-0001',
'date' => '2026-08-01',
'description' => 'Office supplies',
'contact' => 'Officeworks',
'amount' => 249.5,
'accountCode' => '400'
],
[
'externalId' => 'GL-2026-0002',
'date' => '2026-08-02',
'description' => 'Grant receipt',
'amount' => -50000
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ledgitify.com/api/v1/transactions"
payload := strings.NewReader("{\n \"rows\": [\n {\n \"externalId\": \"GL-2026-0001\",\n \"date\": \"2026-08-01\",\n \"description\": \"Office supplies\",\n \"contact\": \"Officeworks\",\n \"amount\": 249.5,\n \"accountCode\": \"400\"\n },\n {\n \"externalId\": \"GL-2026-0002\",\n \"date\": \"2026-08-02\",\n \"description\": \"Grant receipt\",\n \"amount\": -50000\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ledgitify.com/api/v1/transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rows\": [\n {\n \"externalId\": \"GL-2026-0001\",\n \"date\": \"2026-08-01\",\n \"description\": \"Office supplies\",\n \"contact\": \"Officeworks\",\n \"amount\": 249.5,\n \"accountCode\": \"400\"\n },\n {\n \"externalId\": \"GL-2026-0002\",\n \"date\": \"2026-08-02\",\n \"description\": \"Grant receipt\",\n \"amount\": -50000\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ledgitify.com/api/v1/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rows\": [\n {\n \"externalId\": \"GL-2026-0001\",\n \"date\": \"2026-08-01\",\n \"description\": \"Office supplies\",\n \"contact\": \"Officeworks\",\n \"amount\": 249.5,\n \"accountCode\": \"400\"\n },\n {\n \"externalId\": \"GL-2026-0002\",\n \"date\": \"2026-08-02\",\n \"description\": \"Grant receipt\",\n \"amount\": -50000\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"externalId": "GL-2026-0001",
"status": "created",
"id": "77aa..."
},
{
"externalId": "GL-2026-0002",
"status": "updated",
"id": "77ab..."
}
],
"summary": {
"total": 2,
"created": 1,
"updated": 1,
"rejected": 0
}
}Authorizations
API key as a Bearer token: Authorization: Bearer lk_live_<48 hex>. Create keys in Settings → API keys (Owner or Admin); the full key is shown once. API access is a Professional+ feature. Each key is granted one or more scopes — read (projects:read, reports:read, allocations:read, transactions:read) and the single write scope (transactions:write) — and is limited to 120 requests per minute.
Body
1 - 500 elementsShow child attributes
Show child attributes