curl --request POST \
--url https://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"records": [
{}
],
"external_source": "<string>",
"conflict_mode": "skip",
"migration_batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dry_run": false
}
'import requests
url = "https://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk"
payload = {
"records": [{}],
"external_source": "<string>",
"conflict_mode": "skip",
"migration_batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dry_run": False
}
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({
records: [{}],
external_source: '<string>',
conflict_mode: 'skip',
migration_batch_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
dry_run: false
})
};
fetch('https://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/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.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk",
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([
'records' => [
[
]
],
'external_source' => '<string>',
'conflict_mode' => 'skip',
'migration_batch_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'dry_run' => false
]),
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.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk"
payload := strings.NewReader("{\n \"records\": [\n {}\n ],\n \"external_source\": \"<string>\",\n \"conflict_mode\": \"skip\",\n \"migration_batch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dry_run\": false\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://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"records\": [\n {}\n ],\n \"external_source\": \"<string>\",\n \"conflict_mode\": \"skip\",\n \"migration_batch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dry_run\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk")
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 \"records\": [\n {}\n ],\n \"external_source\": \"<string>\",\n \"conflict_mode\": \"skip\",\n \"migration_batch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dry_run\": false\n}"
response = http.request(request)
puts response.read_body{
"object": "migration_dry_run_result",
"dry_run": true,
"resource": "<string>",
"external_source": "<string>",
"total_records": 123,
"succeeded_records": 123,
"failed_records": 123,
"errors": [
{}
]
}{
"object": "migration_job",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"resource": "accounts",
"dry_run": true,
"conflict_mode": "skip",
"external_source": "<string>",
"total_records": 123,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}Submit a bulk import job for a resource type
Accepts up to 1000 records for one of 17 supported resource types (accounts, products, orders, journal-entries, vendor-bills, ap-payments, product-categories, product-variants, product-pricing-policies, product-vendors, product-prepackaged-presets, customer-payments, inventory-balances-opening-stock, inventory-balances-set-opening-stock, inventory-transactions, order-tax-lines, account-addresses). Returns 202 + job_id for async processing. Returns 200 + dry_run result if ?dry_run=true (no DB writes made). Idempotency-Key header deduplicates concurrent submissions. THE ONE RULE: this endpoint is a thin loop over canonical handlers; it does NOT write directly to any resource table.
curl --request POST \
--url https://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"records": [
{}
],
"external_source": "<string>",
"conflict_mode": "skip",
"migration_batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dry_run": false
}
'import requests
url = "https://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk"
payload = {
"records": [{}],
"external_source": "<string>",
"conflict_mode": "skip",
"migration_batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dry_run": False
}
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({
records: [{}],
external_source: '<string>',
conflict_mode: 'skip',
migration_batch_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
dry_run: false
})
};
fetch('https://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/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.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk",
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([
'records' => [
[
]
],
'external_source' => '<string>',
'conflict_mode' => 'skip',
'migration_batch_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'dry_run' => false
]),
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.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk"
payload := strings.NewReader("{\n \"records\": [\n {}\n ],\n \"external_source\": \"<string>\",\n \"conflict_mode\": \"skip\",\n \"migration_batch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dry_run\": false\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://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"records\": [\n {}\n ],\n \"external_source\": \"<string>\",\n \"conflict_mode\": \"skip\",\n \"migration_batch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dry_run\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arcuserp.com/v1/entities/{entity_id}/migration/{resource}/bulk")
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 \"records\": [\n {}\n ],\n \"external_source\": \"<string>\",\n \"conflict_mode\": \"skip\",\n \"migration_batch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"dry_run\": false\n}"
response = http.request(request)
puts response.read_body{
"object": "migration_dry_run_result",
"dry_run": true,
"resource": "<string>",
"external_source": "<string>",
"total_records": 123,
"succeeded_records": 123,
"failed_records": 123,
"errors": [
{}
]
}{
"object": "migration_job",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"resource": "accounts",
"dry_run": true,
"conflict_mode": "skip",
"external_source": "<string>",
"total_records": 123,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}Authorizations
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
Headers
Client-generated unique key for idempotent POST/PATCH/DELETE operations. Max 255 chars. On retry with the same key, the original response is returned without re-executing the operation. Keys expire after 24 hours. Pattern: or --.
255Path Parameters
accounts, products, orders, journal-entries, vendor-bills, ap-payments, product-categories, product-variants, product-pricing-policies, product-vendors, product-prepackaged-presets, customer-payments, inventory-balances-opening-stock, inventory-balances-set-opening-stock, inventory-transactions, inventory-movements, order-tax-lines, account-addresses, account-contacts, purchase-orders, returns, vendor-credits Query Parameters
If true, runs validation synchronously and returns results without any DB writes.
Body
1 - 1000 elementsSource system identifier (e.g. "versa_cloud", "quickbooks_online", "netsuite", "shopify_export"). Required. Persisted on every record's external_source column. Used by GET /v1/entities/{entity_id}/reconciliation/counts?external_source= to filter counts to a specific source.
60How to handle a record whose (external_source, external_id) already exists in Arcus.
- skip: leave the existing record unchanged, count as success
- update: call the canonical UPDATE handler with the incoming payload
- replace: NULL out the existing record's provenance UNIQUE, then INSERT new record
- error: abort the entire batch on the first collision (default if not specified: skip)
skip, update, replace, error Optional batch identifier you generate once per logical migration "wave" and pass on every record. Persisted on every record's migration_batch_id column. Used to group records that were imported together for later reconciliation or rollback.
If true, the records are validated end-to-end but no DB writes occur. Useful for catching missing required fields and FK violations before committing a real import.
Response
Dry-run result (no writes made)
Was this page helpful?

