Create boletos

POST {{baseUrl}}/{{version}}/boleto

This is how you create a new list of boletos. You can create up to 100 boletos per request. In case a boleto is paid after its due date and there is fine or interest, its amount will be updated with the paid amount. The same is valid if the boleto is paid with a discount.

ParametersValue TypeDescription
amountREQUIREDA positive integer that represents the amount in cents to be charged. Example: amount=100 (R$1.00)
nameREQUIREDCustomer name
taxIdREQUIREDCustomer CPF (11 digits formatted or unformatted) or CNPJ (14 digits formatted or unformatted). Example: 012.345.678-90
streetLine1REQUIREDCustomer street address
streetLine2REQUIREDCustomer street address complement
disctrictREQUIREDCustomer district name
cityREQUIREDCustomer city name
stateCodeREQUIREDCustomer state code
zipCodeREQUIREDCustomer zip code
dueOPTIONALDue date of the boleto. Example: 2020-06-27. The default value is set to two days after creation date.
fineOPTIONALPercentage of the boleto amount charged if customer pays after the due date. Default value = 2.00 (2%)
interestOPTIONALMonthly interest, in percentage, charged if customer pays after the due date. Default value = 1.00 (1%)
overdueLimitOPTIONALNumber of days after due date after which the boleto will no longer be payable. 0 <= overdueLimit <=59. Default value=59
receiverNameOPTIONALName of the credit receiver (Sacador Avalista). If none is informed, workspace owner name will be used. If informed, receiverTaxId must also be informed.
receiverTaxIdOPTIONALTax ID (CPF/CNPJ) of the credit receiver (Sacador Avalista). If none is informed, workspace owner tax ID will be used. If informed, receiverName must also be informed.
tagsOPTIONALFilter entities that contain the specified tags.
descriptionsOPTIONALList of up to 15 descriptions containing information to help the customer understand why he is being charged. You can add text and amount to create a table or you can just add text. When generating PDFs, if the booklet layout is selected, only the text field of the first description will be considered and it will be used to fill the installment cell in the PDF.
discountsOPTIONALList of up to 2 discounts specifying the discount percentage and the limit date up to when the discount is valid.

Request Body

{"boletos"=>[{"amount"=>28000000, "name"=>"Iron Bank S.A.", "taxId"=>"20.018.183/0001-80", "streetLine1"=>"Av. Faria Lima, 1844", "streetLine2"=>"CJ 13", "district"=>"Itaim Bibi", "city"=>"São Paulo", "stateCode"=>"SP", "zipCode"=>"01500-000", "due"=>"2020-09-30", "fine"=>2, "interest"=>1.3, "overdueLimit"=>59, "receiverName"=>"Winterfell S. A.", "receiverTaxId"=>"71.735.814/0001-12", "descriptions"=>[{"text"=>"McDonnell Douglas F-15 Eagle", "amount"=>27000000}, {"text"=>"US Drone", "amount"=>1000000}], "discounts"=>[{"date"=>"2020-09-25", "percentage"=>10.0}, {"date"=>"2020-09-26", "percentage"=>9.0}], "tags"=>["war supply", "invoice #1234"]}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;message&quot;:&quot;Boleto(s) successfully created&quot;,&quot;boletos&quot;:[{&quot;taxId&quot;:&quot;20.018.183/0001-80&quot;,&quot;overdueLimit&quot;:59,&quot;fine&quot;:2,&quot;id&quot;:&quot;6608220445474816&quot;,&quot;receiverName&quot;:&quot;Winterfell S. A.&quot;,&quot;city&quot;:&quot;São Paulo&quot;,&quot;fee&quot;:0,&quot;streetLine2&quot;:&quot;CJ 13&quot;,&quot;district&quot;:&quot;Itaim Bibi&quot;,&quot;streetLine1&quot;:&quot;Av. Faria Lima, 1844&quot;,&quot;due&quot;:&quot;2020-10-01T02:59:59.999999+00:00&quot;,&quot;discounts&quot;:[{&quot;date&quot;:&quot;2020-09-26T02:59:59.999999+00:00&quot;,&quot;percentage&quot;:10},{&quot;date&quot;:&quot;2020-09-27T02:59:59.999999+00:00&quot;,&quot;percentage&quot;:9}],&quot;workspaceId&quot;:&quot;4888651368497152&quot;,&quot;interest&quot;:1.3,&quot;status&quot;:&quot;created&quot;,&quot;tags&quot;:[&quot;war supply&quot;,&quot;invoice #1234&quot;],&quot;zipCode&quot;:&quot;01500-000&quot;,&quot;line&quot;:&quot;34191.09107 11407.667309 71444.640008 7 83940028000000&quot;,&quot;name&quot;:&quot;Iron Bank S.A.&quot;,&quot;created&quot;:&quot;2020-09-01T15:08:46.303038+00:00&quot;,&quot;receiverTaxId&quot;:&quot;71.735.814/0001-12&quot;,&quot;barCode&quot;:&quot;34197839400280000001091011407667307144464000&quot;,&quot;amount&quot;:28000000,&quot;stateCode&quot;:&quot;SP&quot;,&quot;descriptions&quot;:[{&quot;text&quot;:&quot;McDonnell Douglas F-15 Eagle&quot;,&quot;amount&quot;:27000000},{&quot;text&quot;:&quot;US Drone&quot;,&quot;amount&quot;:1000000}]}]}