Bulk update transactions
curl --request PATCH \
--url https://api.abacuslabs.co/transactions/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
],
"categorySlug": "<string>",
"internal": true,
"note": "<string>",
"assignedId": "<string>",
"recurring": true,
"tagId": "<string>",
"name": "<string>",
"matchedDealId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dealCode": "<string>",
"matchedAt": "2023-11-07T05:31:56Z",
"matchedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"matchRule": "<string>"
}
'import requests
url = "https://api.abacuslabs.co/transactions/bulk"
payload = {
"ids": ["<string>"],
"categorySlug": "<string>",
"internal": True,
"note": "<string>",
"assignedId": "<string>",
"recurring": True,
"tagId": "<string>",
"name": "<string>",
"matchedDealId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dealCode": "<string>",
"matchedAt": "2023-11-07T05:31:56Z",
"matchedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"matchRule": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ids: ['<string>'],
categorySlug: '<string>',
internal: true,
note: '<string>',
assignedId: '<string>',
recurring: true,
tagId: '<string>',
name: '<string>',
matchedDealId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
dealCode: '<string>',
matchedAt: '2023-11-07T05:31:56Z',
matchedBy: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
matchRule: '<string>'
})
};
fetch('https://api.abacuslabs.co/transactions/bulk', 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.abacuslabs.co/transactions/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'<string>'
],
'categorySlug' => '<string>',
'internal' => true,
'note' => '<string>',
'assignedId' => '<string>',
'recurring' => true,
'tagId' => '<string>',
'name' => '<string>',
'matchedDealId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'dealCode' => '<string>',
'matchedAt' => '2023-11-07T05:31:56Z',
'matchedBy' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'matchRule' => '<string>'
]),
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://api.abacuslabs.co/transactions/bulk"
payload := strings.NewReader("{\n \"ids\": [\n \"<string>\"\n ],\n \"categorySlug\": \"<string>\",\n \"internal\": true,\n \"note\": \"<string>\",\n \"assignedId\": \"<string>\",\n \"recurring\": true,\n \"tagId\": \"<string>\",\n \"name\": \"<string>\",\n \"matchedDealId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dealCode\": \"<string>\",\n \"matchedAt\": \"2023-11-07T05:31:56Z\",\n \"matchedBy\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"matchRule\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.abacuslabs.co/transactions/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"<string>\"\n ],\n \"categorySlug\": \"<string>\",\n \"internal\": true,\n \"note\": \"<string>\",\n \"assignedId\": \"<string>\",\n \"recurring\": true,\n \"tagId\": \"<string>\",\n \"name\": \"<string>\",\n \"matchedDealId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dealCode\": \"<string>\",\n \"matchedAt\": \"2023-11-07T05:31:56Z\",\n \"matchedBy\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"matchRule\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/transactions/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"<string>\"\n ],\n \"categorySlug\": \"<string>\",\n \"internal\": true,\n \"note\": \"<string>\",\n \"assignedId\": \"<string>\",\n \"recurring\": true,\n \"tagId\": \"<string>\",\n \"name\": \"<string>\",\n \"matchedDealId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dealCode\": \"<string>\",\n \"matchedAt\": \"2023-11-07T05:31:56Z\",\n \"matchedBy\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"matchRule\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"meta": {
"hasPreviousPage": false,
"hasNextPage": true,
"cursor": "eyJpZCI6IjQ1NiJ9"
},
"data": [
{
"id": "b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f",
"name": "Office Supplies Purchase",
"amount": 150.75,
"currency": "USD",
"counterpartyName": "Spotify AB",
"date": "2024-05-01T12:00:00.000Z",
"category": {
"id": "office-supplies",
"name": "Office Supplies",
"color": "#FF5733",
"slug": "office-supplies"
},
"transactionType": "credit",
"status": "posted",
"internal": false,
"recurring": false,
"manual": false,
"frequency": "monthly",
"isFulfilled": true,
"note": "Paid with company credit card for office renovation",
"entityId": "<string>",
"entityType": "<string>",
"entityName": "<string>",
"entityCompanyName": "<string>",
"dealCode": "<string>",
"matchStatus": "<string>",
"matchedDealId": "<string>",
"dealMerchantName": "<string>",
"discrepancyType": "nsf",
"assigned": {
"id": "<string>",
"fullName": "<string>",
"avatarUrl": "<string>"
},
"account": {
"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388",
"name": "Company Credit Card",
"currency": "USD",
"connection": {
"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388",
"name": "Chase Bank",
"logoUrl": "https://logo.clearbit.com/chase.com"
}
},
"tags": [
{
"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b",
"name": "invoice"
},
{
"id": "c8e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7c",
"name": "travel"
}
],
"attachments": [
{
"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b",
"path": [
"e1f2d3c4-b5a6-7d8e-9f0a-1b2c3d4e5f6a",
"transactions",
"9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"receipt.pdf"
],
"size": 1928716,
"type": "application/pdf",
"filename": "receipt.pdf"
}
],
"parentTransactionId": null
}
]
}Transactions
Bulk update transactions
Bulk update transactions for the authenticated team. If there’s no change, returns it as it is.
PATCH
/
transactions
/
bulk
Bulk update transactions
curl --request PATCH \
--url https://api.abacuslabs.co/transactions/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
],
"categorySlug": "<string>",
"internal": true,
"note": "<string>",
"assignedId": "<string>",
"recurring": true,
"tagId": "<string>",
"name": "<string>",
"matchedDealId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dealCode": "<string>",
"matchedAt": "2023-11-07T05:31:56Z",
"matchedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"matchRule": "<string>"
}
'import requests
url = "https://api.abacuslabs.co/transactions/bulk"
payload = {
"ids": ["<string>"],
"categorySlug": "<string>",
"internal": True,
"note": "<string>",
"assignedId": "<string>",
"recurring": True,
"tagId": "<string>",
"name": "<string>",
"matchedDealId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dealCode": "<string>",
"matchedAt": "2023-11-07T05:31:56Z",
"matchedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"matchRule": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ids: ['<string>'],
categorySlug: '<string>',
internal: true,
note: '<string>',
assignedId: '<string>',
recurring: true,
tagId: '<string>',
name: '<string>',
matchedDealId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
dealCode: '<string>',
matchedAt: '2023-11-07T05:31:56Z',
matchedBy: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
matchRule: '<string>'
})
};
fetch('https://api.abacuslabs.co/transactions/bulk', 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.abacuslabs.co/transactions/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'<string>'
],
'categorySlug' => '<string>',
'internal' => true,
'note' => '<string>',
'assignedId' => '<string>',
'recurring' => true,
'tagId' => '<string>',
'name' => '<string>',
'matchedDealId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'dealCode' => '<string>',
'matchedAt' => '2023-11-07T05:31:56Z',
'matchedBy' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'matchRule' => '<string>'
]),
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://api.abacuslabs.co/transactions/bulk"
payload := strings.NewReader("{\n \"ids\": [\n \"<string>\"\n ],\n \"categorySlug\": \"<string>\",\n \"internal\": true,\n \"note\": \"<string>\",\n \"assignedId\": \"<string>\",\n \"recurring\": true,\n \"tagId\": \"<string>\",\n \"name\": \"<string>\",\n \"matchedDealId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dealCode\": \"<string>\",\n \"matchedAt\": \"2023-11-07T05:31:56Z\",\n \"matchedBy\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"matchRule\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.abacuslabs.co/transactions/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"<string>\"\n ],\n \"categorySlug\": \"<string>\",\n \"internal\": true,\n \"note\": \"<string>\",\n \"assignedId\": \"<string>\",\n \"recurring\": true,\n \"tagId\": \"<string>\",\n \"name\": \"<string>\",\n \"matchedDealId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dealCode\": \"<string>\",\n \"matchedAt\": \"2023-11-07T05:31:56Z\",\n \"matchedBy\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"matchRule\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/transactions/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"<string>\"\n ],\n \"categorySlug\": \"<string>\",\n \"internal\": true,\n \"note\": \"<string>\",\n \"assignedId\": \"<string>\",\n \"recurring\": true,\n \"tagId\": \"<string>\",\n \"name\": \"<string>\",\n \"matchedDealId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dealCode\": \"<string>\",\n \"matchedAt\": \"2023-11-07T05:31:56Z\",\n \"matchedBy\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"matchRule\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"meta": {
"hasPreviousPage": false,
"hasNextPage": true,
"cursor": "eyJpZCI6IjQ1NiJ9"
},
"data": [
{
"id": "b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f",
"name": "Office Supplies Purchase",
"amount": 150.75,
"currency": "USD",
"counterpartyName": "Spotify AB",
"date": "2024-05-01T12:00:00.000Z",
"category": {
"id": "office-supplies",
"name": "Office Supplies",
"color": "#FF5733",
"slug": "office-supplies"
},
"transactionType": "credit",
"status": "posted",
"internal": false,
"recurring": false,
"manual": false,
"frequency": "monthly",
"isFulfilled": true,
"note": "Paid with company credit card for office renovation",
"entityId": "<string>",
"entityType": "<string>",
"entityName": "<string>",
"entityCompanyName": "<string>",
"dealCode": "<string>",
"matchStatus": "<string>",
"matchedDealId": "<string>",
"dealMerchantName": "<string>",
"discrepancyType": "nsf",
"assigned": {
"id": "<string>",
"fullName": "<string>",
"avatarUrl": "<string>"
},
"account": {
"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388",
"name": "Company Credit Card",
"currency": "USD",
"connection": {
"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388",
"name": "Chase Bank",
"logoUrl": "https://logo.clearbit.com/chase.com"
}
},
"tags": [
{
"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b",
"name": "invoice"
},
{
"id": "c8e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7c",
"name": "travel"
}
],
"attachments": [
{
"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b",
"path": [
"e1f2d3c4-b5a6-7d8e-9f0a-1b2c3d4e5f6a",
"transactions",
"9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"receipt.pdf"
],
"size": 1928716,
"type": "application/pdf",
"filename": "receipt.pdf"
}
],
"parentTransactionId": null
}
]
}Body
application/json