v1
latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MBPenalty
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:
- A withdrawal date inside the cool‑off period results in no penalties
- If withdrawal_amount is omitted, the Pismo platform fetches the current book balance from Get transaction banking account balance.
- If withdrawal_amount is provided, the balance cannot exceed the current book balance.
post/v1/deposits/accounts/{accountId}/penalty-simulation
Path parameters
accountIdinteger required
Account ID
Headers
AuthorizationTokenstring required
Account token. Token encoded with a Pismo account ID. Tokens can expire quickly, which can result in a 401 Unauthorized error.
Request body
Example request
{
"withdrawal_amount": 5000,
"withdrawal_date": "2026-06-15T00:00:00Z"
}Response
Simulation completed successfully
Example response
{
"withdrawal_amount": 40667.17,
"withdrawal_date": "2026-12-15T00:00:00Z",
"penalty_rule_applied": [
{
"type": "percentage",
"value": 2.5,
"description": "Early withdrawal after opening penalty"
}
],
"penalty_amount": 231.75,
"penalty_breakdown": {
"fixed_amount": 50,
"percentage_amount": 75.5
},
"currency": "BRL",
"gross_amount": 41329.34,
"interest_earned_amount": 667.17,
"net_amount": 41097.59,
"simulation_timestamp": "2026-06-19T19:22:55Z"
}