Update StatisticalJournalV2 record
curl --request PUT \
--url https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"account_id": 123,
"date": "2023-12-25",
"memo": "",
"items": [
{
"value": 123,
"id": 123,
"company_id": 123,
"account_id": 123,
"position": 1,
"memo": "",
"classifications": [
{
"id": 123,
"line_id": 123
}
]
}
],
"attachments": [],
"record_status": "posted"
}
'import requests
url = "https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/"
payload = {
"account_id": 123,
"date": "2023-12-25",
"memo": "",
"items": [
{
"value": 123,
"id": 123,
"company_id": 123,
"account_id": 123,
"position": 1,
"memo": "",
"classifications": [
{
"id": 123,
"line_id": 123
}
]
}
],
"attachments": [],
"record_status": "posted"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: 123,
date: '2023-12-25',
memo: '',
items: [
{
value: 123,
id: 123,
company_id: 123,
account_id: 123,
position: 1,
memo: '',
classifications: [{id: 123, line_id: 123}]
}
],
attachments: [],
record_status: 'posted'
})
};
fetch('https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/', 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/v3-alpha/statistical-journals/{record_number}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'account_id' => 123,
'date' => '2023-12-25',
'memo' => '',
'items' => [
[
'value' => 123,
'id' => 123,
'company_id' => 123,
'account_id' => 123,
'position' => 1,
'memo' => '',
'classifications' => [
[
'id' => 123,
'line_id' => 123
]
]
]
],
'attachments' => [
],
'record_status' => 'posted'
]),
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/v3-alpha/statistical-journals/{record_number}/"
payload := strings.NewReader("{\n \"account_id\": 123,\n \"date\": \"2023-12-25\",\n \"memo\": \"\",\n \"items\": [\n {\n \"value\": 123,\n \"id\": 123,\n \"company_id\": 123,\n \"account_id\": 123,\n \"position\": 1,\n \"memo\": \"\",\n \"classifications\": [\n {\n \"id\": 123,\n \"line_id\": 123\n }\n ]\n }\n ],\n \"attachments\": [],\n \"record_status\": \"posted\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": 123,\n \"date\": \"2023-12-25\",\n \"memo\": \"\",\n \"items\": [\n {\n \"value\": 123,\n \"id\": 123,\n \"company_id\": 123,\n \"account_id\": 123,\n \"position\": 1,\n \"memo\": \"\",\n \"classifications\": [\n {\n \"id\": 123,\n \"line_id\": 123\n }\n ]\n }\n ],\n \"attachments\": [],\n \"record_status\": \"posted\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": 123,\n \"date\": \"2023-12-25\",\n \"memo\": \"\",\n \"items\": [\n {\n \"value\": 123,\n \"id\": 123,\n \"company_id\": 123,\n \"account_id\": 123,\n \"position\": 1,\n \"memo\": \"\",\n \"classifications\": [\n {\n \"id\": 123,\n \"line_id\": 123\n }\n ]\n }\n ],\n \"attachments\": [],\n \"record_status\": \"posted\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"number": 123,
"account_id": 123,
"account_name": "<string>",
"account_number": 123,
"period": "2023-12-25",
"date": "2023-12-25",
"memo": "<string>",
"record_status": "draft",
"total_quantity": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"attachments": [],
"items": [],
"has_more_lines": false,
"lines_count": 0
}{
"errors": {},
"success": false
}{
"errors": {},
"success": false
}{
"errors": {},
"success": false
}{
"errors": {},
"success": false
}Statistical Journals
Update StatisticalJournalV2 record
Update an existing StatisticalJournalV2 record with the provided data. Validates all required fields and business rules.
PUT
/
public
/
v3-alpha
/
statistical-journals
/
{record_number}
/
Update StatisticalJournalV2 record
curl --request PUT \
--url https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"account_id": 123,
"date": "2023-12-25",
"memo": "",
"items": [
{
"value": 123,
"id": 123,
"company_id": 123,
"account_id": 123,
"position": 1,
"memo": "",
"classifications": [
{
"id": 123,
"line_id": 123
}
]
}
],
"attachments": [],
"record_status": "posted"
}
'import requests
url = "https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/"
payload = {
"account_id": 123,
"date": "2023-12-25",
"memo": "",
"items": [
{
"value": 123,
"id": 123,
"company_id": 123,
"account_id": 123,
"position": 1,
"memo": "",
"classifications": [
{
"id": 123,
"line_id": 123
}
]
}
],
"attachments": [],
"record_status": "posted"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: 123,
date: '2023-12-25',
memo: '',
items: [
{
value: 123,
id: 123,
company_id: 123,
account_id: 123,
position: 1,
memo: '',
classifications: [{id: 123, line_id: 123}]
}
],
attachments: [],
record_status: 'posted'
})
};
fetch('https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/', 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/v3-alpha/statistical-journals/{record_number}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'account_id' => 123,
'date' => '2023-12-25',
'memo' => '',
'items' => [
[
'value' => 123,
'id' => 123,
'company_id' => 123,
'account_id' => 123,
'position' => 1,
'memo' => '',
'classifications' => [
[
'id' => 123,
'line_id' => 123
]
]
]
],
'attachments' => [
],
'record_status' => 'posted'
]),
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/v3-alpha/statistical-journals/{record_number}/"
payload := strings.NewReader("{\n \"account_id\": 123,\n \"date\": \"2023-12-25\",\n \"memo\": \"\",\n \"items\": [\n {\n \"value\": 123,\n \"id\": 123,\n \"company_id\": 123,\n \"account_id\": 123,\n \"position\": 1,\n \"memo\": \"\",\n \"classifications\": [\n {\n \"id\": 123,\n \"line_id\": 123\n }\n ]\n }\n ],\n \"attachments\": [],\n \"record_status\": \"posted\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": 123,\n \"date\": \"2023-12-25\",\n \"memo\": \"\",\n \"items\": [\n {\n \"value\": 123,\n \"id\": 123,\n \"company_id\": 123,\n \"account_id\": 123,\n \"position\": 1,\n \"memo\": \"\",\n \"classifications\": [\n {\n \"id\": 123,\n \"line_id\": 123\n }\n ]\n }\n ],\n \"attachments\": [],\n \"record_status\": \"posted\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dualentry.com/public/v3-alpha/statistical-journals/{record_number}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": 123,\n \"date\": \"2023-12-25\",\n \"memo\": \"\",\n \"items\": [\n {\n \"value\": 123,\n \"id\": 123,\n \"company_id\": 123,\n \"account_id\": 123,\n \"position\": 1,\n \"memo\": \"\",\n \"classifications\": [\n {\n \"id\": 123,\n \"line_id\": 123\n }\n ]\n }\n ],\n \"attachments\": [],\n \"record_status\": \"posted\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"number": 123,
"account_id": 123,
"account_name": "<string>",
"account_number": 123,
"period": "2023-12-25",
"date": "2023-12-25",
"memo": "<string>",
"record_status": "draft",
"total_quantity": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"attachments": [],
"items": [],
"has_more_lines": false,
"lines_count": 0
}{
"errors": {},
"success": false
}{
"errors": {},
"success": false
}{
"errors": {},
"success": false
}{
"errors": {},
"success": false
}Authorizations
Headers
Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.
Maximum string length:
255Path Parameters
The number attribute of the record.
Body
application/json
Response
OK
Available options:
draft, posted, archived Pattern:
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Date and time the record was created
Date and time the record was last updated
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Last modified on September 24, 2026
Was this page helpful?