Approve Boleto Payment
To make a Boleto payment, two calls are required:
-
Transfer validation token request: /baas/token_request
-
Transfer approval: /baas/movement_validation
info
The sent Token must be provided at the time of boleto payment approval, and the "movement_payload" must be the same as provided when the token was requested.
Request
METHOD
POST
ENDPOINT
/baas/movement_validation
Request Body
{
"token": "358192",
"movement_payload": {
"resource_account_key": "6d30a0b1-cb90-4ceb-b1ea-5bd600cdf3c8",
"digitable_line": "32990001031000699926165000000201993810000003500"
}
}
Body Params
| Field | Type | Description | Characters |
|---|---|---|---|
token * | string | Authentication token | 6 |
agent_document_number * | string | CPF of the user who will receive the token. (Numbers only) | 11 |
movement_payload | Object | Payload containing transfer information | Object movement_payload |
Object movement_payload
| Field | Type | Description | Characters |
|---|---|---|---|
resource_account_key * | uuidv4 | Unique identification key of the account that will make the payment | 36 |
digitable_line * | string | Boleto digitable line | 47 |
Response
STATUS
200Response Body
{
"movement_info": {
"origin": {
"account": "42863",
"branch": "0001",
"digit": "0",
"document": "73685224000239",
"name": "Empresa de Teste",
"financialInstitution": "QI Sociedade de Crédito Direto S.A."
},
"faceValue": "2185.0",
"amount": "2185.0",
"dueDate": "2024-04-18T03:00:00.000Z",
"type": "bank_slip_payment",
"digitableLine": "32990001031000699926165000000201993810000003500",
"barCode": "00191969000002185000000001120035240112154117",
"destination": {
"document": "05626796000106",
"guarantorName": null,
"name": "Beneficiário do Boleto",
"guarantorDocument": null,
"bank": "QI Sociedade de Crédito Direto S.A."
}
},
"account_key": "0000000-0000-0000-0000-000000000000",
"transaction_key": "0000000-0000-0000-0000-000000000000",
"movement_status": "approved",
"schedule_key": null,
"movement_amount": 2185,
"origin_key": null,
"transacted_at_br": "2024-04-18 09:50:38-03:00",
"requester_user_key": "0000000-0000-0000-0000-000000000000",
"requester_key": "0000000-0000-0000-0000-000000000000",
"movement_request_key": "0000000-0000-0000-0000-000000000000",
"movement_date": "2024-04-18",
"approval_feedback": true,
"movement_type": "bank_slip_payment",
"movement_data": {
"transaction_key": "0000000-0000-0000-0000-000000000000",
"resource_account_key": "0000000-0000-0000-0000-000000000000",
"digitable_line": "32990001031000699926165000000201993810000003500"
},
"transacted_at": "2024-04-18 12:50:38"
}