Skip to main content

Get Purge Pre-Start Preflight for Financial Event Groups

GET 

/api/amazon/unified/financial-event-groups/purge-pre-start/preflight

Dry run of the purge-pre-start action: lists the Amazon financial event groups whose settlement period starts BEFORE the account's inventory start date. These are historical records that will never have matching settlement reports imported. No changes are made.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

The response contains:

  • purged - the number of groups that WOULD be deleted (dry-run count).
  • groups - details for each group: internal id, Amazon group_id, integration name, period start_date (ISO 8601), and how many settlement data rows and accounting transactions it currently has.
  • inventory_start_date - the account's inventory start date (ISO 8601, UTC) used as the cutoff.
  • dry_run - always true for this endpoint.

Query parameters:

  • integration_instance_ids (optional) - comma-separated integration instance IDs to scope the preview.

Request

Responses

OK

Response Headers
    Content-Type