Import transactions (multipart)
curl --request POST \
--url http://api.gu1.ai/batch-import/import/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/batch-import/import/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/batch-import/import/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 => "http://api.gu1.ai/batch-import/import/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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 := "http://api.gu1.ai/batch-import/import/transactions"
req, _ := http.NewRequest("POST", 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.post("http://api.gu1.ai/batch-import/import/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/batch-import/import/transactions")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyAPI Reference
Import transactions (multipart)
Upload transaction files with optional saved mapping or native parser β via the gu1 batch import API for high-volume data loading, with examples for import.
POST
/
batch-import
/
import
/
transactions
Import transactions (multipart)
curl --request POST \
--url http://api.gu1.ai/batch-import/import/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/batch-import/import/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/batch-import/import/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 => "http://api.gu1.ai/batch-import/import/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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 := "http://api.gu1.ai/batch-import/import/transactions"
req, _ := http.NewRequest("POST", 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.post("http://api.gu1.ai/batch-import/import/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/batch-import/import/transactions")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyEndpoint
POST https://api.gu1.ai/batch-import/import/transactions
POST https://api.gu1.ai/transactions/batch/upload
Overview
Content-Type:multipart/form-data.
If mappingId and columnMapping are omitted, the server uses the native CSV/Excel/JSON parser. batchUploadEnabled must be true for the organization.
Query (alternate route only): validateGap=true on /transactions/batch/upload enables time-gap validation between multiple files.
See Create batch transactions for limits and templates.
Authentication
Authorization: Bearer YOUR_API_KEY
Form fields
| Field | Required | Description |
|---|---|---|
file | Yes | One or more files (repeat field name file) |
mappingId | No | Saved transaction mapping UUID |
columnMapping | No | JSON string of column mapping (CSV only; alternative to mappingId) |
executeRules | No | true / false |
skipDuplicates | No | true / false |
validateExistingEntity | No | true (default) / false |
batchErrorHandling | No | rollback_all (default when omitted), continue_collect_errors, or stop_keep_success. With strict entity validation, controls whether invalid refs abort the batch or are skipped per row (failures.csv). |
Limits
| Value | |
|---|---|
| Files per request | Up to 5 (repeat form field file) |
| Max transactions per file | By plan β see Create batch transactions β Limits by plan (Freemium 4,000 β Enterprise 100,000); hard parser cap 100,000 rows/file |
| Formats | CSV, Excel (.xlsx, .xls), JSON |
| Feature flag | batchUploadEnabled must be true for the organization |
POST /transactions/batch/upload (alias behavior).
See also: Bulk imports overview.Was this page helpful?