Penalty
Simulate penalty
Simulate the penalty applied to a specified withdrawal on a given date. The operation is read‑only and does not modify any data.
Use this endpoint to preview penalty fees before making an actual withdrawal.
The simulation evaluates all penalty rules configured in the product, including:
-
Early withdrawal penalties
-
Grace period penalties
-
Tiered interest forfeiture penalties
-
Withdrawal fees
-
Subsequent withdrawal penalties
Notes:
- withdrawal_date must be the current date (UTC); past and future dates are rejected.
- A withdrawal date inside the cool‑off period, or an inactive penalty record, returns penalty_amount: 0 and net_amount = gross_amount, with penalty_rule_applied, penalty_breakdown and currency omitted.
- The account balance comes from Get transaction banking account balance: book_balance for DEPOSIT_BASIS products, or the balance_type balance for BALANCE_BASIS products. When withdrawal_amount is omitted, the account balance is used as the withdrawal amount. withdrawal_amount cannot exceed the account balance.
- gross_amount reflects the account's resolved balance until a capitalization total record becomes available.
post/v1/deposits/accounts/{accountId}/penalty-simulation
Request
- Base URLhttps://sandbox.pismolabs.io/savings-products
- URLhttps://sandbox.pismolabs.io/savings-products/v1/deposits/accounts/{accountId}/penalty-simulation
- AuthHTTP bearer
Path parameters
accountIdstring required
Account ID. Accepts either the Pismo account_id or your external_account_id. Send the same ID used to generate the access token.
Request body
Example request
{
"withdrawal_date": "2026-06-19T00:00:00Z",
"withdrawal_amount": 5000
}Response
Simulation completed successfully
Example response
{
"external_account_id": "a4070788-bbe3-4127-8abc-123456789012",
"withdrawal_amount": 40667.17,
"withdrawal_date": "2026-06-19T00:00:00Z",
"penalty_rule_applied": [
{
"type": "PERCENTAGE",
"value": 2.5,
"description": "EARLY_WITHDRAWAL_AFTER_OPENING"
}
],
"penalty_amount": 1066.68,
"penalty_breakdown": {
"fixed_amount": 50,
"percentage_amount": 1016.68
},
"currency": "BRL",
"gross_amount": 41334.34,
"interest_earned_amount": 667.17,
"net_amount": 40267.66,
"simulation_timestamp": "2026-06-19T19:22:55Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.