Close day

Overview

For some processors, funds are transferred to the bank account only after the Close Day procedure, which initiates bank clearing.

Close Day procedure can be initiated via API, manually with “Close Day” button on the Gate level, or automatically each day at pre-set or system selected time. If for any reason it is not possible to make “Close Day” using via API, then it is necessary to perform “Close Day” procedure manually on the Gate level.

Warning

During the Close Day procedure the following gate will be blocked and transactions will not go through it.

Manual day closure


In order to perform Close Day procedure, go to Settings -> Configuration -> Gates:

gatesteps

gatesteps1

On the gate details page, click the Close day button and confirm this action on the pop-up window. The window “Close day for ‘gate name’” will appear on the page. Wait for the operation to complete:

closedaybutton

After the successful day closure, the gate details page will display the day closing date and the amount of transactions from the last to the current day closing date:

lastday

Automatic day closure


In order to perform Close Day automatically, go to Settings -> Configuration -> Gates:

gatesteps

gatesteps1

On the gate details page, click the Edit button, mark Automatic closing of the day and click Save. The optimal Close Day time is selected by the system automatically (UTC+3):

autoclosure

After each successful day closure, the gate details page will display the day closing date and the amount of transactions from the last to the current day closing date:

lastday

Automatic scheduled day closure


In order to perform Close Day automatically at pre-set time, go to Settings -> Configuration -> Gates:

gatesteps gatesteps1

On the gate details page, click the Edit button and mark Close day automatically. After that Close day time row. Select the preferred close day time and then click Save. Please note, that Automatic closing of the day checkbox must be turned off, otherwise the gate closing time will be selected automatically by the system:

autoclosepreset

After each successful day closure, the gate details page will display the day closing date and the amount of transactions from the last to the current day closing date:

lastdaytime

Allow closing day via API

In order to allow this procedure via API, go to Settings -> Configuration -> Gates:
gatesteps gatesteps1
On the gate details page, click the Edit button, mark Allow closing day via API. The number of days after which the Close Day will be triggered automatically can be set in the Day closing maximum delay (days) (3 days is automatically set) then click Save:
closeday_via_api

Gate Lock Release Tool

If during the gate closure via API one or more Gates remained blocked (in the body of the response with status: finished for Gate - isDayClosing : true), then removal of the lock can be done manually. In order to make this procedure go to Settings -> Configuration -> Gates:

gatesteps

gatesteps1

On the Gate details page tap on Locks:

gatelock
The current Gate lock information is displayed in the “Current locks” menu:
  • Lock session ID - ID of the lock session.

  • Start day closing date - the start date of the Close Day.

  • Bank terminal lock status- blocking the Endpoint for performing transactions (Blocked/Free).

  • Initial gate job status - the status of the initialization Gate.

  • Close day job status - the status of the closing Gate.

  • Is day closing - the Gate is in the closing stage which means that is it locked or not (Y/N). Y - the Gate is blocked, N - not blocked.

The following unlock commands are available:

  • CLEAR_TRANSACTION_LOCK - reset the session that caused the lock.

  • CLEAR_INIT_ATTEMPT- reset the status of the initialization Gate.

  • CLEAR_CLOSING_DAY_ATTEMPTS - reset the status of the closing Gate.

  • CLEAR_CLOSING_DAY_FLAG - reset the assignment of the closing Gate, remove the lock.

Mark the applicable menu checkbox and click the Update button.

After the unlock, re-open the Gate Lock Release Tool and check that the status of the lock parameter has changed in the “Current locks” menu. For example, if the Gate was blocked, then after removing the lock, the parameter equals to Is day closing = N.

closedaylock