Planos enviados na fatura

Define quais opções de parcelamento são impressas na fatura do portador. São até três planos, informados em campos numerados.

POST
/installments/rules/{agreementRuleId}/plan
CampoTipoEmDescrição
Program-idintegerheaderId do programa externo.
agreementRuleIdintegerpathRegra que receberá a configuração de planos.
agreementRuleIdintegerbodyRepete o id da regra. Mantenha igual ao valor do path.
installmentPlanInvoice1integerbodyQuantidade de parcelas do 1º plano ofertado na fatura.
installmentPlanInvoice2integerbodyQuantidade de parcelas do 2º plano.
installmentPlanInvoice3integerbodyQuantidade de parcelas do 3º plano.

Request

{
  "agreementRuleId": 1,
  "installmentPlanInvoice1": 3,
  "installmentPlanInvoice2": 6,
  "installmentPlanInvoice3": 9
}

Response

👍

Sucesso 200

{
  "version": "1.0.0",
  "status": 200,
  "body": {
    "agreementRuleId": 1,
    "agreementTypeId": 1,
    "active": true,
    "defaultRule": true,
    "minimumInstallments": 2,
    "maximumInstallments": 12,
    "minimumInstallmentValue": 20,
    "maximumInstallmentValue": 200,
    "limitContractedAgreements": 4,
    "interestRatePercentage": 0.15,
    "iof": 0.042,
    "dailyIof": 0.00082,
    "daysAfterDue": 5,
    "initialEntryPercentage": 0.1,
    "planEntryIncrement": 0.05,
    "tiebreakerPercentage": 0.02,
    "manualMinEntry": 50,
    "manualMaxEntry": 500,
    "validityStart": "2024-07-05T21:05:47.000000Z",
    "installmentPlanInvoices": [1, 2]
  }
}

Did this page help you?