4 - Webhooks

Electronic Payer Webhook - UpdateElectronicPayerWebhook

The webhook will notify the client when the Electronic Payer is added, removed, or changed.

{
  "PartnerId": 630,
  "ElectronicPayerTaxNumber": "61756839352",
  "InclusionDate": "2023-12-19T10:38:43.74",
  "CancelDate": null,
  "Method": "UpdateElectronicPayerWebhook",
  "BusinessUnitId": 649
}
{
    "ElectronicPayerTaxNumber": "61756839352",
    "Accounts": [
        {
            "Type": "0", //CONTA INCLUIDA
            "Bank": "450",
            "BankBranch": "0001",
            "Account": "265262",
            "AccountDigit": "2"
        },
        {
            "Type": "1", //CONTA EXCLUIDA
            "Bank": "",
            "BankBranch": "0001",
            "Account": "65656",
            "AccountDigit": "7"
        }
    ],
    "Date": "2023-12-19T10:38:43.74",
    "PartnerId": 630,
    "Method": "UpdateElectronicPayerWebhook",
    "BusinessUnitId": 649
}
{  
  "PartnerId": 630,  
  "ElectronicPayerTaxNumber": "61756839352",  
  "InclusionDate": "2023-12-19T10:38:43.74",  
  "CancelDate": "2023-12-20T10:38:43.74",  
  "Method": "UpdateElectronicPayerWebhook",  
  "BusinessUnitId": 649  
}

Description

ParameterTypeDescription
PartnerIdintegerFitBank provided ID
ElectronicPayerTaxNumberstringElectronic Payer CPF/CNPJ
InclusionDatestringDate of joining the DDA service
CancelDatestringDate of exclusion from electronic payer
MethodstringUpdateElectronicPayerWebhook
BusinessUnitIdstringFitBank provided ID

Webhook for Boleto Alerts

This webhook will notify when the electronic payer's boleto is issued, settled, and write-off canceled.

{
    "Beneficiary": {
        "TaxNumber": "",
        "TradingName": "", 
        "LegalName": "", 
        "FullName": "" 
    },
    "Payer": {
        "TaxNumber": "", 
        "TradingName": "", 
        "LegalName": "", 
        "FullName": "" 
    },
    "OurNumber": "", 
    "Barcode": "",
    "DigitableLine": "", 
    "DueDate": "", 
    "BoletoUpdSeqNumber": 2, 
    "PrincipalValue": 1.0, 
    "ExternalNumber": "", 
    "CreationDate": "2023-10-27", 
    "ExpirationDate": "2024-09-04", 
    "IsBlocked": false, 
    "RebateValue": 1.0, 
    "Interest": {
        "Date": "", 
        "Type": 0, 
        "Value": 1.0 
    },
    "Fine": {
        "Date": "", 
        "Type": 0, 
        "Value": 1.0 
    },
    "Discount": [
        {
            "Date": "", 
            "Type": 0,
            "Value": 1.0 
        }
    ],
    "OcurrenceDate": " ", 
    "Situation": "", 
    "Method":"UpdateBoletoAlert"
}
{
    "WriteOffs": [
        {
            "WriteOffIdentifier": "",
            "Barcode": "",
            "Type": 1,
            "PayerBankCode": "",
            "PayerBankBranch": "",
            "PaidValue": 1.0,
            "OccurrenceDate": " ",
            "Situation": "",
            "PaymentChannel": "",
            "PaymentMode": ""
        }
    ],
    "Method": "UpdateWriteOffAlert"
}
{
    "CancelWriteOffs": [
        {
            "WriteOffIdentifier": "",
            "PaidValue": 1.0,
            "OccurrenceDate": " ",
            "Situation": ""
        }
    ],
    "Method": "UpdateCancelWriteOffAlert"
}

Field Mapping Table

For Issued Boletos

FieldTypeDescription
MethodstringWebhook method identifier: UpdateBoletoAlert
BoletoUpdSeqNumberintegerSequential number for boleto updates

Beneficiary Object

FieldTypeDescription
TaxNumberstringBeneficiary's CPF or CNPJ (tax identification number). Format: 11 digits for CPF or 14 digits for CNPJ
TradingNamestringBeneficiary's trade name (nome fantasia)
LegalNamestringBeneficiary's legal/corporate name (razão social)
FullNamestringBeneficiary's full name (same as legal name)

Payer Object

FieldTypeDescription
TaxNumberstringPayer's CPF or CNPJ (tax identification number). Format: 11 digits for CPF or 14 digits for CNPJ
TradingNamestringPayer's trade name (nome fantasia)
LegalNamestringPayer's legal/corporate name (razão social)
FullNamestringPayer's full name (same as legal name)

Payment Slip Fields

FieldTypeDescription
OurNumberstringBank-assigned identifier for the payment slip (nosso número)
BarcodestringNumeric barcode for payment processing (44 digits)
DigitableLinestringHuman-readable payment line with check digits (47 digits)
DueDatestringPayment due date. Format: YYYY-MM-DD
PrincipalValuedecimalOriginal face value of the payment slip
ExternalNumberstringDocument number assigned by beneficiary
CreationDatestringDate when the payment slip was issued. Format: YYYY-MM-DD
ExpirationDatestringFinal date for payment acceptance. Format: YYYY-MM-DD
IsBlockedbooleanIndicates if payment is currently blocked. true = blocked, false = available
RebateValuedecimalDiscount/rebate amount applied to the slip
OcurrenceDatestringDate of the occurrence/movement. Format: YYYY-MM-DD
SituationstringCurrent status/situation of the payment slip.

Interest Object

FieldTypeDescription
DatestringDate from which interest starts accruing. Format: YYYY-MM-DD
TypeintegerInterest calculation type code.
ValuedecimalInterest rate or amount (percentage or fixed value)

Fine Object

FieldTypeDescription
DatestringDate from which the fine becomes applicable. Format: YYYY-MM-DD
TypeintegerFine calculation type code.
ValuedecimalFine rate or amount (percentage or fixed value)

Discount Array

FieldTypeDescription
DatestringDate until which the discount is valid. Format: YYYY-MM-DD
TypeintegerDiscount calculation type code.
ValuedecimalDiscount rate or amount (percentage or fixed value)

For Settled Boletos (WriteOffs)

FieldTypeDescription
MethodstringWebhook method identifier: UpdateBoletoDDAWebhook
WriteOffsarrayArray of write-off records for settled payments

WriteOff Object

FieldTypeDescription
WriteOffIdentifierstringUnique identifier for the write-off transaction
BarcodestringBarcode of the payment slip that was written off (44 digits)
TypeintegerType of write-off.
PayerBankCodestringBank code (COMPE) of the institution receiving the payment.
PayerBankBranchstringBranch code where the payment was received
PaidValuedecimalTotal amount paid for the write-off
OcurrenceDatestringDate and time when the write-off occurred. Format: YYYY-MM-DD or YYYY-MM-DD HH:mm:ss
SituationstringCurrent status/situation of the payment slip.
PaymentChannelstringChannel used for payment.
PaymentModestringMode/method of payment.

For Write-Off Cancellation (CancelWriteOffs)

FieldTypeDescription
MethodstringWebhook method identifier: UpdateBoletoDDAWebhook
CancelWriteOffsarrayArray of cancelled write-off records

CancelWriteOff Object

FieldTypeDescription
WriteOffIdentifierstringUnique identifier of the write-off being cancelled
PaidValuedecimalTotal amount that was paid (being reversed)
OcurrenceDatestringDate and time when the cancellation occurred. Format: YYYY-MM-DD or YYYY-MM-DD HH:mm:ss
SituationstringNew status/situation after cancellation.

Open Payment Slips Webhook

Description

This webhook is triggered when there are open payment slips available for a payer. It provides a list of all active payment obligations that the payer needs to settle.

Method: UpdateNewPayerBoletoAlert

Payload Structure

{
    "Boletos": [
        {
            "Beneficiary": {
                "TaxNumber": "",
                "TradingName": "",
                "LegalName": "",
                "FullName": ""
            },
            "Payer": {
                "TaxNumber": "",
                "TradingName": "",
                "LegalName": "",
                "FullName": ""
            },
            "OurNumber": "",
            "Barcode": "",
            "DigitableLine": "",
            "DueDate": "",
            "PrincipalValue": 1.0,
            "ExternalNumber": "",
            "CreationDate": "2023-10-27",
            "ExpirationDate": "2024-09-04",
            "IsBlocked": false,
            "RebateValue": 1.0,
            "Interest": {
                "Date": "",
                "Type": 0,
                "Value": 1.0
            },
            "Fine": {
                "Date": "",
                "Type": 0,
                "Value": 1.0
            },
            "Discount": [
                {
                    "Date": "",
                    "Type": 0,
                    "Value": 1.0
                }
            ],
            "OcurrenceDate": "",
            "Situation": ""
        }
    ],
    "Method": "UpdateNewPayerBoletoAlert"
}

Field Mapping Table

Root Level Fields

FieldTypeDescription
MethodstringWebhook method identifier: UpdateNewPayerBoletoAlert
BoletosarrayArray of open payment slips

Beneficiary Object

FieldTypeDescription
TaxNumberstringBeneficiary's CPF or CNPJ (tax identification number). Format: 11 digits for CPF or 14 digits for CNPJ
TradingNamestringBeneficiary's trade name (nome fantasia)
LegalNamestringBeneficiary's legal/corporate name (razão social)
FullNamestringBeneficiary's full name (same as legal name)

Payer Object

FieldTypeDescription
TaxNumberstringPayer's CPF or CNPJ (tax identification number). Format: 11 digits for CPF or 14 digits for CNPJ
TradingNamestringPayer's trade name (nome fantasia)
LegalNamestringPayer's legal/corporate name (razão social)
FullNamestringPayer's full name (same as legal name)

Payment Slip (Boleto) Fields

FieldTypeDescription
OurNumberstringBank-assigned identifier for the payment slip (nosso número)
BarcodestringNumeric barcode for payment processing (44 digits)
DigitableLinestringHuman-readable payment line with check digits (47 digits)
DueDatestringPayment due date. Format: YYYY-MM-DD
PrincipalValuedecimalOriginal face value of the payment slip
ExternalNumberstringDocument number assigned by beneficiary
CreationDatestringDate when the payment slip was issued. Format: YYYY-MM-DD
ExpirationDatestringFinal date for payment acceptance. Format: YYYY-MM-DD
IsBlockedbooleanIndicates if payment is currently blocked. true = blocked, false = available
RebateValuedecimalDiscount/rebate amount applied to the slip
OcurrenceDatestringDate of the occurrence/movement. Format: YYYY-MM-DD
SituationstringCurrent status/situation of the payment slip.

Interest Object

FieldTypeDescription
DatestringDate from which interest starts accruing. Format: YYYY-MM-DD
TypeintegerInterest calculation type code.
ValuedecimalInterest rate or amount (percentage or fixed value)

Fine Object

FieldTypeDescription
DatestringDate from which the fine becomes applicable. Format: YYYY-MM-DD
TypeintegerFine calculation type code.
ValuedecimalFine rate or amount (percentage or fixed value)

Discount Array

FieldTypeDescription
DatestringDate until which the discount is valid. Format: YYYY-MM-DD
TypeintegerDiscount calculation type code.
ValuedecimalDiscount rate or amount (percentage or fixed value)