Create a boleto transaction

⚠️

The Split de Pagamento only accepts Banco do Brasil boleto.

ℹ️

The characteristics of a boleto transaction are:

  • Boletos must be registered.
  • Send the parameters exclusive to boleto: Payment.Bank, Payment.BoletoNumber, Payment.Assignor, Payment.Demonstrative, Payment.ExpirationDate, Payment.Identification, and Payment.Instructions.
  • It is not possible to register the merchant's trade name; the boleto will be generated with the legal business name.

Valid characters are: numbers, uppercase letters A to Z, and special conjunction characters (hyphen “-” and apostrophe “’”). When used, there must be no spaces between the letters.

  • Correct examples: D’EL-REI / D’ALCORTIVO / SANT’ANA
  • Incorrect examples: D’EL - REI / a blank space between words.
ℹ️

Alphanumeric CNPJs will be implemented by the Brazilian Federal Revenue Service in July 2026

This change applies only to new registrations. There will be no changes to existing CNPJs.

The alphanumeric CNPJ is already supported by Cielo, with no changes required to your integration.

We recommend checking whether adjustments are needed in your merchant’s own checkout systems.



Request

AmbienteMétodoEndpoint
Sandboxhttps://apisandbox.braspag.com.br/v2/sales/
Produçãohttps://api.braspag.com.br/v2/sales/
{
    "MerchantOrderId": "2017091101",
    "Customer": {
        "Name": "Nome do Comprador",
        "Identity": "12345678909",
        "IdentityType": "CPF",
        "Address": {
            "Street": "Alameda Xingu",
            "Number": "512",
            "Complement": "27 andar",
            "ZipCode": "12345987",
            "City": "Sao Paulo",
            "State": "SP",
            "Country": "BRA",
            "District": "Alphaville"
        }
    },
    "Payment": {
        "Provider": "Braspag",
        "Bank": "BancoDoBrasil",
        "Type": "Boleto",
        "DoSplit": "True",
        "Amount": 10000,
        "BoletoNumber": "2017091101",
        "Assignor": "Empresa Teste",
        "Demonstrative": "Desmonstrative Teste",
        "ExpirationDate": "2017-12-31",
        "Identification": "12346578909",
        "Instructions": "Aceitar somente até a data de vencimento.",
        "splitpayments": [
            {
                "subordinatemerchantid": "f2d6eb34-2c6b-4948-8fff-51facdd2a28f",
                "amount": 5000,
                "fares": {
                    "mdr": 5,
                    "fee": 30
                }
            },
            {
                "subordinatemerchantid": "9140ca78-3955-44a5-bd44-793370afef94",
                "amount": 5000,
                "fares": {
                    "mdr": 4,
                    "fee": 15
                }
            }
        ]
    }
}

Below are the field properties in this request:

Property (Header)TypeSizeMandatoryDescription
MerchantIdGuid36YesMerchant identifier in Split de Pagamento
MerchantKeyText40YesPublic key for Dual Authentication in Split de Pagamento
Content-TypeHeader40YesApplication/json
Property (Body)TypeSizeRequiredDescription
MerchantOrderIdText50YesOrder identification number
Customer.NameText60YesShopper`s name
Customer.IdentityText14YesShopper's CPF, or CNPJ number
Allows submission of alphanumeric CNPJs.
Customer.IdentityTypeText255YesType of shopper identification document (CPF or CNPJ)
Customer.Address.StreetText60YesShopper's address
Customer.Address.NumberText60YesShopper's address number
Customer.Address.ComplementText60YesShopper's address complement
Customer.Address.ZipCodeText8YesShopper's address ZIP code
Customer.Address.DistrictText60YesShopper`s address neighborhood
Customer.Address.CityText18YesShopper's address city
Customer.Address.StateText2YesShopper's address state
Customer.Address.CountryText35YesShopper`s address country
Payment.ProviderText15YesName of the boleto payment provider Braspag
Payment.BankText15YesName of the bank where the boleto will be issued BancoDoBrasil
Payment.TypeText100YesType of payment method. In this case, Boleto
Payment.AmountNumber15YesOrder amount (must be sent in cents)
Payment.BoletoNumberText9NoBoleto number ("Nosso Número"). If provided, it overrides the value configured in the payment method
Payment.AssignorText200NoAssignor name. If provided, it overrides the value configured in the payment method
Payment.DemonstrativeTextN/ANoStatement text. If provided, it overrides the value configured in the payment method
Payment.ExpirationDateDateAAAA-MM-DDNoDays until the boleto due date. If not previously set in the payment method, this field is mandatory. If sent in the request, it overrides the value configured in the payment method.
Payment.IdentificationText14NoAssignor's CNPJ. If provided, it overrides the value configured in the payment method
Payment.InstructionsText450NoBoleto instructions. If provided, it overrides the value configured in the payment method

Response

{
    "MerchantOrderId": "2017091101",
    "Customer": {
        "Name": "Nome do Comprador",
        "Identity": "12345678909",
        "IdentityType": "CPF",
        "Address": {
            "Street": "Alameda Xingu",
            "Number": "512",
            "Complement": "27 andar",
            "ZipCode": "12345987",
            "City": "Sao Paulo",
            "State": "SP",
            "Country": "BRA",
            "District": "Alphaville"
        }
    },
    "Payment": {
        "Instructions": "Aceitar somente até a data de vencimento.",
        "ExpirationDate": "2020-12-31",
        "Demonstrative": "Desmonstrative Teste",
        "Url": "https://transactionsandbox.pagador.com.br/post/pagador/reenvia.asp/4b97aa02-9bf2-4e06-8197-c099b861e226",
        "BoletoNumber": "0000000248",
        "BarCodeNumber": "",
        "DigitableLine": "",
        "Assignor": "Empresa Teste",
        "Address": "N/A, 1",
        "Identification": "12346578909",
        "ProviderReturnCode": "0",
        "ProviderReturnMessage": "Transação criada com sucesso",
        "Bank": 4,
        "Amount": 10000,
        "ReceivedDate": "2020-03-08 08:19:27",
        "Provider": "Braspag",
        "Status": 1,
        "IsSplitted": true,
        "ReturnMessage": "Transação criada com sucesso",
        "ReturnCode": "0",
        "PaymentId": "4b97aa02-9bf2-4e06-8197-c099b861e226",
        "Type": "Boleto",
        "Currency": "BRL",
        "Country": "BRA",
        "SplitPayments": [
            {
                "SubordinateMerchantId": "f2d6eb34-2c6b-4948-8fff-51facdd2a28f",
                "Amount": 6000,
                "Fares": {
                    "Mdr": 5.0,
                    "Fee": 30
                },
                "Splits": [
                    {
                        "MerchantId": "f2d6eb34-2c6b-4948-8fff-51facdd2a28f",
                        "Amount": 5670
                    },
                    {
                        "MerchantId": "f43fca07-48ec-46b5-8b93-ce79b75a8f63",
                        "Amount": 330
                    }
                ]
            },
            {
                "SubordinateMerchantId": "f2d6eb34-2c6b-4948-8fff-51facdd2a28f",
                "Amount": 4000,
                "Fares": {
                    "Mdr": 4.0,
                    "Fee": 15
                },
                "Splits": [
                    {
                        "MerchantId": "9140ca78-3955-44a5-bd44-793370afef94",
                        "Amount": 3825
                    },
                    {
                        "MerchantId": "f43fca07-48ec-46b5-8b93-ce79b75a8f63",
                        "Amount": 175
                    }
                ]
            }
        ],
        "Links": [
            {
                "Method": "GET",
                "Rel": "self",
                "Href": "https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/4b97aa02-9bf2-4e06-8197-c099b861e226"
            }
        ]
    }
}

Below are the field properties in this response:

PropertyDescriptionTypeSizeFormat
PaymentIdOrder identifier fieldGuid36xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
ExpirationDateExpiration dateText102014-12-25
UrlURL of the generated boletostring256https://.../pagador/reenvia.asp/8464a692-b4bd-41e7-8003-1611a2b8ef2d
BoletoNumberGenerated "Our Number"Text502017091101
BarCodeNumberNumeric representation of the barcodeText4400091628800000157000494250100000001200656560
DigitableLineDigitable lineText25600090.49420 50100.000004 12006.565605 1 62880000015700
AddressMerchant address registered with the bankText256Av. Teste, 160
StatusTransaction statusByte2e.g., 1