Track Merchant Closures and Status Changes


What's new?

Close reasons record why a submerchant was closed. This update includes the following changes:

  • Modified date: The modifiedDate field, shown as the Updated Date in Backoffice, now updates each time a change to the submerchant is saved, whether the change is made in Backoffice, through the API, or by an automatic system process such as an automatic hold. This includes changes to the submerchant's status, details, contacts, bank accounts, identifiers, fee profile, and risk exception parameters, as well as holds and releases.
  • Closure details: Closed submerchants return their Cancelled Date, close reason, and close notes, and the submerchant lists can be filtered by when and why submerchants closed.
  • Close reasons: New endpoints manage the tenant's close reasons, and Disable a Submerchant and Update Submerchant Information accept a close reason and notes when closing a submerchant.
  • Closed Accounts export: A new endpoint emails a download link for an export of closed accounts.
  • Status change webhook: The Submerchant Status Changed webhook reports every status change.
  • Closed submerchant funding: Funding is not released for closed submerchants. See Closed submerchant behavior below.

New endpoints

EndpointPurpose
GET Review Close ReasonsList the tenant's close reasons, optionally including deactivated ones.
GET Review a Close Reason by IDReturn one close reason.
POST Create a Close ReasonAdd a close reason to the tenant's list.
PUT Update a Close ReasonChange the text of a close reason.
DELETE Deactivate a Close ReasonStop a close reason from being used for new closures.
POST Reactivate a Close ReasonMake a deactivated close reason available again.
POST Generate a Closed Accounts ExportEmail a download link for a file of closed submerchants, optionally filtered by closing date and close reason.

Updated elements

ElementChange
closeReasonId and closeNotes query parametersThe close reason and notes are recorded with the closure. closeReasonId is required when the tenant's Require Close Reason option is on.
X-Initiated-By headerIdentifies the user or system that closed or reopened the submerchant, and defaults to "API User".
Disable a SubmerchantReturns 404 when the submerchant does not exist.
Submerchant objectNew closeReasonId, closeReasonText, and closeNotes fields. These fields return as null when no reason was recorded, including for submerchants closed before close reasons were available.

terminationDate holds the Cancelled Date. It is set when the submerchant first closes, kept when the submerchant moves from one closed status to another, and cleared when the submerchant reopens.

modifiedDate updates whenever the submerchant changes, through the API or in Backoffice.
Submerchant filterNew CancelledDateFilter, CancelledFromDate, CancelledToDate, CancelledSpecificDate, and CloseReasonId parameters.
BackofficeWebhookType enumNew value: 10 = SubmerchantStatusChanged, which subscribes to the Submerchant Status Changed webhook.

Closed submerchant behavior

A closed submerchant has the Canceled, CancelledWithProcessor, or Deleted status. Funding for a closed submerchant can be released after the submerchant is reopened.

Example workflow: Close a Submerchant with a Reason

Submerchant 4821 is closing because the owner retired.

  • Find: Call GET /close-reasons. Close reason 1 is "Business closed / ceased operations".
  • Close: Send DELETE /merchant/4821 with closeReasonId=1, a closeNotes value, and an X-Initiated-By header. The response returns a commandFingerprint.
  • Confirm: Call GET /merchant/4821. The submerchant returns with accountStatus set to Canceled, a terminationDate, closeReasonId set to 1, and the closeReasonText and closeNotes recorded with the closure. Subscribers to the Submerchant Status Changed webhook receive a Cancelled event.

To close several submerchants at once, send one closing request per submerchant, repeating the Close step for each one.

Additional resources

See Track Merchant Closures and Status Changes for details on close reasons, the Cancelled Date, and the Closed Accounts export directly within the Backoffice web interface.