Archive and Unarchive Transactions

What's new?

Six endpoints archive and unarchive transactions through the API. Archiving removes a transaction from funding and hides it from default transaction lists without deleting it, such as a transaction imported twice from the processor. Only settled transactions that have not been submitted for funding can be archived. Existing endpoints also support archived transactions through a new Archived filter, four new response fields, and two new Event Center work item types.

In Backoffice, users with the Archive Transactions permission archive transactions from the Transactions page and the Funding Process Center, and unarchive them from the Transactions page. See Manage Archived Transactions for details on managing archived transactions directly within the web interface.

New archive endpoints

ResourceEndpointPurpose
TransactionsPUT Archive a TransactionArchive a single transaction.
TransactionsPUT Unarchive a TransactionUnarchive a single transaction.
TransactionsPUT Archive Multiple TransactionsArchive a list of transactions by ID. If any listed transaction cannot be archived, none are archived.
TransactionsPUT Archive Multiple Transactions with FilteringArchive every eligible transaction that matches a filter.
TransactionsPUT Unarchive Multiple TransactionsUnarchive a list of transactions by ID.
TransactionsPUT Unarchive Multiple Transactions with FilteringUnarchive every archived transaction that matches a filter.

The optional X-Initiated-By header records who made the request; it defaults to "API User" when omitted. Unarchiving a transaction automatically changes its fundingStatus to Held. Transactions with a fundingStatus of Rejected at the time of archiving retain that status when unarchived. In both cases, onHold returns as true.

Updated endpoints

ElementChange
Archived query parameterNew filter on GET /transactions/paginated, /transactions/fundable, and /transactions/fundable/counts. Archived transactions are excluded unless requested. Archived transactions cannot be funded, so the fundable endpoints always exclude them.
Transaction objectNew fields: archived, archivedDate, archivedBy, and archiveReason.
RiskExceptionTransaction objectNew field: archived.
WorkItemType enumNew values: ArchiveTransactions and UnarchiveTransactions, returned by GET /eventcenter and GET /eventcenter/{eventId}.

Example workflow: Archive Duplicate Imports

A submerchant's transactions 125034, 125035, and 125036 were imported twice from the processor.