patch https://api-sandbox.pismolabs.io/bank-statements/v1/account-balances/history/config/
Updates the account balance history configuration for a division code.
If this endpoint is called when the current datetime is greater than cycle_config_validity.start
, the new configuration is valid only after the two-cycle closing date.
Example:
- division timezone: UTC
- Update account balance history configuration called at:
2023-05-01T18:00:00Z
- current cycle closing time: 22:00:00
- current cycle closing date: 2023-04-30 (from
2023-04-30T22:00:00Z
to2023-05-01T22:00:00Z
) - cycle config validity start datetime of the new config:
2023-05-02T22:00:00Z
- current config stays valid until
2023-05-02T22:00:00Z
If this endpoint is called when the current datetime is less than or equal to cycle_config_validity.start
of the most recent configuration, the new configuration overrides the the most recent configuration.
Example:
- division timezone: UTC
- Update account balance history configuration called at:
2023-05-01T19:00:00Z
- cycle config validity start datetime of the most recent config:
2023-05-02T22:00:00Z
- ew config overrides the most recent configuration, keeping the same cycle config validity start date:
2023-05-01T22:00:00Z
This endpoint generates an Account balance history configuration changed event.