5 - Webhooks

Collection Order Webhook - UpdateCollectionOrderStatus

Collection Order webhooks will match the CollectionOrderType that was programmed in the GenerateCollectionOrder method: CollectionOrderType: PixQrCodeDinamicDueDate = 0, Boleto = 1, BoletoPixQrCode = 2, PixQrCodeDinamic = 3.

This webhook notifies the Collection Order Status.

{
  "CollectionOrder": {
    "Boleto": {
      "BarCode": null,
      "Pdf": null,
      "QRCode": {
        "HashCode": null,
        "Image": null,
        "EndToEndPixIn": null,
        "EndToEndRefundPixIn": null
      }
    },
    "Rate": {
      "FineValue": null,
      "InterestValue": null
    },
    "Rebate": {
      "RebateValue": null
    },
    "InterestDate": null,
    "FineDate": null,
    "RateValue": 0.10,
    "Receivers": [
      {
        "ReceiverName": "Chaves de Lima",
        "ReceiverTaxNumber": "11403496005",
        "SplitValue": null
      }
    ],
    "DocumentNumber": "3043023",
    "Status": "0",
    "StatusDescription": "Created",
    "TaxNumber": "61774647346",
    "ReceiptUrl": null,
    "Identifier": "HERNECCCCD5AArA3A8Br6s265335857578",
    "Reason": null,
    "PrincipalValue": "0.01",
    "PaymentDate": null,
    "PaymentValue": null,
    "RefundDate": null,
    "RefundValue": null,
    "Payer": {
      "Name": null,
      "AccountInfo": {
        "TaxNumber": null,
        "Bank": null,
        "BankBranch": null,
        "BankAccount": null,
        "BankAccountDigit": null
      }
    }
  },
  "Method": "CollectionOrderStatus",
  "BusinessUnitId": 1259
}
{
  "CollectionOrder": {
    "Boleto": {
      "BarCode": null,
      "Pdf": null,
      "QRCode": {
        "HashCode": null,
        "Image": null,
        "EndToEndPixIn": null,
        "EndToEndRefundPixIn": null
      }
    },
    "Rate": {
      "FineValue": null,
      "InterestValue": null
    },
    "Rebate": {
      "RebateValue": null
    },
    "InterestDate": null,
    "FineDate": null,
    "RateValue": 0.10,
    "Receivers": [
      {
        "ReceiverName": "Chaves de Lima",
        "ReceiverTaxNumber": "11403496005",
        "SplitValue": null
      }
    ],
    "DocumentNumber": "3043074",
    "Status": "2",
    "StatusDescription": "Analising",
    "TaxNumber": "61774647346",
    "ReceiptUrl": null,
    "Identifier": "HERNECCCCD5AArA3A8Br6s265335857579",
    "Reason": null,
    "PrincipalValue": "0.01",
    "PaymentDate": null,
    "PaymentValue": null,
    "RefundDate": null,
    "RefundValue": null,
    "Payer": {
      "Name": null,
      "AccountInfo": {
        "TaxNumber": null,
        "Bank": null,
        "BankBranch": null,
        "BankAccount": null,
        "BankAccountDigit": null
      }
    }
  },
  "Method": "CollectionOrderStatus",
  "BusinessUnitId": 1259
}
{
  "CollectionOrder": {
    "Boleto": {
      "BarCode": null,
      "Pdf": null,
      "QRCode": {
        "HashCode": null,
        "Image": null,
        "EndToEndPixIn": null,
        "EndToEndRefundPixIn": null
      }
    },
    "Rate": {
      "FineValue": null,
      "InterestValue": null
    },
    "Rebate": {
      "RebateValue": null
    },
    "InterestDate": null,
    "FineDate": null,
    "RateValue": 0.10,
    "Receivers": [
      {
        "ReceiverName": "Chaves de Lima",
        "ReceiverTaxNumber": "11403496005",
        "SplitValue": null
      }
    ],
    "DocumentNumber": "3043023",
    "Status": "3",
    "StatusDescription": "Authorized",
    "TaxNumber": "61774647346",
    "ReceiptUrl": null,
    "Identifier": "HERNECCCCD5AArA3A8Br6s265335857578",
    "Reason": null,
    "PrincipalValue": "0.01",
    "PaymentDate": null,
    "PaymentValue": null,
    "RefundDate": null,
    "RefundValue": null,
    "Payer": {
      "Name": null,
      "AccountInfo": {
        "TaxNumber": null,
        "Bank": null,
        "BankBranch": null,
        "BankAccount": null,
        "BankAccountDigit": null
      }
    }
  },
  "Method": "CollectionOrderStatus",
  "BusinessUnitId": 1259
}
{
  "CollectionOrder": {
    "Boleto": {
      "BarCode": null,
      "Pdf": null,
      "QRCode": {
        "HashCode": null,
        "Image": null,
        "EndToEndPixIn": null,
        "EndToEndRefundPixIn": null
      }
    },
    "Rate": {
      "FineValue": null,
      "InterestValue": null
    },
    "Rebate": {
      "RebateValue": null
    },
    "InterestDate": null,
    "FineDate": null,
    "RateValue": 0.10,
    "Receivers": [
      {
        "ReceiverName": "Chaves de Lima",
        "ReceiverTaxNumber": "11403496005",
        "SplitValue": null
      }
    ],
    "DocumentNumber": "3043023",
    "Status": "6",
    "StatusDescription": "Registered",
    "TaxNumber": "61774647346",
    "ReceiptUrl": null,
    "Identifier": "HERNECCCCD5AArA3A8Br6s265335857578",
    "Reason": null,
    "PrincipalValue": "0.01",
    "PaymentDate": null,
    "PaymentValue": null,
    "RefundDate": null,
    "RefundValue": null,
    "Payer": {
      "Name": null,
      "AccountInfo": {
        "TaxNumber": null,
        "Bank": null,
        "BankBranch": null,
        "BankAccount": null,
        "BankAccountDigit": null
      }
    }
  },
  "Method": "CollectionOrderStatus",
  "BusinessUnitId": 1259
}
{
  "CollectionOrder": {
    "Boleto": {
      "BarCode": "45098995000000000010010000159076363330329940",
      "Pdf": "https://boletos.fitbank.com.br/pdf/2025-01-02/eakh54ee.pdf",
      "QRCode": {
        "HashCode": null,
        "Image": null,
        "EndToEndPixIn": null,
        "EndToEndRefundPixIn": null
      }
    },
    "Rate": {
      "FineValue": null,
      "InterestValue": null
    },
    "Rebate": {
      "RebateValue": null
    },
    "InterestDate": null,
    "FineDate": null,
    "RateValue": 0.10,
    "Receivers": [
      {
        "ReceiverName": "Chaves de Lima",
        "ReceiverTaxNumber": "11403496005",
        "SplitValue": null
      }
    ],
    "DocumentNumber": "3043023",
    "Status": "11",
    "StatusDescription": "AwaitingPayment",
    "TaxNumber": "61774647346",
    "ReceiptUrl": null,
    "Identifier": "HERNECCCCD5AArA3A8Br6s265335857578",
    "Reason": null,
    "PrincipalValue": "0.01",
    "PaymentDate": null,
    "PaymentValue": null,
    "RefundDate": null,
    "RefundValue": null,
    "Payer": {
      "Name": null,
      "AccountInfo": {
        "TaxNumber": null,
        "Bank": null,
        "BankBranch": null,
        "BankAccount": null,
        "BankAccountDigit": null
      }
    }
  },
  "Method": "CollectionOrderStatus",
  "BusinessUnitId": 1259
}
{
  "CollectionOrder": {
    "Boleto": {
      "BarCode": null,
      "Pdf": null,
      "QRCode": {
        "HashCode": null,
        "Image": null,
        "EndToEndPixIn": "E18236120202501021756s0737ddf400",
        "EndToEndRefundPixIn": null
      }
    },
    "Rate": {
      "FineValue": 0,
      "InterestValue": 0
    },
    "Rebate": {
      "RebateValue": 0
    },
    "InterestDate": null,
    "FineDate": null,
    "RateValue": 0.10,
    "Receivers": [
      {
        "ReceiverName": "Chaves de Lima",
        "ReceiverTaxNumber": "11403496005",
        "SplitValue": null
      }
    ],
    "DocumentNumber": "3043023",
    "Status": "9",
    "StatusDescription": "Settled",
    "TaxNumber": "61774647346",
    "ReceiptUrl": null,
    "Identifier": "HERNECCCCD5AArA3A8Br6s265335857578",
    "Reason": null,
    "PrincipalValue": "0.01",
    "PaymentDate": "2025-01-02T14:57:18.86",
    "PaymentValue": "0.01",
    "RefundDate": null,
    "RefundValue": null,
    "Payer": {
      "Name": "Francisca Hernestiana Silva Araújo",
      "AccountInfo": {
        "TaxNumber": "61774647346",
        "Bank": "260",
        "BankBranch": "1",
        "BankAccount": "77922934",
        "BankAccountDigit": "9"
      }
    }
  },
  "Method": "CollectionOrderStatus",
  "BusinessUnitId": 1259
}
{
  "CollectionOrder": {
    "Boleto": {
      "BarCode": null,
      "Pdf": null,
      "QRCode": {
        "HashCode": null,
        "Image": null,
        "EndToEndPixIn": null,
        "EndToEndRefundPixIn": null
      }
    },
    "Rate": {
      "FineValue": null,
      "InterestValue": null
    },
    "Rebate": {
      "RebateValue": null
    },
    "InterestDate": null,
    "FineDate": null,
    "RateValue": 0.10,
    "Receivers": [
      {
        "ReceiverName": "Chaves de Lima",
        "ReceiverTaxNumber": "11403496005",
        "SplitValue": null
      }
    ],
    "DocumentNumber": "3043074",
    "Status": "8",
    "StatusDescription": "Canceled",
    "TaxNumber": "61774647346",
    "ReceiptUrl": null,
    "Identifier": "HERNECCCCD5AArA3A8Br6s265335857579",
    "Reason": "EXC0013 - Manual Cancellation",
    "PrincipalValue": "0.01",
    "PaymentDate": null,
    "PaymentValue": null,
    "RefundDate": null,
    "RefundValue": null,
    "Payer": {
      "Name": null,
      "AccountInfo": {
        "TaxNumber": null,
        "Bank": null,
        "BankBranch": null,
        "BankAccount": null,
        "BankAccountDigit": null
      }
    }
  },
  "Method": "CollectionOrderStatus",
  "BusinessUnitId": 1259
}
{
  "CollectionOrder": {
    "Boleto": {
      "BarCode": null,
      "Pdf": null,
      "QRCode": {
        "HashCode": null,
        "Image": null,
        "EndToEndPixIn": "b5f90bc6-c7f4-4457-900b-526cd388edb0",
        "EndToEndRefundPixIn": "E3284600704190549966864763883940"
      }
    },
    "Rate": {
      "FineValue": null,
      "InterestValue": null
    },
    "Rebate": {
      "RebateValue": null
    },
    "InterestDate": null,
    "FineDate": null,
    "RateValue": 0.10,
    "Receivers": [
      {
        "ReceiverName": "Chaves de Lima",
        "ReceiverTaxNumber": "11403496005",
        "SplitValue": null
      }
    ],
    "DocumentNumber": "3043074",
    "Status": "15",
    "StatusDescription": "Canceled-Refund",
    "TaxNumber": "61774647346",
    "ReceiptUrl": "https://receipt.fitbank.com.br/receiptapi/pdf?filename=2024-08-21/ex2obkht.pdf",
    "Identifier": "HERNECCCCD5AArA3A8Br6s265335857579",
    "Reason": "Amount refunded. Divergent data between Payer and Settlement",
    "PrincipalValue": "0.01",
    "PaymentDate": null,
    "PaymentValue": null,
    "RefundDate": "2023-09-28T09:54:18.05",
    "RefundValue": "0.01",
    "Payer": {
      "Name": null,
      "AccountInfo": {
        "TaxNumber": null,
        "Bank": null,
        "BankBranch": null,
        "BankAccount": null,
        "BankAccountDigit": null
      }
    }
  },
  "Method": "CollectionOrderStatus",
  "BusinessUnitId": 1259
}
{
  "CollectionOrder": {
    "Boleto": {
      "BarCode": null,
      "Pdf": null,
      "QRCode": {
        "HashCode": null,
        "Image": null,
        "EndToEndPixIn": null,
        "EndToEndRefundPixIn": null
      }
    },
    "Rate": {
      "FineValue": null,
      "InterestValue": null
    },
    "Rebate": {
      "RebateValue": null
    },
    "InterestDate": null,
    "FineDate": null,
    "RateValue": 0.10,
    "Receivers": [
      {
        "ReceiverName": "Chaves de Lima",
        "ReceiverTaxNumber": "11403496005",
        "SplitValue": null
      }
    ],
    "DocumentNumber": "3043023",
    "Status": "12",
    "StatusDescription": "Error",
    "TaxNumber": "61774647346",
    "ReceiptUrl": null,
    "Identifier": "HERNECCCCD5AArA3A8Br6s265335857578",
    "Reason":  "Internal Processing Error",
    "PrincipalValue": "0.01",
    "PaymentDate": null,
    "PaymentValue": null,
    "RefundDate": null,
    "RefundValue": null,
    "Payer": {
      "Name": null,
      "AccountInfo": {
        "TaxNumber": null,
        "Bank": null,
        "BankBranch": null,
        "BankAccount": null,
        "BankAccountDigit": null
      }
    }
  },
  "Method": "CollectionOrderStatus",
  "BusinessUnitId": 1259
}

Description

ParameterDescriptionTypeComments
CollectionOrderObject concerning CollectionOrder's infoOBJECTNone
BusinessUnitIdBusiness Unit ID Provided by FitBankSTRINGNone
QrCodeObject concerning QRCode's infoOBJECTNone
HashCodeIdentification code (copy and paste)STRINGBase64 format
ImageQR Code imageSTRINGBase64 format
EndToEndPixInPIX credit identifier provided by the Central BankSTRINGNone
EndToEndRefundPixInPIX refund identifier provided by the Central BankSTRINGNone
BoletoObject concerning Boleto's infoOBJECTIt will only appear for the boleto types
BarcodeBarcode of the generated boletoSTRINGIt will only appear for the boleto types
PdfPDF of the generated boletoSTRINGIt will only appear for the boleto types
ReceiptUrlReceipt templateSTRINGIt will only be sent when the operation is in "Canceled-Refund" Status
RateInterest and Fine applied on the issuance of the collectionOBJECTIt will only appear for the boleto type and QRCode with Due Date
FineValueFine applied on the issuance of the collectionDECIMALNone
InterestValueInterest applied on the issuance of the collectionDECIMALNone
RebateObject for rebate details.OBJECTIt will only appear for the boleto types
RebateValueRebateValue of the boleto refers to the discount amount applied to the total value of the boleto.DECIMALIt will only appear for the boleto types
InterestDateInterest application date (if any)STRINGYYYY-MM-DD
FineDateFine application date (if any)STRINGYYYY-MM-DD
RateValueOperation feeDECIMALNone
ReceiversObject for receivers details.OBJECTNone
ReceiverNameReceiver NameSTRINGNone
ReceiverTaxNumberReceiver's CPF/CNPJSTRINGNone
SplitValueSplit Value between the receivers of the collection orderDECIMALNone
DocumentNumberCollection order identificationSTRINGNone
IdentifierID referenceSTRINGNone
ReasonCancellation reasonSTRINGIt will only be sent when the operation is in "Canceled", "Canceled-Refund" and "Error" Status
StatusOperation StatusSTRINGNone
StatusDescriptionOperation status descriptionSTRINGNone
PrincipalValuePrincipal amount of the collection orderDECIMALNone
PaymentValuePayment ValueDECIMALNone
PaymentDatePayment dateSTRINGNone
RefundDateRefund DateSTRINGNone
RefundValueRefund ValueDECIMALNone
PayerObject concerning Payer's data-None
NamePayer NameSTRINGNone
TaxNumberPayer's CPF/CNPJSTRINGNone
BankPayer's Bank CodeSTRINGNone
BankBranchPayer's Bank Agency CodeSTRINGNone
BankAccountPayer's Bank AccountSTRINGNone
BankAccountDigitPayer's Bank Account DigitSTRINGNone

📘

Explanation

The fields: Boleto, Barcode, PDF and Rebate, will only appear for the types of the boleto.

CollectionOrder Status

Upon receiving the Collection Order, the payer is then notified as to its status:

StatusStatus DescriptionTypeDescription
0CreatedSTRING (TEXT)The Collection Order was created
2AnalysingSTRING (TEXT)Payer under review in KYC process
3AuthorizedSTRING (TEXT)Payer Approved in KYC
6RegisteredSTRING (TEXT)The Collection was registered
8CanceledSTRING (TEXT)EXC0004 - Payer failed during the KYC process
EXC0005 - Invalid billing email address
EXC0006 - Collection has expired and payment has not been made
EXC0007 - Divergent data between Payer and Settlement
EXC0011 - Balance insufficient for fee collection
EXC0012 - Payer failed in the validation process
EXC0013 - Manual Cancellation
INF0008 - Is a qualified person, you must send a Collection Order again, with the data { Name, Email, Phone, Country, Nationality, Occupation, ...}
9SettledSTRING (TEXT)Completed Billing Order (payment settled)
11Awaiting PaymentSTRING (TEXT)Awaiting Payment
12ErrorSTRING (TEXT)EXC0008 - Internal Processing Error
15Canceled-RefundSTRING (TEXT)INF0010 - Amount refunded. Divergent data between Payer and Settlement
INF0014 - Receiver Account Validation Failed
INF0016 - Amount refunded. Payer is a qualified person.
INF0017 - Amount refunded. Payer screening has failed during the KYC process

Payer Webhook - UpdateCollectionOrderPayerStatus

This webhook notifies the Payer Status.

{
    "CollectionOrderPayer": {
        "Name": "José Reinaldo Sales Soares",
        "Status": "Created",
        "TaxNumber": "20282702091",
        "Phone": "88999999999",
        "Mail": "[email protected]", 

    "Reason": null
    },
    "Method": "CollectionOrderPayerStatus",
    "BusinessUnitId": 61859
}
{
    "CollectionOrderPayer": {
        "Name": "José Reinaldo Sales Soares",
        "Status": "Analysing",
        "TaxNumber": "20282702091",
        "Phone": "88999999999",
        "Mail": "[email protected]", 

    "Reason": null
    },
    "Method": "CollectionOrderPayerStatus",
    "BusinessUnitId": 61859
}
{
    "CollectionOrderPayer": {
        "Name": "José Reinaldo Sales Soares",
        "Status": "Approved",
        "TaxNumber": "20282702091",
        "Phone": "88999999999",
        "Mail": "[email protected]", 
		"Description": null,
    "Reason": null
    },
    "Method": "CollectionOrderPayerStatus",
    "BusinessUnitId": 61859
}
{
    "CollectionOrderPayer": {
        "Name": "José Reinaldo Sales Soares",
        "Status": "Denied",
        "TaxNumber": "20282702091",
        "Phone": "88999999999",
        "Mail": "[email protected]", 

    "Reason": [ 
"Identified that the Payer is at ONU with a percentage of 92, 00% with the following name ‘SILVA CHICO ALVES’ using evaluation ‘TokenSortRatio’;", 

"Identified that the Payer is at ONU with a percentage of 92, 00% with the following name ‘SILVA CHICO ALVES’ using evaluation ‘TokenSetRatio’;"
        ]
    },
    "Method": "CollectionOrderPayerStatus",
    "BusinessUnitId": 61859
}

Description

ParametersDescriptionTypeComments
NamePayer nameSTRING (TEXT)None
StatusPayer status indicationSTRING (TEXT)Created = 0
Analysing = 1
Approved = 2
Denied = 3
TaxNumberCPF or CNPJ of the payerSTRING (TEXT)None
PhonePayer phoneSTRING (TEXT)None
MailPayer mailSTRING (TEXT)None
ReasonReason for denying the payerSTRING (TEXT)None
MethodAPI methodSTRING (TEXT)None
BusinessUnitIdBusiness Unit ID provided by FitBankSTRING (TEXT)None

Status

Created = Created Payer
Analysing = Payer under review in KYC process
Approved = KYC approved payer
Denied = Reapproved KYC payer

Response webhook

To confirm receipt of the webhook, return us the following json:

{
    "Success": true,
    "Message": "Operation successfully completed."
}