Add & remove Fees
💸 Assigning and Removing Fee Rules from an Identity
identity
. This fee will be applied automatically when the identity participates in a transaction of a specific type (e.g. P2P
, PURCHASE
, etc.).transactionType
is executed.âž• Add Fee Rule to Identity
Endpoint
POST /identities/{identityId}/fees
Example Request
{
"type": "PERCENTAGE",
"transactionType": "P2P",
"amount": "10.00",
"currency": "USD",
"description": "Fee por servicio",
"name": "SERVICE FEE"
}
Request Parameters
Field | Description |
---|---|
type | Type of fee: PERCENTAGE or FIXED . |
transactionType | The transaction type where the fee will be applied (e.g. P2P , PURCHASE ). |
amount | The fee value: "10.00" means 10% if type is PERCENTAGE , or 10 units if type is FIXED . |
currency | Required only if type is FIXED . |
description | A label or explanation for the fee rule. |
name | Internal name of the rule. Used for identifying and deleting later. |
Example Response
{
"type": "ORGANIZATION",
"name": "Operator Cabify 8",
"nickname": "Op Cabify 8",
"email": "operatorCabify8@example.com",
"phone": "+5693111118",
"documentType": "RUT",
"documentNumber": "77723128-K",
"idv": "iv-43128",
"country": "CHL",
"securityOptions": {
"twoFactorEnabled": false
},
"bankAccount": {
"accountNumber": "123456",
"typeAccount": "BANK_ACCOUNT",
"userDni":"18782721-3",
"countryCode": "CHL",
"currency": "CLP",
"accountHolder": "TOMAS GOMEZ"
},
"children": [],
"rules": [
{
"id": "67f493c6c7201a42e4c3deaa",
"type": "PERCENTAGE",
"transactionType": "P2P",
"amount": "10.00",
"currency": "USD",
"description": "Fee por servicio",
"name": "SERVICE FEE"
}
]
}
âž– Remove Fee Rule from Identity
Endpoint
DELETE /identities/{identityId}/fees/{ruleId}
Just need the ruleId.
Example Response
{
"type": "ORGANIZATION",
"name": "Operator Cabify 8",
"nickname": "Op Cabify 8",
"email": "operatorCabify8@example.com",
"phone": "+5693111118",
"documentType": "RUT",
"documentNumber": "77723128-K",
"idv": "iv-43128",
"country": "CHL",
"securityOptions": {
"twoFactorEnabled": false
},
"bankAccount": {
"accountNumber": "123456",
"typeAccount": "BANK_ACCOUNT",
"userDni":"18782721-3",
"countryCode": "CHL",
"currency": "CLP",
"accountHolder": "TOMAS GOMEZ"
},
"children": [],
"rules": []
}
✅ Notes
transactionType
during processing./fees/{ruleId}
) will be deleted per call.Modified at 2025-04-22 20:28:07