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
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