Skip to main content
POST
Run allocation schedule
Send period_start_date and period_end_date. This also posts a one-time schedule. A destination company that differs from the schedule company gets the intercompany legs. A schedule run does not create elimination. Side effects
  • Run posts one allocation journal for the period you send.
  • A destination company that differs from the schedule company gets intercompany legs. A schedule run does not create elimination.
Additional validations
  • The schedule company, each destination company, and each source record must be companies you can access.

Authorizations

Authorization
string
header
required

An access token from the DualEntry authorization server, sent as Authorization: Bearer <token>. The token acts as the user who signed in, with that user's roles and company access. Do not send an X-API-KEY header in the same request.

Headers

Idempotency-Key
string

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: 255

Path Parameters

allocation_schedule_id
integer
required

Body

application/json
period_start_date
string<date>
required
period_end_date
string<date>
required

Response

OK

book_ids
integer[]
required
id
integer
required
number
integer
required
allocation_schedule_id
integer | null
required
company_id
integer
required
company_name
string
required
company_currency
string
required
source_account_id
integer | null
required
amount_allocated
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
source_amount_debited
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
source_amount_credited
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
transaction_ids
integer[]
required
record_status
enum<string>
required
Available options:
draft,
posted,
archived
date
string<date>
required
transaction_date
string<date>
required
amount
string
required

The absolute amount of the main transaction

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
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*$
memo
string
required
period_start_date
string<date>
required
period_end_date
string<date>
required
source_classifications
AllocationJournalSourceClassificationSchemaOut · object[]
required
items
AllocationJournalLineSchemaOut · object[]
required
extra_items
AllocationJournalLineSchemaOut · object[]
required
code
string | null
allocation_schedule_number
integer | null
allocation_schedule_name
string | null
source_account_name
string | null
source_account_number
integer | null
attachments
AttachmentSchemaOut · object[]