v1

latestOpenAPI 3.1.02026-07-24102785.8 KB
Fees API

Get Available Installment Plans

Retrieves valid installment options for a transaction based on the credit card BIN, amount, and other input parameters. Performs validation for the "Meses Sin Intereses" program in Mexico.

🚧 Installments Authorization

The Installments feature from PagSeguro International Payin uses a different authorization method.

To authorize your requests to the Get Available Installment Plans endpoint, you have to use the authorization method described by the Payout Authorization documentation.

get/v3/fees/calculate

Query parameters

payment_methods'CREDIT_CARD' required

Payment method. Only CREDIT_CARD is supported.

valuenumber float required

Original transaction amount in the specified currency.

max_installmentsinteger

Maximum number of installments the merchant wants to offer.

  • For Brazil (BR), the maximum allowed is 12.
  • For Mexico (MX), the maximum allowed is 18.
card_binstring required

First 8 digits of the credit card (BIN).

charge_country'BR' | 'MX' required

Country code (ISO 3166-1 alpha-2).

currency'BRL' | 'MXN' required

Currency code (ISO 4217 alpha-3).

Headers

x-store-idstring required

Store identifier.

Response

Successful response with available installment plans.

Example response

{
  "payment_methods": {
    "credit_card": {
      "mastercard": {
        "installment_plans": [
          {
            "amount": {
              "currency": "BRL"
            }
          }
        ]
      }
    }
  }
}