Skip to main content
PUT
Update allocation schedule

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
company_id
integer
required
name
string
required
allocation_type
enum<string>
required
Available options:
percentage,
fixed,
statistical
frequency
enum<string>
required
Available options:
monthly,
quarterly,
semi_annually,
annually,
one_time
start_date
string<date>
required
source_account_id
integer | null
statistical_account_id
integer | null
statistical_driver_period
string<date> | null
source_type
enum<string>
default:account
Available options:
account,
transaction
source_transaction_mode
enum<string>
default:undefined
Available options:
undefined,
batch,
per_line
source_transaction_type
enum<string> | null
Available options:
direct_expense,
bill,
vendor_credit,
journal_entry,
intercompany_journal_entry
source_transaction_id
integer | null
source_transaction_line_ids
integer[]
end_date
string<date> | null
memo
string
default:""
status
enum<string>
default:active
Available options:
active,
inactive,
draft,
archived
is_active
boolean
default:true
source_classifications
AllocationScheduleClassificationIn · object[]
allocation_schedule_source_lines
AllocationScheduleSourceLineCreateSchemaIn · object[]
allocation_schedule_lines
AllocationScheduleLineCreateSchemaIn · object[]

Response

OK

id
integer
required
number
integer
required
name
string
required
allocation_type
enum<string>
required
Available options:
percentage,
fixed,
statistical
frequency
enum<string>
required
Available options:
monthly,
quarterly,
semi_annually,
annually,
one_time
status
enum<string>
required
Available options:
active,
inactive,
draft,
archived
source_type
enum<string>
required
Available options:
account,
transaction
source_transaction_mode
enum<string>
required
Available options:
undefined,
batch,
per_line
company_id
integer
required
company_name
string
required
source_account_id
integer | null
required
source_lines
AllocationScheduleSourceLineSchemaOut · object[]
required
source_classifications
AllocationScheduleSourceClassificationSchemaOut · object[]
required
allocation_schedule_lines
AllocationScheduleLineSchemaOut · object[]
required
last_allocation_journal_date
string<date> | null
required
has_allocation_journals
boolean
required
start_date
string<date>
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
source_transaction_type
enum<string> | null
Available options:
direct_expense,
bill,
vendor_credit,
journal_entry,
intercompany_journal_entry
source_transaction_id
integer | null
source_transaction_line_ids
integer[]
statistical_account_id
integer | null
statistical_account_name
string | null
statistical_account_number
integer | null
source_account_name
string | null
source_account_number
integer | null
end_date
string<date> | null
statistical_driver_period
string<date> | null
memo
string | null
default:""
Maximum string length: 512
is_active
boolean
default:true