Overview
TheAkatus.ConsultaParcelamento.Consulta class enables you to retrieve installment options for a specific transaction amount and payment method. This allows customers to see all available installment plans before completing a purchase.
Class: Consulta
Namespace:Akatus.ConsultaParcelamento
Methods
consultaParcelamento()
Queries installment options for a given amount and payment method. Signature:The transaction amount to calculate installments for
The payment method enum value (e.g.,
cartao_visa, cartao_master, boleto)Retorno - Object containing installment options and details
Throws:
System.ArgumentException- When the XML response is invalid or contains no installment nodes
consultaParcelamento() with Cache
Queries installment options with caching support to improve performance. Signature:The transaction amount to calculate installments for
The payment method enum value
Cache expiration date/time
Output parameter indicating if the result was retrieved from cache
Response Structure
Retorno Class
Contains the installment query response.Description of the installment plan (includes interest rate percentage)
Number of installments with fees assumed by the merchant
List of available installment options
RetornoParcela Class
Represents a single installment option.Number of installments
Value of each individual installment
Total amount to be paid (including any interest)
MeioDePagamento Enum
Common payment method values:cartao_visa- Visa credit cardcartao_master- MasterCard credit cardcartao_amex- American Express credit cardcartao_diners- Diners Club credit cardcartao_elo- Elo credit cardboleto- Bank slip (boleto bancário)
Usage Example
Example with Cache
Configuration Requirements
Before using this API, ensure yourWeb.config contains the required Akatus configuration:
API Endpoints
- Production:
http://www.akatus.com/api/v1/parcelamento/simulacao.xml - Testing:
http://dev.akatus.com/api/v1/parcelamento/simulacao.xml