Split into installments

When using split in installment payments, there are two ways to configure the division of the amount:

Sending the value that should be applied to each installment, previously calculated. For example, if you have a charge of BRL 100.00 that will be divided into 4 installments and need to perform a total split of BRL 40.00, you will need to send in the split assignments the value of BRL 10.00 in the fixedValue field. Thus, BRL 10.00 of split will be applied to each installment automatically, ensuring the BRL 40.00 split at the end of the installment payment settlement.

{
   ...
   "totalValue":100.00,
   "installmentCount":4,
   "split":[
      {
         "walletId":"48548710-9baa-4ec1-a11f-9010193527c6",
         "fixedValue":10.00
      }
   ]
}

Sending the total split value to be deducted from the total installment amount. Using this method, Asaas will execute the division according to the number of installments. For example, if you have a charge of BRL 300.00 that will be divided into 3 installments and need to perform a total split of BRL 100.00, you should send in the split assignments the value of BRL 100.00 in the totalFixedValue field. Thus, splits of BRL 33.33; BRL 33.33, and BRL 33.34 will be applied to each installment respectively in an automatic manner, ensuring the BRL 100.00 split at the end of the installment payment settlement.

{
   ...
   "totalValue":300.00,
   "installmentCount":3,
   "split":[
      {
         "walletId":"0b763922-aa88-4cbe-a567-e3fe8511fa06",
         "totalFixedValue":100.00
      }
   ]
}