Create allocation schedule
Create an allocation schedule. This save does not post a journal. Call run with the period start and end to post it. For allocation_type percentage, the line percentage_amount values must total 100. Run then reads the source account balance for that period and posts each share. For allocation_type fixed or statistical, run posts each line fixed_amount. A statistical schedule stores statistical_account_id and exactly one source line. DualEntry does not read statistical journals again when you create or run the schedule. Send the amounts you want to post.
Additional validations
- For
allocation_typepercentage, the linepercentage_amountvalues must total 100. - For
allocation_typestatistical, sendsource_typetransaction, exactly one source line, and thefixed_amountto post on each line. - The schedule company, each destination company, and each source record must be companies you can access.
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.
255Body
Response
Created