User Guide Api Emissao Boletos en
User Guide Api Emissao Boletos en
Collection API
API – USER GUIDE
Confidential
1. Overview.................................................................................................................................................4
2024 – 04 V2.1
1
Confidential
The objective of this material is to present the concepts of the Billing APIs,
Onboarding, methods of use, technical documentation and business rules, as
well as examples of use.
2024 – 04 V2.1
2
Confidential
OVERVIEW
2023 – 05 V2.0
3
Confidential
1. Overview
The Santander Collection API is a service developed to facilitate the management of our customers'
receipts, simplifying the registration of bank slips, regardless of the company's business model.
API (Application Programming Interface) can be understood as a set of norms, standards and protocols
that allow two services to communicate.
This documentation has been structured to support people responsible for developing and adapting the
systems of Santander client companies, who wish to operate Collection through our APIs.
1.1 Advantages
• Connection standardization, as all systems that will use the service know exactly which fields,
parameters and routes to send or receive and which are the possible responses;
• Provide integration between systems built in different languages in an agile, secure and fully
compatible manner;
• Possess authentication layers generating access security in use;
• Reduction in the volume of data transferred, as the information exchanged is more direct and
follows simpler models than pre-set layouts in which some fields are repeated countless times.
2023 – 05 V2.0
4
Confidential
ONBOARDING
2023 – 05 V2.0
5
Confidential
2. Onboarding
The Billing API is indicated for companies that needs to register their bills in an automated, fast and secure way,
directly from their management system or through an electronic connection between the company and its
customers (e-commerce).
For the use of the API, we provide customers with self-service through the Developer Portal, where it is possible
to obtain technical documentation, perform tests in SandBox, register certificates and generate credentials for
using the service (Sandbox and Production):
In order to use the Collection slip registration service via API, it is necessary to subscribe to Santander Cobrança,
through the contracting of an agreement. If you already have an active billing agreement, you can go directly to
the Developer Portal access step.
If you do not have a Billing Agreement, you can access Internet Banking for Legal Entities or the Santander
Empresas APP and contract it through the option Cobrança e Recebimentos > Convênio de Cobrança > Contratar
Convênio, or directly with your Manager.
Important: to operate the Billing Through API, it is necessary that the agreement has the parameter “Entrada
Online” enabled. If in doubt, contact your manager or Corporate Customer Service.
Only the Internet Banking Local Platform Master User has immediate access to the application creation area within
the Developer Portal. The Master user can also invite other users, giving them permission to create applications on
the company’s behalf. To do so, simply send the invitation in the “Members” area”.
It is necessary that the Master User has the Santander ID (Token Device) enabled;
In order for the Master User to have access to two or more companies within the Developer Portal, it is necessary
log in for the different companies, so they will be associated with the accounts.
2023 – 05 V2.0
7
Confidential
To operate through our API, it’s necessary to obtain the API Credentials (ClientID and ClientSecret) specific for
Collection Product.
You should obtain the credentials by accessing our Developer Portal and registering your Security Certificate
(.PEM, .CER or .CRT) and choosing the Collection API (Emissão de Boletos).
There is two ways to enter in our Developer Portal: Master User or External User
- Log in at our DevPortal as an Internet Banking Local Platform Master user (user needs to have a Token assigned):
4 – Once logged, select the “Produção” environment, Click in Aplicações > Criar Nova Aplicação;
5 – Select “Sou Desenvolvedor” and create an API Application. It’ll be required to give an app name, upload your Security Certificate and
select our API (Emissão de Boletos);
6 – Click in “Enviar” and wait the processing. If the process went well, the API credentials will be available up to 5 minutes in “Minhas
Aplicações”.
- Log in at our DevPortal as an external user (needs to receive an invitation from a Master company’s user):
When logged in our DevPortal, the Master user can send an invitation to external users. This way, this person will be able to create API APPs
on behalf of that company and receive their Credentials (ClientID and ClientSecret).
3 - Once the registration is completed and the Master sent the invitation, accept it by clicking in Produção > Verificar Convites;
5 – Select “Sou Desenvolvedor” and create an API Application. It’ll be required to give an app name, upload your Security Certificate and
select our API (Emissão de Boletos);
6 - Click in “Enviar” and wait the processing. If the process went well, the API credentials will be available up to 5 minutes in “Minhas
Aplicações”.
2023 – 05 V2.0
8
Confidential
2023 – 05 V2.0
9
Confidential
2023 – 05 V2.0
10
Confidential
2023 – 05 V2.0
11
Confidential
2023 – 05 V2.0
12
Confidential
2023 – 05 V2.0
13
Confidential
To invite a user, you need to access the Companies page and follow the step by step below:
2023 – 05 V2.0
14
Confidential
2023 – 05 V2.0
15
Confidential
Notes:
Client Id - It is a public identifier for applications (understood as the “user” of the application). Some call it APP
Key. Even if it's public, it's best not to be disclosed to third parties, it can be formatted as a 32-character
hexadecimal string. It must also be unique across all clients handled by the authorization server. If the client id is
discovered by others, it will be a little easier to create phishing attacks against an application;
2023 – 05 V2.0
16
Confidential
Client Secret - It is an access “key” known only by the application requesting the resource and by the authorization
server. It must be random enough not to be easily reproduced or discovered, and it serves to ensure that the
application really knows who owns this information.
With the credentials, you must request an access token (Access Token) generated by OAuth 2 that represents an
authorization protocol that allows an application to authenticate itself in another. The requesting application
(cliente_id) requests access permission for a system that owns a resource (authorizer). The owner system may or
may not grant access to the application. Once permission is granted, it can be revoked at any time.
2.6.1 OAuth 2
Resource Owner - Person or entity granting access to your data. Also called resource owner.
Resource Server - The API that is exposed on the internet and needs data protection. To gain access to its content,
a token is required, which is issued by the authorization server.
Authorization Server - Responsible for authenticating the client id and issuing access tokens. It is he who has the
information of the resource owner, authentic and interacts with the Resource Server after identifying the client id.
Client - It is the application that interacts with the Resource Owner, such as the browser, speaking in the case of a
web application. In our case, this role belongs to the resource requesting system.
To generate an Access Token and make calls to our Billing APIs, follow the steps below:
I. Certificate importation
2023 – 05 V2.0
17
Confidential
Import CRT file + KEY file, or PFX + Senha and then, click on Add:
2023 – 05 V2.0
18
Confidential
Click on the tab body, select x-www-form-urlencoded and complete with the information:
KEY Value
client_id Obtained through the Developer Portal
client_secret Obtained through the Developer Portal
grant_type client_credentials
Note: Pay attention to the information filled in the fields above. There must be no blank spaces before or after the entered
values.
Click on the Headers tab and include the header X-Application-Key (client_id):
2023 – 05 V2.0
19
Confidential
Important! The above step must be performed on all Headers, for each EndPoint consumed.
After these steps, just make calls to the Billing EndPoints, according to the desired action. The process will be the
same for all other EndPoints.
If the 401 error is displayed, generate a new JWT and replace it in the “Authorization” tab, as shown in steps 2 and
3.
2023 – 05 V2.0
20
Confidential
WORKSPACES
POST and GET: workspace creation and query
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/workspaces
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/workspaces/
BANK SLIP
POST and PATCH: registration and alteration of Payment slips
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/workspaces/{WORKSPACE_ID}/bank_slips
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/workspaces/{WORKSPACE_ID}/bank_slips
BILLS
GET - Consult payment slip details registered in the agreement – Our Number:
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/bills?beneficiaryCode=1234567&bankNumber=1234567890123
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/bills?beneficiaryCode=1234567&bankNumber=1234567890123
GET – Consult payment slip details registered in the agreement – Your Number:
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/bills?beneficiaryCode=1234567
&clientNumber=123456789012345&dueDate=2023-01-01&nominalValue=3.45
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/bills?beneficiaryCode=1234567
&clientNumber=123456789012345&dueDate=2023-01-01&nominalValue=3.45
2023 – 05 V2.0
21
Confidential
2.6 Sandbox
To access the Sandbox, simply login to the Developer Portal, create your application and access your credentials.
With them, you will have access to our development environment, the Sandbox. There you can download our
Collection Postman and integrate the Sandbox directly into your system to explore our APIs.
2023 – 05 V2.0
22
Confidential
To perform the query, simply enter the expected content and proceed with the operation:
2023 – 05 V2.0
23
Confidential
SETUP
2023 – 05 V2.0
24
Confidential
3. Setup Vision
In order to access the system and consume the Billing APIs, one or more Workspaces must be registered.
Workspace is a prerequisite for accessing the Billing Hub via API.
It is part of the process to execute an action in an API through one of the verbs and receive a return code indicating
the status of that request. As the codes are standards, the application can implement standard behaviors according
to the return codes.
2023 – 05 V2.0
26
Confidential
3.3 Workspaces
In the client system environment, the Billing Hub user can make up to 4 (four) types of calls in the
Workspace:
2023 – 05 V2.0
27
Confidential
To operate Santander Billing through an API, the company will need to create a Workspace.
In this environment, the Collection agreements to be operated and the settings related to the Webhook (optional)
must be indicated.
The billing agreement(s) indicated in the Workspace must be associated with the same CNPJ root whose credentials
(Client ID and Client Secret) were obtained, after uploading the Security Certificate on our Customer Portal
Developer.
To create a Workspace in the Billing Hub, you need to consume the endpoint POST/workspaces.
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/workspaces
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/workspaces/
Request
Field Description Mandatory
Id Unique Workspace identification code in UUID (universally unique No
identifier) format. Field not mandatory, however, if not sent, an
identification code will be automatically generated and will be returned
in the response.
type Workspace classification, the literal “BILLING” must be inserted. Yes
covenants > code List of numerical identification codes for Billing agreements to be Yes
recorded in the Workspace. If the field is sent without identification
codes, the Workspace will be created, but without associated
agreements.
description Workspace description, can be up to 30 characters long. No
webhookURL Destination URL for payment notices No
bankSlipBillingWebhookActive Option used to configure the reception of notices of payments made No
through payment slip (typeable line or Barcode)
pixBillingWebhookActive Option used to configure receipt of notices for payments made via No
QRCode PIX
Important:
2023 – 05 V2.0
28
Confidential
- To use the payment slips registration API of the Billing HUB, it is mandatory that the agreements to be used for
the registration are previously registered in a Workspace;
- The agreements must compulsorily belong to the same CNPJ root associated with the access credential, obtained
after registering the security certificate in the Developer Portal;
- If an invalid code is sent in the list of agreements or one that does not belong to the CNPJ root associated with the
access credential, the error “10057 – Error when trying to validate the agreements” will be returned;
- If an empty list of agreements is sent, the error “10058 – Agreement is invalid” will be returned.
- Only the first Workspace registered for each agreement will really sensitize the Webhook notification settings in
the Billing agreements (payment by Payment slip | payment by QRCode).
By creating just one Workspace, the company will already be able to carry out its billing operations.
It is possible to associate the same agreement in more than one Workspace, observing the following rules:
Criação Workspace 1
bankSlipBillingWebhookActive: true
pixBillingWebhookActive: true
webhookURL: http://suaurl123.com.br
Action - Creation of the first Workspace for agreements 1, 2 and 3, with the configuration of the Webhook for the URL
http://suaurl123.com.br
Result - Since this is the first Billing API Workspace created for agreements 1, 2 and 3, we will record the settings related to
sending the Webhook for payments via payment slip and payments via QRcode (Bolepix) in the indicated agreements/Codes.
Criação Workspace 2
bankSlipBillingWebhookActive: true
pixBillingWebhookActive: false
webhookURL: http://suaurl123abcde.com.br
Action - Creation of a new Workspace, with the indication of the same agreements registered in Workspace 1, with the
addition of the agreement/code 4, indicating another URL for receiving the Webhook (http://suaurl123abcde.com.br) and with
changes in the rules of shipping.
Result - The Workspace will be successfully registered by the API, however the settings related to the notifications
(bankSlipBillingWebhookActive and pixBillingWebhookActive) of this new Workspace will not be changed for agreements 1, 2
and 3. For these, the rules will remain according to the registration of the first Workspace.
For agreement 4, we will record the settings indicated in the agreement.
Summary - For agreements 1, 2 and 3, we will send the payments Webhook to both registered URLs (http://suaurl123.com.br
and http://suaurl123abcde.com.br), both for payments made via Payment slip and via QRCode. (bolepix).
For agreement 4, we will send the Webhook only to the URL http://suaurl123abcde.com.br, and only for payments made via
Payment slip.
2023 – 05 V2.0
29
Confidential
The other Status Codes follow the same pattern as the 400 Bad Request status.
2023 – 05 V2.0
30
Confidential
To make the Workspaces paged/list query, it is necessary to consume the endpoint GET/workspaces. In this API
there are two main fields: _pageable* dealing with pagination and _content* that brings the Workspace data.
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/workspaces
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/workspaces/
The field _content* brings all the Workspace data mentioned above: workspace_id, creationDate*, status, type*,
description, covenants. The Status Code Bad Request follows the same error pattern presented above and for the
other status codes it also follows the same pattern.
To navigate between the pages obtained in the search result, just add a Query Param (in Postman's Params tab)
called _page, with the value of the desired page. Ex. Key = _page Value = 2
To bring a larger number of results per page, use the Query Param _limit, indicating the desired number as in the
Value field.
2023 – 05 V2.0
31
Confidential
The other Status Codes follow the same pattern as the 400 Bad Request status.
Request
Field Description Mandatory
covenants List of numerical identification codes for Collection agreements. Yes
2023 – 05 V2.0
32
Confidential
TRANSACTION
2023 – 05 V2.0
33
Confidential
4. Transaction
After registering with Workspace, the customer will be able to call the transactions available in the Billing Hub.
The transaction flow basically occurs through three methods: POST, PATCH and GET. POST is used to register
payment slips. PATCH is used to command instructions to payment slips, changing/updating their data. GET is
used to query payment slips registered in up to D+2 of the registry (Probe Consultation, where it is possible to
consult all registered data of a payment slip) and also to consult the status and other data of registered,
settled and downloaded in the agreement.
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/workspaces/{WORKSPACE_ID}/bank_slips
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/workspaces/{WORKSPACE_ID}/bank_slips
Request
Field Description Mandatory Format/Content Notes
Unique sequential number
nsuCode per Agreement/Date Yes X(20) 1
2023 – 05 V2.0
40
Confidential
2023 – 05 V2.0
41
Confidential
2023 – 05 V2.0
42
Confidential
Minimum amount or
9(10)V99999
minValueOrPercentage percentage for payment slip No 18
payment
Maximum value or
9(10)V99999
maxValueOrPercentage percentage for payment slip No 19
payment
Percentage of IOF to be
iofPercentage collected in the payment slip No 9(03)V99999 20
settlement
Sharing code registered in the
sharing/code Beneficiary's agreement, No 21
X(02)
indicates the current account
that will receive the credit
sharing/value Amount that will be shared No 9(13)V99 22
per account
Type of DICT key (PIX) to be
key/type No Note 23 23
linked to the payment slip
DICT key (PIX) to be linked to
key/dictKey No X(77) 24
the payment slip
In the output area, all fields sent in the input and the following additional fields will be returned:
Response – Status 200
Field Description
barCode Barcode generated for the payment slip
digitableLine Digital line generated for payment slip
entryDate Date of entry/registration of the payment slip at the Bank
qrCodePix QRCode PIX code assigned to the payment slip
qrCodeUrl QRCode PIX URL assigned to the payment slip
Note: The “qrCodePix” and “qrCodeUrl” fields will only be returned if the Payment slip SX (PIX).
2023 – 05 V2.0
43
Confidential
2023 – 05 V2.0
44
Confidential
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/workspaces/{WORKSPACE_ID}/bank_slips/{BANK_SLIP_ID}
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/workspaces/{WORKSPACE_ID}/bank_slips/{BANK_SLIP_ID}
Request
Field Description Mandatory Format/Content Notes
Unique sequential number
nsuCode per Agreement/Date Yes X(20) 1
Example:
https://trust.open.api.santander.com.br/collection_bill_management/v2/workspaces/78b8d614-ec19-4b16-
9f91-cdb63d329123/bank_slips/123.2022-09-16.P.123456.123
This query is intended to confirm the payment slip registration and can be carried out within D+2 of the date
on which the payment slip was registered with the Bank, once the payment slip registration is located, all
payment slip data will be returned (The GET response is the same as the registration POST).
2023 – 05 V2.0
45
Confidential
Sandbox: https://trust-
sandbox.api.santander.com.br/collection_bill_management/v2/bills?beneficiaryCode=1234567&bankNumber=1234567890123
Production: https://trust-
open.api.santander.com.br/collection_bill_management/v2/bills?beneficiaryCode=1234567&bankNumber=1234567890123
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/bills?beneficiaryCode=1234567
&clientNumber=123456789012345&dueDate=2023-01-01&nominalValue=1234567890123.45
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/bills?beneficiaryCode=1234567
&clientNumber=123456789012345&dueDate=2023-01-01&nominalValue=1234567890123.45
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/bills/{bill_id}?tipoConsulta=default
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/bills/{bill_id}?tipoConsulta=default
Query simple detail of a billing payment slip – Our Number (GET): used to query the simple detail of a
payment slip using the information from the beneficiary's health insurance code and our payment slip
number.
Query simple detail of a collection payment slip – Your Number (GET): used to query the simple detail
of a payment slip using information from the beneficiary's health insurance code, its payment slip
number, payment slip expiration date and payment slip face value.
Query details of a payment slip by query type (GET): used to query details of a payment slip through
the beneficiary's health insurance code and our payment slip number by type:
1. Default
2. Duplicate
3. Bankslip
4. Write-Offs/Settlements
5. Registry
2023 – 05 V2.0
46
Confidential
To perform a simple query by Your Number/Our Number using Postman, follow these steps:
1. Open Postman.
2. Select the GET method and enter the EndPoint URL.
- To query the details of a payment slip using our number, you must send the following query
parameters:
beneficiaryCode: Beneficiary agreement code
bankNumber: Code Our Payment slip number
- To query the detail of a payment slip by its number, it is necessary to send the following query
parameters:
beneficiaryCode: Beneficiary agreement code
clientNumber: Code Your Payment slip number
dueDate: Payment slip due date (Format YYYY-MM-DD)
nominalValue: Nominal Value of the Payment slip (With two decimal places separated by a dot ‘.’)
3. In the “Authorization” tab, select the “OAuth 2.0” type. In the “Token” field, enter the obtained token.
4. In the ”Headers” tab, add the header “X-Application-Key” assigning the same value used in the
client_id.
5. Finally, click on “Send” to get the answer.
2023 – 05 V2.0
47
Confidential
3. On the “Authorization” tab, select the “OAuth 2.0” type. In the “Token” field, enter the token
obtained.
4. In the ”Headers” tab, add the header “X-Application-Key” assigning the same value used in the
client_id of the token generation in section 4.
2023 – 05 V2.0
48
Confidential
Object “_pageable”
Contains information to identify if there are more records to query and will be returned when the query is
performed by Your Number/Our Number. It has the following properties:
“_moreElements”: Indicates if there are more records from the current “page”, returns the value “true” if there is and
“false” if not.
2023 – 05 V2.0
49
Confidential
Status Details:
ATIVO (ACTIVE)
- Open invoices (unpaid), which are active in the Billing base, overdue or due;
- Bills that were paid via digital line or barcode on the same day of the appointment.
For payments made on the same day using a digital line or barcode, there will be an indication of an “baixa operacional
supplement on the GET routes by Nosso Número and by Seu número.
The next day, the paid invoice will show the status Settled or Partially Settled.
BAIXADO (WRITE-OFF)
- Bills write-off (canceled) according to instructions registered at the time of transfer, configured in the Billing
Agreement or after protest;
- Bills paid via PIX QRCode (Bolepix).
When payment is made using the PIX QRCode (Bolepix), the invoice will be write-off (canceled) immediately.
Through the GET query Endpoints by Nosso Número, Seu Número and Settlement, it is possible to consult additional
information on the status of the bills.
For the Downloaded status, there will be an indication whether the Write-Off occurred due to payment via PIX,
Automatic Write-Off, Write-Off as instructed, etc.
LIQUIDADO (PAID)
The Settled status will be displayed when checking invoices that have been paid via digital line or barcode (full
settlement of the invoice amount) in the previous days. This status will only be displayed from
D+1 of payment.
The Partially Settled status will be displayed when checking invoices that have been paid via digital line or barcode
(partial settlement of the invoice value) in the previous days. This status will only be displayed after D+1 of payment.
Note:
After being BAIXADO or LIQUIDADO, the invoices remain available for consultation in our database according to the
deadlines below:
BAIXADO invoices are eliminated from the active consultation base after 15 to 30 days of cancellation.
LIQUIDADO invoices are eliminated from the consultation database after 30 to 45 days of settlement.
2023 – 05 V2.0
50
Confidential
Sandbox: https://trust-sandbox.api.santander.com.br/collection_bill_management/v2/workspaces/{WORKSPACE_ID}/bank_slips
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/workspaces/{WORKSPACE_ID}/bank_slips
Request
Field Description Format/Content Notes
Change Maturity
dueDate YYYY-MM-DD 29
PROTEST PROTESTAR
operation CANCEL_PROTEST CANCELAR_PROTESTO 31
WRITE-OFF BAIXAR
discountOne/value 9(13)V99
Grant/Cancel/Change 1st Discount 34
discountOne/limitDate YYYY-MM-DD
discountTwo/value 9(13)V99
Grant/Cancel/Change 2nd Discount 34
discountTwo/limitDate YYYY-MM-DD
discountThree/value 9(13)V99
Grant/Cancel/Change 3rd Discount 34
discountThree/limitDate YYYY-MM-DD
discountOne/value Grant/Cancel/Change Advance Discount Calendar 9(13)V99
35
discountOne/limitDate Days YYYY-MM-DD
discountOne/value Grant/Cancel/Change Business Day Advance 9(13)V99
35
discountOne/limitDate Discount YYYY-MM-DD
finePercentage 9(03)V99
Charge/Cancel/Change Late Fee 36
fineDate YYYY-MM-DD
Charge/Cancel/Change Interest per month due to
interestPercentage 9(03)V99 37
Delay
interestValue 9(03)V99
Grant/Cancel/Change Interest Tolerance 38
interestToleranceDate YYYY-MM-DD
minValueOrPercentage Change Minimum Percentage for Payment 9(10)V99999 39
maxValueOrPercentage Change Maximum Percentage for Payment 9(10)V99999 39
minValueOrPercentage Change Minimum Amount for Payment 9(13)V99 40
maxValueOrPercentage Change Maximum Payment Amount 9(13)V99 40
2023 – 05 V2.0
51
Confidential
General Rules
Up to 10 instructions for the same payment slip may be sent in the same request, with the exception
of write-off, protest and protest cancellation instructions that need to be sent separately.
In the request, the number of the agreement (covenantCode) and our number (bankNumber) of the
payment slip must be informed and only the fields of the instructions that must be processed, according to
the table above.
In the exit area, the data of the Agreement, Our number and result will be returned:
2023 – 05 V2.0
52
Confidential
Financial Instructions:
Grant/Change/Cancel Rebate
Grant/Change/Cancel 1st Discount
Grant/Change/Cancel 2nd Discount
Grant/Change/Cancel 3rd Discount
Grant/Change/Cancel Advance Discount on Calendar Days
Grant/Change/Cancel Advance Discount on Business Days
Charge/Change/Cancel Late Fee
Charge/Change/Cancel Interest per Month
Change Minimum Percentage for Payment
Change Maximum Percentage for Payment
Change Minimum Amount for Payment
Change Maximum Amount for Payment
Change Nominal Value (only for BCC and BDP document types)
Grant/Change/Cancel Interest Tolerance
Change Instructions:
Maturity Change
Change Number of Protest Days
Change the number of days off
Add/Change Your Number
Add/Change Participant Control
Protest Instructions:
Protest
Cancel Protest (Do not Protest, Stop and Cancel Protested Title)
Download Instructions:
Write-off
Details
- All instructions commanded via API through Patch are processed online at Santander and at PCR (Centralized
Receivables Platform), if accepted.
- Write-off and Maturity Extension Instructions commanded for invoices linked to the guarantee (Penhor) operation
(Pledge Collection) undergo internal validation, in hourly schedules (from 9:35 am to 6:35 pm).
If the statement is processed after the last grid time, it will be updated in nightly processing.
- Every instruction commanded for the bills and accepted by the Bank will be automatically reflected in the PIX QRCode,
if your bill is a Boleto SX/Bolepix.
- It is allowed to command instructions for bills that have been issued through any Santander channel (Internet Banking,
APP Empresas, CNAB, XML or API).
2023 – 05 V2.0
53
Confidential
4.5 WEBHOOK
Webhooks create a kind of connection between two systems, so that one system can receive information from the
other as soon as a certain action takes place.
The purpose of the Cobrança Webhook is to provide customers with a notice of payment slips paid, containing essential
data on these payment slips and payments, so that it is possible to reconcile the settlements made.
This notice will be sent to the customer through a Push Notification and immediately. That is, as soon as a payment is
made (either through the typed line/bar code or through the Bolepix QRCode associated with the payment slip), a
notification will be sent.
Customers who choose to receive payment notices through the Webhook must configure this in the Billing Workspace,
informing the URL to which the notification should be directed and the type of transaction that should be sent:
The fields will apply to all agreements registered in the Workspace list. That is, all agreements will receive payment
notices through the Webhook;
If the customer does not want to receive a Webhook for one or more agreements on the list, they must exclude them
from the Workspace and include them in a separate Workspace, without configuring a Webhook.
The customer can have several Workspaces with the same agreements, if he wants to enable Webhook for the same
agreement in different Workspaces, he must inform the same configuration, changing only the URL, if he/she wants.
Webhook – Notice
Field Description Format Size Domain
message Message code alphanumeric 12 WBHKPAGEST
PAGAMENTO
function Function* alphanumeric 15
ESTORNO
Payment type SANTANDER
paymentType alphanumeric 20 OUTROS BANCOS
PIX
issueDate Issuance Notification Date alphanumeric 10 YYYY-MM-DD
Date Time of YYYY-MM-DD-
paymentDate alphanumeric 26
payment/operational write-off HH.MM.SS.NNNNNN
Payment bank/operational
bankCode numeric 4
write-off (code COMPE)
AGENCIAS
AUTO_ATENDIMENTO
INTERNET BANKING
CORRESPONDENTE
Payment channel BANCARIO FISICO
paymentChannel alphanumeric 40
CENTRAL DE ATENDIMENTO
ARQUIVO ELETRONICO
DDA
CORRESPONDENTE
BANCARIO DIGITAL
2023 – 05 V2.0
54
Confidential
ESPECIE
Means of payment DEBITO EM CONTA
paymentKind alphanumeric 30
CARTAO DE CREDITO
CHEQUE
covenant Agreement Code numeric 9
TP Contract person CPF
typeOfPersonAgreement alphanumeric 4
CNPJ
agreementDocument Document number numeric 14
bankNumber Our number numeric 13
clientNumber Your number alphanumeric 15
participantCode Participant Control alphanumeric 25
txId TXID - code. PIX tracking alphanumeric 35
TP Original Payer Person CPF
payerDocumentType alphanumeric 4
CNPJ
payerDocumentNumber Original Paying Document numeric 15
payerName Original Paying Name alphanumeric 40
TP Person Final Beneficiary CPF
finalBeneficiaryrDocumentType alphanumeric 4
CNPJ
finalBeneficiaryDocumentNumber Final Beneficiary Document numeric 15
finalBeneficiaryName Final Beneficiary Name alphanumeric 40
dueDate Due date alphanumeric 10 YYYY-MM-DD
nominalValue Nominal value numeric 15,2
payedValue Amount paid numeric 15,2
interestValue Interest calculated on payment numeric 15,2
fine Fine calculated on payment numeric 15,2
deductionValue Amount of discount granted numeric 15,2
rebateValue Amount of Rebate granted numeric 15,2
iofValue Collected IOF amount numeric 15,2
Important:
Customers who choose to receive payment notifications through the Webhook must carry out this configuration in the
Billing Workspace, providing the URL to receive notifications.
The settings will apply to all agreements registered in the Workspace list.
If the customer does not want to receive Webhook for one or more agreements on the list, they must exclude them
from the Workspace and include them in a separate Workspace, without Webhook configuration.
Customers covered by Circular 3,978/2020 have a Webhook with a composition different from that indicated above.
For more details, consult your Cash Specialist.
Webhook notifications for payments made at Santander (except through the Caixa and Corban channels) and at other
banks through the Digitible Line and Bar Code represent effective confirmation of payment of the invoices, without the
possibility of a refund.
For the Caixa and Corban Santander channels, it will be possible to cancel the payment of invoices on the same day of
payment. If a chargeback occurs, a chargeback (estorno) Webhook will be sent to the company.
Webhook notifications for payments made using PIX QRCode (Bolepix) represent effective confirmation of payment of
the bill. In other words, the payment was identified and the invoice was downloaded immediately.
2023 – 05 V2.0
55
Confidential
Receiving more than one Webhook notification with the PAYMENT “function” for the same bill will not necessarily mean
that there has been more than one payment for this bill.
In other cases, it is possible that the lack of response from the company's server confirming the successful reception of
our notification triggers new attempts on the Bank's side to send this notification.
We recommend that payment reconciliation is always complemented with detailed inquiry routes (GET), and/or through
our return files. It is important to have redundancy in conciliation methods. Notices related to payments made by
QRCode (Boleto SX/BolePix) can now be considered definitive when received.
The company's side must implement good practices related to URL settings:
Webhook example:
{
"message": "WBHKPAGEST",
"function": "PAGAMENTO",
"paymentType": "SANTANDER",
"issueDate": "2023-05-22",
"paymentDate": "2023-05-22-14.24.35.068123",
"bankCode": "0033",
"paymentChannel": "INTERNET BANKING",
"paymentKind": "DEBITO EM CONTA",
"covenant": "001234567",
"typeOfPersonAgreement": "CNPJ",
"agreementDocument": "12345678000134",
"bankNumber": "0000000001025",
"clientNumber": "123",
"participantCode": "exemplo webhook",
"txId": "",
"payerDocumentType": "CPF",
2023 – 05 V2.0
56
Confidential
"payerDocumentNumber": "12345678901",
"payerName": "Joao da Silva",
"finalBeneficiaryrDocumentType": "",
"finalBeneficiaryDocumentNumber": "",
"finalBeneficiaryName": "",
"dueDate": "2023-05-22",
"nominalValue": 5,
"payedValue": 4.4,
"interestValue": 0,
"fine": 0,
"deductionValue": 0.5,
"rebateValue": 0.1,
"iofValue": 0
}
2023 – 05 V2.0
57
Confidential
To start generating and downloading a PDF invoice image, you must call the POST endpoint:
Production: https://trust-open.api.santander.com.br/collection_bill_management/v2/bills/{bill_id}/bank_slips
Available to generate invoices issued using any method (Internet Banking, APP Empresas, CNAB, XML and API) and any
type (Conventional and Boleto PIX), in PDF. To do this, it is enough that the bill is active and open at the bank's
database. Image generation is individual.
This is an independent service from the bill registration API. Therefore, access to the PDF is carried out in a separate call,
by indicating the following variables:
Important: It will not be possible to expose the link to the end customer.
The Beneficiary must download the PDF from the link provided by the service (download will be available for 5 minutes).
After this period, the beneficiary will be able to make a new call to the Endpoint to obtain a new link.
Request: body
Field Description Mandatory
payerDocumentNumber Payer document (CPF/CNPJ) Sim
2023 – 05 V2.0
58
Confidential
Notes
2023 – 05 V2.0
59
Confidential
Identification number of the call/operation informed by the Beneficiary in the POST and also used in
the GET as a key for consulting the payment slip.
• When the environment (environment) for processing is test "TESTE", the literal "TST" must be
informed in the first 3 positions, plus the numbering of the NSU.
In the GET (SONDA) the same NSU used in the POST to register the payment slip must be sent.
Note 3: Environment:
The following domains must be sent, according to the processing environment for the registration of
the payment slip:
• PRODUCAO (production): Indicates that the payment slip must be registered normally with
the Bank
• TESTE (Test): Indicates that the request is being sent for testing purposes only, the payment
slip will not be registered with the Bank.
Numeric identification code of the agreement in which the payment slip must be registered, the
agreement must belong to the same root as the CNPJ authenticated in the Token for the POST/GET
call and must be previously registered in the Workspace.
Field that will indicate the type of document that will be informed to the payer and the final
beneficiary. The consistency of the type of document is carried out against the number of the
informed document, if the verifying digit of the document is invalid, the registration of the payment slip
will be rejected.
Inform:
o CPF
o CNPJ
2023 – 05 V2.0
60
Confidential
The Original Payer is the Individual or Legal Entity that will receive the payment slip, it is the debtor of
the debt and has signed the commercial commitment with the Original Beneficiary (payment slip
issuer).
The payer's document number is mandatory for registration of the payment slip, it is a numerical field,
which must be filled in with 11 characters when CPF and 14 characters when CNPJ, including zeros
on the left.
The Payer's document number cannot be the same as that of the Original Beneficiary or Final
Beneficiary, in the case of a legal entity the CNPJ root cannot be the same either, except for payment
slips of the type of document “Deposit and Contribution Payment slip”.
Final Beneficiary is the recipient of the resource, in cases of collection agreement with third parties or
the holder of the deposit account or prepaid account recipient of the deposit or contribution.
In compliance with BACEN Circular nº 3956/19, in order to enable its customers to issue the payment
slip when using the Santander Billing Agreement, it is mandatory to inform the Final Beneficiary data*
(Document and Name) in the registration and issuance of the payment slip, and the document
number entered for the beneficiary cannot be the same as the document number of the original
beneficiary (in the case of a legal entity, the CNPJ root cannot be the same either).
In case the payment slip falls under any of the above rules, it is mandatory to inform:
o CPF
o CNPJ
• Document number (documentNumber)
• • Full name or Company name (name)
2023 – 05 V2.0
61
Confidential
Numerical code of up to 13 positions, to identify the payment slip at the Bank. Mandatory information
for registration of the payment slip.
Alphanumeric code of up to 15 positions, to identify the payment slip at the Company. Non-
mandatory information for payment slip registration.
For customers who also use the CNAB, if informed, it will be returned in the return file, when the
payment slip is settled, facilitating reconciliation.
Characterizes the origin of the commercial relationship between Beneficiary and Payer that originated
the registration of the collection payment slip. It must be informed in the payment slip record as
below:
DUPLICATA_MERCANTIL
DUPLICATA_SERVICO
NOTA_PROMISSORIA
NOTA_PROMISSORIA_RURAL
RECIBO
APOLICE_SEGURO
BOLETO_CARTAO_CREDITO
BOLETO_PROPOSTA
BOLETO_DEPOSITO_APORTE
CHEQUE
NOTA_PROMISSORIA_DIRETA
OUTROS
Specific Rules:
2023 – 05 V2.0
62
Confidential
Number, always adding/deducting the remaining balance from the previous invoice. If
the Beneficiary does not have a new invoice to issue to the payer, it is recommended
that the latter leave the payment slip for the previous month open.
o No, fine, interest, discount, deduction, protest and negative payment slip instructions
are allowed and, if sent, they will be disregarded in the payment slip registration.
2023 – 05 V2.0
63
Confidential
Type of discount to be granted for the payment slip, not being mandatory for registration:
Inform:
• ISENTO
• VALOR_DATA_FIXA
• VALOR_DIA_CORRIDO
• VALOR_DIA_UTIL
• The dates need to be increasing, not exceeding the due date of the payment slip;
• The amount of each of the discounts added to the amount of the rebate (if any) cannot be
equal to or greater than the face value of the payment slip.
Type of protest to be assigned to the payment slip, after the due date the protest will be issued
according to the number of days defined in the payment slip record (protestQuantityDays)
Inform:
• SEM_PROTESTO
• DIAS_CORRIDOS
• DIAS_UTEIS
• CADASTRO_CONVENIO
2023 – 05 V2.0
64
Confidential
The number of days for protest (protestQuantityDays) is mandatory for protest types
DIAS_CORRIDOS and DIAS_UTEIS.
If the CADASTRO_CONVENIO option is indicated, the number of days previously registered in the
agreement will be assigned.
Number of days after the due date to write off the payment slip.
If zeros are entered, it will default to the profile of the beneficiary's health plan.
Mandatory information that indicates the type of payment to be assigned to the payment slip:
Inform:
• REGISTRO: It will allow the payment slip to be paid only for the nominal value calculated
(interest, fine, discount and rebate);
• DIVERGENTE: It will allow the payment of the payment slip for a range of values, with a
minimum and maximum value/percentage defined in the registry;
• PARCIAL: It will allow up to 99 payments for the same payment slip, for a value range, with a
minimum and maximum value/percentage defined in the registry;
Mandatory numerical field for payment slips where the type of payment “PARCIAL” was indicated,
indicates the number of payments that will be allowed for the same payment slip, with a maximum of
99.
Mandatory field for payment slips where the type of payment “DIVERGENTE” or “PARCIAL” was
indicated. This field will define if the minimum and maximum values for payment slip payment will be
expressed in value or percentage.
Inform:
• PERCENTUAL
• VALOR
• When the type of value informed is PERCENTUAL, consider the following formatting
9(10)V99999
• When the type of value entered is VALOR, consider the following formatting 9(10)V99000
2023 – 05 V2.0
65
Confidential
• When the type of value informed is PERCENTUAL, consider the following formatting
9(10)V99999
• When the type of value entered is VALOR, consider the following formatting 9(10)V99000
IOF is the acronym for Tax on Financial Operations, a tax to be collected on financial operations
involving credit, exchange, insurance, among others.
If the payment slip fits into operations where there is a need to collect IOF, the Bank can provide this
service, for this the Beneficiary must inform the percentage of IOF in the payment slip record, when it
is settled the Bank will deduct of the IOF for transfer to the responsible body.
There are also other ways to collect IOF in the settlement of payment slips:
It is also possible that the IOF percentage is fixed and is previously registered in the agreement, in
this case, if a different percentage is entered in the “percentageIOF” field during the registration of the
payment slip, it will be sovereign to the registration of the agreement.
In this modality, the Bank must inform the list of IOF rates that can be used. The customer must
inform in the first 2 positions of the field Our Number (bankNumber) the code referring to the tax rate.
Note: In this case, the payment slip will be registered with Our Number without the first 2 positions, as
they will be used exclusively for assigning the corresponding IOF rate.
Credit sharing is a feature that allows the credit arising from the settlement of a payment slip to be
shared between up to 4 different current accounts.
Current accounts are associated with a receiver code, which must be previously registered in the
agreement to use the service.
2023 – 05 V2.0
66
Confidential
Field that will indicate the amount to be shared between each of the current accounts associated with
the receiving codes.
The sum of the shared values must be equal to the nominal value of the payment slip.
Field used to indicate what type of PIX key the Beneficiary registered with Banco Santander.
It must be used in cases where the Beneficiary wants to link a PIX QRCode to the payment slip
(Boleto SX)
Inform:
• CPF
• CNPJ
• CELULAR
• EMAIL
• EVP
*Payment SX slips paid via QRCode can be consulted through the PIX Receipts API.
Later, the PIX Return functionality will also be available for BOLETO SX, when paid through
QRCode.
For more information, access the PIX API documentation through the Santander Developer Portal:
https://developer.santander.com.br/api/documentacao/pix
Field used to indicate the PIX key code registered at Banco Santander to identify the Beneficiary and
the associated current account to receive the credits.
To issue the QR Code, the Beneficiary must have a valid key registered to receive PIX.
Identification adopted and controlled by the Beneficiary if completed, if not completed, the Bank will
assign this identification automatically, according to the current system rule:
2023 – 05 V2.0
67
Confidential
Date (DDMMYYYY)
Our number with 13 digits
Beneficiary Code with 9 digits
Environment (T) Test (P) Production with 1 digit
Collection System Acronym with 1 digit
This identification must be unique for each payment slip with a minimum of 26 characters and a
maximum of 35 alphanumeric characters. The characters accepted in this context are: A-Z, a-z, 0-9,
not containing blanks and nulls.
Code returned by Banco Santander so that the company can generate the Dynamic QRCode and
share the image or link with its payers to facilitate the payment.
The generation of the Dynamic QR Code image is the responsibility of the Beneficiary. Dynamic QR
Code generation standards follow the rules of the Central Bank.
Dynamic QRCodes can be read by your payer's Smartphone and the link used from any device.
Field made available to enable querying the status of the QRCode generated through an API.
To change (advance or extend) the due date of the payment slip, inform the dueDate field in YYYY-
MM-DD format indicating the new due date.
2023 – 05 V2.0
68
Confidential
Instruction available only for payment slips whose type of document is BCC – Credit Card Payment
slip or BDP – Proposal Payment slip.
If the type of document is different from those mentioned above, the instruction will be rejected.
Inform:
• PROTESTO
• BAIXA
CANCELAR_PROTESTO
The cancellation of the protest depends on the assessment of the notary responsible for the protest.
The beneficiary may send in the same request up to 10 instructions for the same payment slip, with
the exception of write-off, protest and protest cancellation instructions, which need to be sent
separately.
Instruction available for payment slips in which a number of days for protest after expiration was
indicated in the record,
The number of protest days can be between 1 and 99. Indicate the desired number of days in the
“protestQuantityDays” field.
If the customer wants the payment slip to no longer be protested, he must send the protest
cancellation instruction.
To grant, cancel or change the deduction value of a payment slip, inform the “deductionValue” field.
2023 – 05 V2.0
69
Confidential
The rebate amount cannot be equal to or greater than the face value of the payment slip. If the
payment slip also has discount instructions, the amount of the rebate added to the amount of
discounts cannot be equal to or greater than the face value of the payment slip.
To grant or change the 1st, 2nd or 3rd discount, it is mandatory to send the fields:
• Type
• DiscountOne, DiscountTwo or DiscountThree
• Value
• LimitDate
To cancel the 1st, 2nd or 3rd discount, the following fields must be sent:
• Type
• DiscountOne, DiscountTwo or DiscountThree
• Value
The amount of discounts cannot be equal to or greater than the face value of the payment slip. If the
payment slip also has a rebate instruction, the value of the discounts added to the rebate value
cannot be equal to or greater than the face value of the payment slip.
The deadline for discounts must be less than the due date of the payment slip.
To grant or change a discount in advance on working/calendar days, the following fields must be
sent:
• Discount Type
• DiscountOne
• Value different from “0”
To cancel the discount in advance on working/calendar days, the following fields must be sent:
• Discount Type
• DiscountOne
• Value, which must be sent with “0”
The amount of discounts cannot be equal to or greater than the face value of the payment slip. If the
payment slip also has a rebate instruction, the value of the discounts added to the rebate value
cannot be equal to or greater than the face value of the payment slip.
2023 – 05 V2.0
70
Confidential
The amount of the fine cannot exceed 60% of the face value of the payment slip.
The fine date cannot be less than the due date of the payment slip.
The amount of interest per month cannot exceed 60% of the nominal value of the payment slip.
Instruction not accepted for payment slips registered with the payment type “Conforme Registro”.
Instruction accepted only for payment slips whose minimum payment amount is registered as
“Percentual”.
2023 – 05 V2.0
71
Confidential
Instruction not accepted for payment slips registered with the payment type “Conforme Registro”.
Instruction accepted only for payment slips whose maximum amount for payment is registered as
“Percentual”.
Instruction not accepted for payment slips registered with the payment type “Conforme Registro”.
Instruction accepted only for payment slips whose minimum payment amount is registered as “Valor”.
Instruction not accepted for payment slips registered with the payment type “Conforme Registro”.
Instruction accepted only for payment slips whose maximum amount for payment is registered as
“Valor”.
Note 41: Number of days for a payment slip to be written off after the due date
Instruction to change the amount of payment slip write-off days after maturity.
Inform the number of days in the writeOffQuantityDays field, which must be between 1 and 99.
Alphanumeric field of up to 15 positions, for identifying the payment slip in the company.
To include, exclude or change Your Number, indicate the “clientNumber” field.
If the field is received with more than 15 positions, the instruction will be rejected.
2023 – 05 V2.0
72
Confidential
Alphanumeric field of up to 25 positions, for identifying the payment slip in the company. To add,
delete or change the Participant Control, indicate “participantCode”.
If the field is received with more than 25 positions, the instruction will be rejected.
Only letters, numbers and spaces will be accepted in this field. Special characters will not be
accepted.
For customers who also use the CNAB, if informed, it will be returned in the return file, when the
payment slip is settled, facilitating reconciliation.
• Validity of the certificate used, both to obtain credentials and to carry out requests;
• Check the correct indication of the Client ID and Client Secret in their respective fields (without spaces
after the value), as indicated in this manual;
• Make sure that the credentials used were obtained for the consumption of the Collection API (issuance
of payment slips)
• Validate if the X-Application-Key was correctly informed in the requests (body). This field must have the
same value as the Client Id and must be informed in all routes, with the exception of the Token route;
• Check if the URL indicated in the request is correct and make sure that they match the desired
environment (Sandbox, Production);
2023 – 05 V2.0
73
Confidential
• Confirm that the Method (POST, GET, PATCH, DELETE) matches the desired operation, as indicated
in this manual;
• Make sure you are using a new/updated and correct token with no spaces;
• For tests via Postman or similar, always use the most up-to-date version of it;
• Verify the correct import of the certificate (Cert + Key or PFX + Password) in the Postman/company
software, and if the Santander Billing API URL was correctly indicated in the Host;
• If the above validations fail, generate new credentials in our Developer Portal and perform new tests.
• Pay attention to the structure of the fields to be sent to the bank for processing. They must be sent
exactly the same as those reported in this material and in the Collection Postman.
2023 – 05 V2.0
74
Confidential
Error Messages
1- Errors in the registration and consultation of payment slips
1.1 Document Fields:
2023 – 05 V2.0
75
Confidential
1042 key/keyDictType Address key type is invalid. Valid options: CPF; CNPJ; CELULAR;
EMAIL; EVP
1043 bankNumber The bankNumber field cannot be equal to 0
1044 discount/type = null Invalid discount type. Valid options: ISENTO, VALOR DATA FIXA,
VALOR DIA CORRIDO, VALOR DIA UTIL
Discount/value = EXEMPT For the type of discount it is not possible to assign value
1045 discount/limitDate = EXEMPT For the type of discount it is not possible to assign a deadline
discount/limitDate = FIXED DATE For this type, it is necessary to inform the deadline for the discount
VALUE
discount/value = FIXED DATE VALUE For this type, it is necessary to inform the value for discount
1046
discount/type = FIXED DATE VALUE For this type, it is necessary to assign discounts
discount/type = CURRENT DAY For this type, it is necessary to assign discounts
VALUE/BUSINESS DAY VALUE
discount/discountsValue = CURRENT For this type, it is necessary to inform the value for discount
1047 DAY VALUE/BUSINESS DAY VALUE
discount/value = CURRENT DAY This type of discount allows only 1 item
VALUE/BUSINESS DAY VALUE
1048 paymentType Invalid protest type. Valid options: REGISTRO; DIVERGENTE;
PARCIAL
1049 protestType Invalid protest type. Valid options: SEM PROTESTO; DIAS CORRIDOS;
DIAS UTEIS; CADASTRO CONVENIO
1050 protest/quantityDay For this type of protest, it is necessary to inform the deadline
1052 covenantCode The covenantCode field cannot be equal to 0
1053 nsuCode nsuCode field cannot be equal to 0
1054 nsuCode For test environment (T), nsuCode must start with TST without 0
1055 parcelsQuantity The parcelsQuantity field cannot be filled in for the REGISTRO
payment type
2023 – 05 V2.0
76
Confidential
2081 nsuCode For the test environment (T), the nsuCode must be TST /
Product Rules:
Código Description
2023 – 05 V2.0
77
Confidential
2023 – 05 V2.0
78
Confidential
2023 – 05 V2.0
79
Confidential
00486 DICT addressing key must be informed for type of addressing key entered
00487 DICT addressing switch not located on base
00488 Agreement data does not match DICT addressing data
00489 Payer's root CNPJ cannot be the same as that of the original beneficiary
00490 Payer's root CNPJ cannot be the same as that of the final beneficiary
00491 CNPJ Root of the final beneficiary cannot be the same as that of the original beneficiary
00492 Payer's CPF cannot be the same as the original beneficiary's
00493 Payer's CPF cannot be the same as the final beneficiary's
00494 CPF of the final beneficiary cannot be the same as that of the original beneficiary
00495 Registration not allowed – Final Beneficiary with restriction
00496 TXID reported twice
00497 TXID entered incorrectly
00498 Unavailability in the generation of the QR Code Pix.
00499 Final beneficiary not informed in the payment slip record
3042 writeOffQuantityDays The number of sick days must be between 1 and 90 days
3046 discount To change the amount of the discount, you must enter a value
3047 discount To change type 2 or 3, you must inform only the value and date in the field
discountOne - Remove date, leave only value
3048 discount.type To change discounts, it is necessary to inform the type
2023 – 05 V2.0
80
Confidential
3092 finePercentage and fineDate To make the fine change effective, the finePercentage and fineDate fields
must be filled in
3093 limitDateWithoutInterest For interest cancellation, the limitDateWithoutInterest field must not be
filled in
3094 limitDateWithoutInterest The limitDateWithoutInterest field must be filled in
2.3 Formats:
901 Alphanumeric Field [field_name] only allows alphanumeric values [and (allowed_characters)]
902 Date The field [name_field] only allows dates in the pattern YYY-MM-DD, separated by a
hyphen, example (2022-09-09)
903 Monetary The field [name_field] only allows numerical values with 2 decimals separated by a
period. example (1000.00).
904 Percentage The field [name_field] only allows numbers with [number_decimals] decimals
separated by a period. example (100.[example_number_decimals])
905 Letters The field [field_name] only allows letters
Product Rules:
CODE MESSAGE
002 Non-existent contract code
003 Protest or layoff instructions must not be sent together with other instructions
004 Our non-existent number
005 Invalid request type code entered
2023 – 05 V2.0
81
Confidential
006 Error in the request to handle "Instructions Requested" - Invalid informed date
007 Error in the request to handle "Requested Instructions" - Invalid informed value
008 Error in the request to handle “Instructions Requested” - Invalid informed field
055 Agreement is not active
062 Payment slip FIDC cannot be written off
063 Unauthorized instruction for traded payment slips
065 Instruction already commanded, awaiting authorization
066 Instruction will be pending authorization by the Guarantees system
067 Payment slip negotiated, instruction not allowed
068 Payment slip under negotiation, release not allowed
069 Payment slip under negotiation, write-off not allowed
071 Instruction not allowed, payment slip already written
072 Instruction not allowed, payment slip already settled
088 Instruction not allowed, payment slip is not in the notary's office
099 There was an error, please try again or contact us – “Internal Code”
110 Instruction not accepted by the Discount system
158 Instruction not allowed, agreement is not active
159 Statement cannot be commanded for proposal payment slip
160 Statement cannot be commanded for credit card payment slip
161 The statement cannot be commanded to payment slip Cash In
164 Instruction cannot be commanded for deposit payment slip
169 Instruction rejected, payment slip in negotiation
208 Instruction not allowed, protest order already issued
209 Instruction not allowed, protest withdrawal in progress
210 Instruction not allowed, payment slip already sent to notary
211 Instruction not allowed, payment slip already protested
213 Instruction not allowed, payment slip is not due
214 Negotiated payment slip cannot be protested
215 Type of document cannot be protested
217 Payment slip negotiated, not protestable in this location
218 Payment slip not protestable in this location
222 Protest not allowed for payer
226 Office space is blocked
254 Change not allowed, payment slip has no protest instruction
255 Change not allowed, payment slip has no write-off instruction
2023 – 05 V2.0
82
Confidential
256 Change not allowed, payment slip with write-off due to the agreement profile
257 Change not allowed, payment slip with protest cycle already started
304 Suspension not allowed, payment slip without protest order issued
352 Cancellation not allowed, payment slip without protest
355 Payment slip already has protest cancellation in progress
356 Cancellation not allowed, payment slip is not protested
401 Instruction not allowed for Assignment payment slip
402 Instruction not allowed for payment slip FIDC
451 Payment slip FIDC cannot be discounted
452 Payment slip FIDC cannot be discounted
453 "Instruction" value greater than or equal to the payment slip value
463 First discount date greater than the due date
464 Date second discount greater than due date
465 Third discount date greater than the due date
466 First discount date less than issue date
467 Date second discount less than issue date
468 Third discount date less than issue date
470 Fine date must be greater than due date
471 Interest date must be greater than maturity
476 Discount amount + prim. discount greater than or equal to the payment slip value
477 Discount amount + sec. discount greater than or equal to the payment slip value
478 Discount amount + third discount greater than or equal to the payment slip value
483 Discount value + day discount greater than or equal to the value of the bill
484 Rebate value + working day discount greater than or equal to the payment slip value
485 First Value discount + rebate greater than or equal to the payment slip value
486 First discount date greater than or equal to the second discount date
487 Instruction second discount without having the first
488 Date second discount less than or equal to the first
489 Date second discount greater than or equal to the third
490 Value according to discount + discount greater than or equal to the value of the bill
491 Discount value calendar days greater than or equal to the value of the ticket
492 Discount value calendar days + deduction greater than or equal to the value of the bill
493 Discount value working days greater than or equal to the value of the ticket
494 Discount value working days + deduction greater than or equal to the value of the bill
495 Instruction third discount without having the second
2023 – 05 V2.0
83
Confidential
2023 – 05 V2.0
84
Confidential
2023 – 05 V2.0
85