curl --request PATCH \
--url https://api-sandbox.rinne.com.br/core/v1/pricing/fee-policies/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "updated-fee-policy",
"is_active": false
}
'
{
"id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793",
"name": "standard-card-fees",
"description": "Standard fee structure for card transactions",
"is_active": true,
"cashout_price": 350,
"automatic_anticipation_percentage": 2.4999,
"spot_anticipation_percentage": 2.4999,
"organization_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2794",
"rules": [
{
"conditions": [
{
"field": "transaction.card_data.brand",
"operator": "EQUALS",
"value": "CREDIT_CARD"
}
],
"price": {
"percentage": 2.5,
"flat": 50,
"minimum_price": 100
},
"priority": 1,
"id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Pricing
Update a fee policy
Requires the fee_policy.edit permission.
Update an existing fee policy for the authenticated company. All fields are optional, allowing partial updates. The fee policy must belong to the authenticated company.
Rule Update Behavior:
- Rules with IDs: Updates those specific rules while preserving unmentioned rules
- Rules without IDs: Creates new rules and adds them to the policy
- Rules not mentioned: Remain unchanged and preserved
- When updating a rule’s conditions, conditions for that rule are replaced (not merged)
PATCH
/
v1
/
pricing
/
fee-policies
/
{id}
curl --request PATCH \
--url https://api-sandbox.rinne.com.br/core/v1/pricing/fee-policies/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "updated-fee-policy",
"is_active": false
}
'
{
"id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793",
"name": "standard-card-fees",
"description": "Standard fee structure for card transactions",
"is_active": true,
"cashout_price": 350,
"automatic_anticipation_percentage": 2.4999,
"spot_anticipation_percentage": 2.4999,
"organization_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2794",
"rules": [
{
"conditions": [
{
"field": "transaction.card_data.brand",
"operator": "EQUALS",
"value": "CREDIT_CARD"
}
],
"price": {
"percentage": 2.5,
"flat": 50,
"minimum_price": 100
},
"priority": 1,
"id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Body
application/json
Fee policy update request. All fields are optional. Rules can be selectively updated by including their ID, or new rules can be added by omitting the ID.
Response
Fee policy updated successfully
Fee policy response

