Automatic Charges
Access Prerequisites
- Permission (module):
processPaymentQueue - License/Feature: None specific.
- Menu container: GENERAL → Charges group (route
/automated-recurrences)
What it is / When to use
Automatic Charges are charge templates that recur perpetually by day of the month — with no end date. While the User Charge Registration screen defines a debit with a start and end date and generates installments month by month, here the operator defines a recurring template (description, currency, amount, and the day of charge) that remains valid indefinitely, until deleted.
Use it for ongoing fees and subscriptions that have no defined term. Each template stays active (is_active = true) and is applied on the configured day of each month.
Prerequisites
- Permission:
processPaymentQueueregistered for the operator's role (dual permission — CPM enum in the backend + dynamic module in the DB). - License/Feature: None specific.
- Dependencies on other screens: the debit is applied against the user's balance; the target customer must be
APPROVED.
Step by step
- Go to Charges → Automatic Charges (route
/automated-recurrences). - The listing shows the registered templates with Description, Amount, Currency, and Day.
- Click Create new charge to open the modal.
- Fill in Description, Currency, Amount, and Day (1 to 31), then confirm with Save.
- To remove a template, click the trash icon on that row.
Fields (registration modal)
| Field | What it is | Required? | System/backend effect |
|---|---|---|---|
| Description | Text that identifies the charge and appears on the statement | Yes | Saves description in automated_recurrently_charges (FMS). |
| Currency | Symbol of the charge currency (e.g.: BRL, token) | Yes | Saves unit_of_money_requested. As with other charges, BRL routes the debit through the digital account; other symbols through the crypto wallet. |
| Amount | Amount to debit each cycle | Yes (> 0) | Saves amount_requested (numeric column). Treated as BigNumber during processing. |
| Day | Day of the month on which the charge is applied | Yes (integer 1–31) | Saves day. Defines the recurring monthly due date. The modal validates that the value is an integer between 1 and 31. |
The
is_activefield is automatically set totrueon save — there is no toggle on the screen. To "disable" a charge, delete the template.
Actions and modals
- Create new charge: opens the
AutomatedRecurrencyModalComponentmodal. Save is only enabled when description, currency, amount (> 0), and day (1–31) are all valid. - Save: sends a
POST /v1/automated-recurrently/createrequest. On success, the list is reloaded. - Delete (trash): calls
POST /v1/automated-recurrently/deletewith therecurrencyId. After confirmation the page is reloaded.
Business rules / Cautions
Attention
- Automatic Charges have no end date — they remain active until deleted. Review the list periodically to avoid undue debits.
- The Currency determines the rail (digital account for
BRL, wallet for token). Double-check the symbol. - The Day must exist in the month; short months may require care when choosing 29/30/31.
- Financial values: treated as BigNumber — no rounding.
- Idempotency: the application of each cycle follows the idempotent pattern of FinLib —
E00021("already processed") is a success, not an error. - APPROVED status: the target user must be approved for the debit to be executed.