Skip to main content
POST
/
public
/
v2
/
intercompany-journal-entries
/
Create intercompany journal entry
curl --request POST \
  --url https://api.dualentry.com/public/v2/intercompany-journal-entries/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "date": "2023-12-25",
  "exchange_rate": 123,
  "items": [
    {
      "company_id": 123,
      "account_number": 123,
      "debit": 123,
      "credit": 123,
      "memo": "<string>",
      "position": 123,
      "id": 123,
      "classifications": [],
      "customer_id": 123,
      "vendor_id": 123,
      "eliminate": true
    }
  ],
  "transaction_date": "2023-12-25",
  "memo": "",
  "record_status": "posted",
  "attachments": []
}
'
import requests

url = "https://api.dualentry.com/public/v2/intercompany-journal-entries/"

payload = {
"date": "2023-12-25",
"exchange_rate": 123,
"items": [
{
"company_id": 123,
"account_number": 123,
"debit": 123,
"credit": 123,
"memo": "<string>",
"position": 123,
"id": 123,
"classifications": [],
"customer_id": 123,
"vendor_id": 123,
"eliminate": True
}
],
"transaction_date": "2023-12-25",
"memo": "",
"record_status": "posted",
"attachments": []
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date: '2023-12-25',
exchange_rate: 123,
items: [
{
company_id: 123,
account_number: 123,
debit: 123,
credit: 123,
memo: '<string>',
position: 123,
id: 123,
classifications: [],
customer_id: 123,
vendor_id: 123,
eliminate: true
}
],
transaction_date: '2023-12-25',
memo: '',
record_status: 'posted',
attachments: []
})
};

fetch('https://api.dualentry.com/public/v2/intercompany-journal-entries/', 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.dualentry.com/public/v2/intercompany-journal-entries/",
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([
'date' => '2023-12-25',
'exchange_rate' => 123,
'items' => [
[
'company_id' => 123,
'account_number' => 123,
'debit' => 123,
'credit' => 123,
'memo' => '<string>',
'position' => 123,
'id' => 123,
'classifications' => [

],
'customer_id' => 123,
'vendor_id' => 123,
'eliminate' => true
]
],
'transaction_date' => '2023-12-25',
'memo' => '',
'record_status' => 'posted',
'attachments' => [

]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);

$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.dualentry.com/public/v2/intercompany-journal-entries/"

payload := strings.NewReader("{\n \"date\": \"2023-12-25\",\n \"exchange_rate\": 123,\n \"items\": [\n {\n \"company_id\": 123,\n \"account_number\": 123,\n \"debit\": 123,\n \"credit\": 123,\n \"memo\": \"<string>\",\n \"position\": 123,\n \"id\": 123,\n \"classifications\": [],\n \"customer_id\": 123,\n \"vendor_id\": 123,\n \"eliminate\": true\n }\n ],\n \"transaction_date\": \"2023-12-25\",\n \"memo\": \"\",\n \"record_status\": \"posted\",\n \"attachments\": []\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-KEY", "<api-key>")
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.dualentry.com/public/v2/intercompany-journal-entries/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"date\": \"2023-12-25\",\n \"exchange_rate\": 123,\n \"items\": [\n {\n \"company_id\": 123,\n \"account_number\": 123,\n \"debit\": 123,\n \"credit\": 123,\n \"memo\": \"<string>\",\n \"position\": 123,\n \"id\": 123,\n \"classifications\": [],\n \"customer_id\": 123,\n \"vendor_id\": 123,\n \"eliminate\": true\n }\n ],\n \"transaction_date\": \"2023-12-25\",\n \"memo\": \"\",\n \"record_status\": \"posted\",\n \"attachments\": []\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.dualentry.com/public/v2/intercompany-journal-entries/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"date\": \"2023-12-25\",\n \"exchange_rate\": 123,\n \"items\": [\n {\n \"company_id\": 123,\n \"account_number\": 123,\n \"debit\": 123,\n \"credit\": 123,\n \"memo\": \"<string>\",\n \"position\": 123,\n \"id\": 123,\n \"classifications\": [],\n \"customer_id\": 123,\n \"vendor_id\": 123,\n \"eliminate\": true\n }\n ],\n \"transaction_date\": \"2023-12-25\",\n \"memo\": \"\",\n \"record_status\": \"posted\",\n \"attachments\": []\n}"

response = http.request(request)
puts response.read_body
{
  "record_number": 123,
  "date": "2023-12-25",
  "transaction_date": "2023-12-25",
  "memo": "<string>",
  "exchange_rate": "<string>",
  "items": [
    {
      "id": 123,
      "company_id": 123,
      "company_name": "<string>",
      "account_number": 123,
      "debit": "<string>",
      "credit": "<string>",
      "memo": "<string>",
      "position": 123,
      "eliminate": true,
      "classifications": [],
      "customer_id": 123,
      "customer_name": "<string>",
      "vendor_id": 123,
      "vendor_name": "<string>"
    }
  ],
  "companies": [
    {
      "id": 123,
      "name": "<string>"
    }
  ],
  "company_ids": [
    123
  ],
  "attachments": [],
  "approval_status": "<string>",
  "next_approvers": [
    {
      "id": 123,
      "first_name": "<string>",
      "last_name": "<string>",
      "email": "<string>",
      "full_name": "<string>",
      "avatar_url": "<string>"
    }
  ],
  "rejected_by": {
    "id": 123,
    "first_name": "<string>",
    "last_name": "<string>",
    "email": "<string>",
    "full_name": "<string>",
    "rejection_reason": "<string>"
  }
}
{
"errors": {},
"success": false
}
{
"errors": {},
"success": false
}
{
"errors": {},
"success": false
}
{
"errors": {},
"success": false
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Input schema for creating / updating an intercompany journal entry.

date
string<date>
required
currency_iso_4217_code
enum<string>
required
Available options:
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
BWP,
BYN,
BZD,
CAD,
CDF,
CHF,
CLF,
CLP,
CNY,
COP,
CRC,
CUP,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
ERN,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LYD,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRU,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
STN,
SVC,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VES,
VND,
VUV,
WST,
XAF,
XAG,
XAU,
XCD,
XDR,
XOF,
XPD,
XPF,
XPT,
YER,
ZAR,
ZMW,
ZWL
exchange_rate
required
items
PublicIJEItemIn · object[]
required
transaction_date
string<date> | null
memo
string
default:""
record_status
enum<string>
default:posted
Available options:
draft,
posted,
archived
attachments
AttachmentSchemaOut · object[]

Response

OK

Full output schema for a single intercompany journal entry.

record_number
integer
required
date
string<date>
required
transaction_date
string<date>
required
memo
string
required
currency_iso_4217_code
enum<string>
required
Available options:
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
BWP,
BYN,
BZD,
CAD,
CDF,
CHF,
CLF,
CLP,
CNY,
COP,
CRC,
CUP,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
ERN,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LYD,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRU,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
STN,
SVC,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VES,
VND,
VUV,
WST,
XAF,
XAG,
XAU,
XCD,
XDR,
XOF,
XPD,
XPF,
XPT,
YER,
ZAR,
ZMW,
ZWL
exchange_rate
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,16}0*$
record_status
enum<string>
required
Available options:
draft,
posted,
archived
items
PublicIJEItemOut · object[]
required
companies
PublicIJECompanySchemaOut · object[]
required
company_ids
integer[]
required
attachments
PublicAttachmentSchemaOut · object[]
approval_status
string | null
next_approvers
ApproverDictSchema · object[] | null
rejected_by
RejectedBySchema · object | null

Schema for rejector information including rejection reason.

Last modified on July 13, 2026