Fee Engine Error List

The Fee Engine returns consistent and structured error responses. This helps you quickly understand what went wrong and how to fix it.

Error Format

{  
   "code": "<error_code>",  
   "title": "<error_title>",  
   "message": "<error_message>"  
}

Field Definitions

  • code – A stable, unique identifier for the error. Useful for programmatic handling and support requests.
  • title – A short, human-readable summary of the issue.
  • message – Detailed guidance to help you resolve the error.

This structure ensures you always get actionable feedback when something doesn’t go as expected.


Fee Engine Errors


The following errors can occur when interacting with the Fee Engine endpoints. Each error follows our standard structure, making it easier to debug and respond to issues programmatically.

Refer to the table below for a list of possible error codes, what they mean, and how to resolve them.

400

CodeTitleMessage
FEE-0001Unexpected fields in the requestThe request body contains more fields than expected. Please send only the allowed fields as per the documentation. The unexpected fields are listed in the fields object.
FEE-0002Missing fields in requestYour request is missing one or more required fields. Please refer to the documentation to ensure all necessary fields are included in your request.
FEE-0003Bad requestThe server could not understand the request due to malformed syntax. Please check the listed fields and try again.
FEE-0005Calculation field type invalidThe Calculation field type is invalid. Values can only be percentage or fixed.
FEE-0006Invalid query parameterOne or more query parameters are in an incorrect format. Please check the following parameters 'parametros_erros' and ensure they meet the required format before trying again.
FEE-0007Invalid date format errorThe 'initialDate', 'finalDate', or both are in the incorrect format. Please use the 'yyyy-mm-dd' format and try again.
FEE-0008Invalid final date errorThe 'finalDate' cannot be earlier than the 'initialDate'. Please verify the dates and try again.
FEE-0009Date range exceeds limit errorThe range between 'initialDate' and 'finalDate' exceeds the permitted limit of %v months. Please adjust the dates and try again.
FEE-0010Invalid date range errorBoth 'initialDate' and 'finalDate' fields are required and must be in the 'yyyy-mm-dd' format. Please provide valid dates and try again.
FEE-0011Pagination limit exceededThe pagination limit exceeds the maximum allowed of %v items per page. Please verify the limit and try again.
FEE-0012Entity not foundNo entity was found for the given ID. Please make sure to use the correct ID for the entity you are trying to manage.
FEE-0014Account not found MidazFailed to find account on Midaz. Please check the credit account passed.
FEE-0015minimumAmount greater than maximumAmountminimumAmount value is greater than maximumAmount.
FEE-0016Invalid path parameterPath parameters is in an incorrect format. Please check the following parameter and ensure they meet the required format before trying again.
FEE-0018Package already existsThere is a Package with same index values for [organizationId, ledgerId, segmentId, chartOfAccounts, minimumAmount, mininumAmountScale, maximumAmount, maximumAmountScale]
FEE-0019Invalid header parameterOne or more headers parameters are in an incorrect format. Please check the following parameters and ensure they meet the required format before trying again.
FEE-0020Missing headerHeaders parameters is required. Please check the following header parameters %v and ensure they are passing the values correctly.
FEE-0022Failed to calculate feeError to make the calculation of a fee about a transaction.
FEE-0023Missing calculation modelThe calculation model is required to Fee.
FEE-0024originalAmount is required when priority is oneFor Priority equals to one, referenceAmount must be 'originalAmount' for fee.
FEE-0025Failed to apply rule: flatFee or percentualapplicationRule flatFee or percentual must have exactly 1 calculation for Fee.
FEE-0026Invalid calculation type: percentualThe calculation type percentual must be 'percentage' for Fee.
FEE-0027Invalid calculation type: flatFeeThe calculation type flatFee must be 'flat' for Fee.
FEE-0028Missing required fee fieldsAll fields of a new Fee must be filled. Please check again the payload passed.
FEE-0029Calculation field is required for feePlease fill the Calculation object correctly. All calculation fields must be filled.
FEE-0030referenceAmount is not validField reference amount must be originalAmount or afterFeesAmount.
FEE-0031Invalid applicationRuleField application rule must be maxBetweenTypes, flatFee or percentual.
FEE-0032Error Calculation Type InvalidField calculation type must be percentage or flat.
FEE-0033maximumAmount less than minimumAmountmaximumAmount value is less than minimumAmount.
FEE-0034Invalid maximumAmountScaleThe specified maximumAmountScale is not valid. It results in a maximumAmount that is less than the minimumAmount.
FEE-0035Invalid minimumAmountScaleThe specified minimumAmountScale is not valid. It results in a minimumAmount that is greater than the maximumAmount.
FEE-0036Failed to find package amount dataThe package does not contain amount data in the database.
FEE-0037Package filtering errorFailed to filter a single package by chartOfAccount, segmentID, and maximum/minimum amount. Either no package was found or multiple packages matched the criteria.
FEE-0038Package amount range overlapThe maximumAmount and minimumAmount of the new package overlap with the amount range of an existing package.
FEE-0039Invalid sort orderInvalid sort_order value. Expected 'asc' or 'desc'.
FEE-0040Error to Distribute ValuesError to try distribute the values of Send object. Please check the data passed.
FEE-0041Failed to apply rule: maxBetweenTypesapplicationRule maxBetweenTypes must have more than 1 calculation for Fee %v.
FEE-0042Invalid segmentIDThe specified segmentID is not a valid UUID. Please check the value passed.
FEE-0043Invalid ledgerIDThe specified ledgerID is not a valid UUID. Please check the value passed.
FEE-0044Unmarshalling errorinvalid value for field '%s': expected type '%s', but got '%s'.

401

CodeTitleMessage
FEE-0013Invalid fee priorityThe priority field in fees is invalid. Field can not be repeated.

403

CodeTitleMessage
FEE-0017Nothing to updateFields not passed correctly. There is nothing to update.

500

CodeTitleMessage
FEE-0004Internal Server ErrorThe server encountered an unexpected error. Please try again later or contact support.

503

CodeTitleMessage
FEE-0021Invalid transaction typeOnly one transaction type ('amount', 'share', or 'remaining') must be specified in the '%v' field for each entry. Please review your input and try again.