curl --request POST \
--url https://api.stackone.com/unified/accounting/companies/{id}/journals/batch \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'x-account-id: <x-account-id>' \
--data '
{
"items": [
{
"reference": "JRN-2024-001",
"memo": "Monthly closing entries",
"currency_code": {
"value": "USD",
"source_value": "USD"
},
"exchange_rate": 1,
"transaction_date": "2024-03-20T10:00:00Z",
"lines": [
{
"account_id": "acc_123456789",
"description": "Payment for office supplies",
"amount": 10010,
"tax_rate_id": "tax_123456789",
"tax_amount": 10010
}
]
}
]
}
'{
"statusCode": 202,
"message": "Batch operation accepted",
"timestamp": "2021-01-01T01:01:01.000Z",
"errors": [
[
"Missing field: name"
],
[],
[]
]
}curl --request POST \
--url https://api.stackone.com/unified/accounting/companies/{id}/journals/batch \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'x-account-id: <x-account-id>' \
--data '
{
"items": [
{
"reference": "JRN-2024-001",
"memo": "Monthly closing entries",
"currency_code": {
"value": "USD",
"source_value": "USD"
},
"exchange_rate": 1,
"transaction_date": "2024-03-20T10:00:00Z",
"lines": [
{
"account_id": "acc_123456789",
"description": "Payment for office supplies",
"amount": 10010,
"tax_rate_id": "tax_123456789",
"tax_amount": 10010
}
]
}
]
}
'{
"statusCode": 202,
"message": "Batch operation accepted",
"timestamp": "2021-01-01T01:01:01.000Z",
"errors": [
[
"Missing field: name"
],
[],
[]
]
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
The account identifier
The batch of journals to create
Show child attributes
Reference number for the journal
"JRN-2024-001"
Memo or description for the journal
"Monthly closing entries"
Currency code for the journal and all lines
Show child attributes
Default currency for the company
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, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, 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, SSP, STN, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XDR, XOF, XPF, YER, ZAR, ZMW, ZWL, unmapped_value, "USD"
"USD"
Exchange rate to company base currency to apply to all lines
1
Date of the journal transaction
"2024-03-20T10:00:00Z"
List of journal lines
Show child attributes
ID of the ledger account this line references
"acc_123456789"
Description of the journal line
"Payment for office supplies"
Amount of the journal line in minor units, e.g. 10010 for 100.10 USD. Positive for debit, negative for credit
10010
ID of the tax rate applied
"tax_123456789"
Tax amount of the line in minor units, e.g. 10010 for 100.10 USD
10010
Was this page helpful?