200Successful Response
Schema: SuccessEnvelope_ArSubledgerBackfillResponse_
successbooleanmessagestringcodestringdataArSubledgerBackfillResponse
/api/v1/ar/subledgers/backfillMove historical invoice, payment and credit-memo journal lines from Accounts Receivable onto each customer's 'AR - <name>' sub-ledger by updating the original line. Dry run by default.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: ArSubledgerBackfillRequest
dry_runbooleanPreview only (default). Reports which lines would move, which 'AR - X' ledgers would be adopted or created, and what is skipped — nothing is written.
include_closed_periodsbooleanAlso rewrite lines dated in a closed or locked accounting period. The move stays inside Accounts Receivable, so the AR total for the period is unchanged, but per-ledger balances change.
create_missingbooleanCreate an 'AR - <Customer Name>' sub-ledger for customers that have none yet. When false, only customers with an existing (or adoptable) sub-ledger are moved.
Schema: SuccessEnvelope_ArSubledgerBackfillResponse_
successbooleanmessagestringcodestringdataArSubledgerBackfillResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.