Pular para o conteúdo principal
Formato do erro
{
   "code": "<error_code>",
   "title": "<error_title>",
   "message": "<error_message>"
}
Definição dos campos
  • code – Um identificador único e estável para o erro. Útil para tratamento programático e solicitações de suporte.
  • title – Um resumo curto e legível do problema.
  • message – Orientação detalhada para ajudá-lo a resolver o erro.
Essa estrutura garante que você sempre receba feedback acionável quando algo não sair como esperado.

Erros do Fees Engine


Os seguintes erros podem ocorrer ao interagir com os endpoints do Fees Engine. Cada erro segue nossa estrutura padrão, facilitando a depuração e a resposta a problemas de forma programática. Consulte a tabela abaixo para uma lista de possíveis códigos de erro, o que eles significam e como resolvê-los.

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 flat.
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-0013Invalid fee priorityThe priority field in fees is invalid. Field can not be repeated.
FEE-0014Account not found on MidazFailed to find account ‘%v’ on Midaz. Please check the account alias 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-0017Nothing to updateNo updatable fields were provided. Please include at least one field to update.
FEE-0018Package already existsThere is a Package with same index values for [organizationId, ledgerId, segmentId, transactionRoute, minimumAmount, maximumAmount]
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-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.
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-0032Invalid calculation typeField calculation type must be percentage or flat.
FEE-0033maximumAmount less than minimumAmountmaximumAmount value is less than minimumAmount.
FEE-0034Package filtering errorFailed to filter a single package by transactionRoute, segmentID, and maximum/minimum amount. Either no package was found or multiple packages matched the criteria.
FEE-0035Package amount range overlapThe maximumAmount and minimumAmount of the new package overlap with the amount range of an existing package.
FEE-0036Invalid sort orderInvalid ‘sort_order’ value. Expected ‘asc’ or ‘desc’.
FEE-0037Error to distribute valuesError to try distribute the values of send object. Please check the data passed.
FEE-0038Failed to apply rule: maxBetweenTypesapplicationRule maxBetweenTypes must have more than 1 calculation for Fee %v.
FEE-0039Invalid segmentIDThe specified segmentID is not a valid UUID. Please check the value passed.
FEE-0040Invalid ledgerIDThe specified ledgerID is not a valid UUID. Please check the value passed.
FEE-0041Unmarshalling errorInvalid value for field ‘%s’: expected type ‘%s’, but got ‘%s’.
FEE-0042Error to convert valuesThe value of the field %s is invalid. Remember to use dot (.) as decimal separator instead of comma (,). Example: use 1000.50 instead of 1000,50.
FEE-0043originalAmount is required when isDeductibleFrom is trueFor isDeductibleFrom true, referenceAmount must be ‘originalAmount’ for ‘%s’.
FEE-0044applicationRule invalid valueapplicationRule is invalid, Err: %v.
FEE-0045forbidden to access MidazError to access Midaz. Please check the client credentials to access Midaz for creditAccount %v validation.
FEE-0046calculation value percentage invalidCalculation value is invalid can not utrapass 100%%. Please check the calculation value for Fee %v..
FEE-0047calculation value flat invalidCalculation value is invalid can not utrapass the minimum amount %v. Please check the calculation value for Fee %v.
FEE-0048error to access MidazError to access Midaz to validate creditAccount %v. Please check the client credentials to access Midaz.
FEE-0049deductible value forbiddenCan not update deductible value to true. The calculation value is bigger than 100%% for Fee %v.
FEE-0050deductible value forbiddenCan not update deductible value to true. Calculation value is bigger than the minimum amount %v for Fee %v.
FEE-0051Invalid page parameterQuery parameter page is invalid. The page must be greater than 0.
FEE-0053Invalid billing package typeThe billing package type is invalid. Valid types are ‘volume’ and ‘maintenance’.
FEE-0054Missing volume fieldsVolume billing packages require: eventFilter (transactionRoute, status), pricingModel, tiers, assetCode, debitAccountAlias, and creditAccountAlias.
FEE-0055Missing maintenance fieldsMaintenance billing packages require: feeAmount, assetCode, maintenanceCreditAccount, and accountTarget.
FEE-0056Invalid pricing modelThe pricing model is invalid. Valid models are ‘tiered’ and ‘fixed’.
FEE-0057Invalid pricing tierPricing tier configuration is invalid. Each tier must have minQuantity and unitPrice. Tiers must not overlap.
FEE-0058Billing route overlapA billing package already exists for this organization, ledger, and transaction route combination.
FEE-0063Invalid billing periodThe billing period format is invalid. Use ‘YYYY-MM’ (monthly), ‘YYYY-Www’ (weekly), or ‘YYYY-MM-DD’ (daily) format.
FEE-0064Invalid free quotaThe free quota value is invalid. Must be a non-negative integer.
FEE-0065Invalid discount tierDiscount tier configuration is invalid. Each tier must have minQuantity and discountPercentage between 0 and 100.
FEE-0067Invalid count modeThe count mode is invalid. Valid modes are ‘perRoute’ and ‘perAccount’.
FEE-0069Invalid account targetThe accountTarget must have exactly one of segmentId, portfolioId, or aliases. Aliases limited to 100 entries.
FEE-0070Invalid fee amountThe fee amount is invalid. It must be a positive value greater than zero.

404

codetitlemessage
FEE-0052Billing package not foundNo billing package was found for the given ID.
FEE-0059Target account not foundThe target account was not found or is inactive in Midaz.
FEE-0061No active billing packagesNo active billing packages were found for the specified organization and ledger.

422

codetitlemessage
FEE-0060Billing calculation failedFailed to calculate billing. Check the error details for the specific package and resource that caused the failure.
FEE-0062Segment resolution failedFailed to resolve accounts for the configured segment. Verify the segment exists and try again.
FEE-0068Service dependency unavailableA required service is temporarily unavailable. Please try again later.

500

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