Preview Financial Line Backfill
POST/api/faire/instances/:integrationInstance/financial-line-overrides/preview-backfill
Preview how many past Faire-imported FinancialLine rows would be re-keyed if the supplied override map were applied. Does not modify any data.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Request Body:
overrides(object, required) - Same shape as thefinancial_line_type_overridesfield on the update endpoint. Each branch is optional; passnullto indicate "no override" for that branch.commission(int|null) - FinancialLineType ID, must be acosttype when supplied.payout_fee(int|null) - FinancialLineType ID, must be acosttype when supplied.payout_protection_fee(int|null) - FinancialLineType ID, must be acosttype when supplied.damaged_and_missing_items(int|null) - FinancialLineType ID, must be acosttype when supplied.covered_shipping(int|null) - FinancialLineType ID, must be arevenuetype when supplied.
Validation:
Classification mismatch returns 422 with errors.overrides.<branch> — same guard as the update endpoint.
Use case: The Faire settings UI calls this when the user changes any override and presses Save, so the confirmation modal can show "X record(s) will be backfilled" before they decide whether to run the backfill or just save the new override forward.
Response:
Returns a { commission, payout_fee, payout_protection_fee, damaged_and_missing_items, covered_shipping, total } object. Each number is the count of past Faire FinancialLine rows that would be re-keyed for that branch under the supplied overrides; total is their sum. Branches not present in the overrides map (or sent as null) report 0.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.