Replace a fee policy
Replace an existing fee policy for the authenticated company. The final state of the policy will match exactly what is provided in the request.
Concurrency Protection:
- Uses stronger isolation to prevent race conditions
- If concurrent modifications occur, one request will fail with serialization error
- Clients can retry on failure
Rule Replacement Behavior:
- Rules WITH IDs: Updated in place (ID must exist in the policy, returns 400 if not)
- Rules WITHOUT IDs: Created as new rules
- Existing rules NOT in the payload: Deleted
Key Difference from PATCH:
- PATCH preserves rules not mentioned in the request
- PUT removes rules not included in the request
To keep an existing rule, include it in the request with its ID. To remove a rule, simply omit it from the request. To add a new rule, include it without an ID.
Documentation Index
Fetch the complete documentation index at: https://docs.rinne.com.br/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Company API key for authentication
Path Parameters
The ID of the fee policy to replace
Body
Fee policy replacement request. The final state of the policy will match exactly what is provided.
Concurrency protection:
- Uses RepeatableRead isolation to prevent race conditions
- No client-side tracking required
Rule handling:
- Rules WITH id: Updated (id must exist, returns 400 if invalid)
- Rules WITHOUT id: Created as new
- Existing rules NOT in payload: Deleted
Policy name (alphanumeric, underscores, hyphens only)
1 - 100^[a-zA-Z0-9_-]+$"standard-card-fees"
Whether the policy is active
true
Cashout price in cents (fixed fee for cashout operations)
x >= 0350
Monthly anticipation rate as a percentage (up to 4 decimal places)
0 <= x <= 100Must be a multiple of 0.00012.4999
Monthly anticipation rate as a percentage (up to 4 decimal places)
0 <= x <= 100Must be a multiple of 0.00012.4999
Complete list of rules for the policy. Rules with IDs are updated, rules without IDs are created, and existing rules not in the payload are deleted.
1Optional policy description
500"Standard fee structure for card transactions"
Response
Fee policy replaced successfully
Fee policy response
Policy ID
"a3dbd0c2-9f79-4f86-8caa-47779b3f2793"
"standard-card-fees"
"Standard fee structure for card transactions"
true
Cashout price in cents (fixed fee for cashout operations)
350
Monthly anticipation rate as a percentage (up to 4 decimal places)
0 <= x <= 100Must be a multiple of 0.00012.4999
Monthly anticipation rate as a percentage (up to 4 decimal places)
0 <= x <= 100Must be a multiple of 0.00012.4999
Organization company ID
"a3dbd0c2-9f79-4f86-8caa-47779b3f2794"

