Boleto

Call the Boleto API to request payments via banking billet (boleto bancário).


POST /v2/payin

Request

curl -v --location --request POST 'https://sandbox.smartfastpay.com/v2/payin' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <Access-Token>' \
    --data-raw '{
        "customer": {
            "id": "b48a0728-9ff4-47ee-8f1b-92d2d5813dda",
            "name": "John Doe",
            "email": "john.doe@teste.com",
            "document": {
                "type": "CPF",
                "number": "12345678909"
            },
            "phone": "+5511912345678",
            "address": {
                "address_1": "Rua da avenida",
                "address_2": "Quadra 01",
                "number": "100",
                "neighborhood": "Londrina",
                "city": "Florianópolis",
                "state": "SC",
                "postal_code": "12332-343",
                "country_code": "BRA"
            }
        },
        "country": "BRA",
        "payment_method": "boleto",
        "notification_url": "https://webhook.site/asdfasdf",
        "transaction": {
            "id": "b7178a51-3c86-4c08-80ac-49f2b93c58bc",
            "currency": "BRL",
            "amount": 2
        }
    }'

Parameters details

Parameter
Type
Required
Description

customer.id

string

yes

Unique identifier for the customer in your system. This value should remain consistent across all transactions for the same customer

customer.name

string

yes

The full name of the customer making the payment. It should match the name on the customer's identification documents

customer.email

string

yes

The email address of the customer. This will be used for sending payment confirmations and notifications

customer.phone

string (E.164)

no

customer.birthdate

string

no

The birthdate of the customer, provided in the format mm-dd-yyyy. This parameter may be required depending on the country regulations or the payment method

customer.document.number

string Format: 99999999999 / 9999999999999

yes

The official identification number of the customer. This is typically a national ID, or other government-issued document

customer.document.type

string (CPF or CNPJ)

yes

customer.address.addres_1

string

yes

The primary street address of the customer

customer.address.addres_2

string

no

Additional address information, such as apartment number or suite

customer.address.city

string

yes

The city in which the customer resides

customer.address.country_code

string

yes

customer.address.neightborhood

string

yes

The neighborhood or district of the customer's address

customer.address.number

string

yes

The street number of the address

customer.address.postal_code

string

yes

The postal or ZIP code for the customer's address

customer.address.state

string

yes

The state or region of the customer's address

transaction.id

string

yes

A unique identifier for the transaction. This ID should be generated by your system to track the specific payment process

transaction.currency

string (BRL or USD)

yes

transaction.amount

decimal (10,2)

yes

The total amount of the transaction in the specified currency. This value should be a numeric amount (use dot instead of comma) Eg: 300.10

transaction.expire

integer (11)

no

The time in seconds until the transaction expires and is no longer valid

branch

string min: 1 | max: 255

no

The specific branch or location identifier where the transaction is being processed, if applicable

country

string

yes

payment_method

string

yes

The method of payment being used for the transaction, such as bank transfer, credit card...

notification_url

string

yes

The URL to which payment notifications will be sent. Ensure this URL is accessible and configured to handle the notification format

Response

{
	"requestId": "67437fd917d0d7ebc5b361aa6cba01c6\/17091068426296675474",
	"data": {
		"id": "24d075a2-2b97-44a4-b9d8-5f25bbbc5c95",
		"status": "pending",
		"expires_in": 1727213203,
		"payment": {
			"method": "boleto",
			"url": "https:\/\/sandbox-checkout.smartfastpay.com\/boleto\/c307e2b5-87987fsdfgsgf",
			"bar_code": "34191.09164 767678 8768 6876 7867 897689689679768"
		},
		"values": {
			"source_total": "2.00000000",
			"source_currency": "BRL",
			"exchanged_total": "2.00",
			"exchanged_currency": "BRL",
			"exchange": "1.00",
			"fee": "0.02000000"
		}
	}
}

Response details following the link: overview

Last updated