Skip to main content

Confirm bank slip batch scheduling

This endpoint allows validating the two-factor authentication (2FA) token for a bank slip scheduling batch in batch_payment_schedule_status pending_2fa_approval.

Bank slip

A traditional bank slip (digitable line does not start with 8). It is registered in the Interbank Payment Chamber (CIP/Nuclea) and can be paid through financial and payment institutions authorized by the Central Bank.

Request

Request Endpoint

ENDPOINT
/bill_payment/account/ACCOUNT_KEY/payment/schedule_bank_slip/BATCH_PAYMENT_SCHEDULE_KEY/validate_token
METHOD
PATCH

Request Path Params

FieldTypeDescriptionCharacters
account_key *uuid4Unique account identifier key.36
batch_payment_schedule_key *uuid4Unique batch scheduling identifier key.36
Request Body: Batch scheduling token validation
{
"token": "329adf"
}

Body Params

FieldTypeDescriptionCharacters
tokenstringAuthentication code sent to the account transaction approver6

Response

Success Response

STATUS
200
Response Body: Confirmed scheduling batch
{
"batch_payment_schedule_key": "c4325104-d60b-44f3-aae4-49155564a2ea",
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"account_key": "6dc89d57-fac7-4643-b151-cd2ca0a7f68f",
"total_amount": 1357.3,
"batch_payment_schedule_status": "scheduled",
"payment_type": "bank_slip"
}

Response Body Params

FieldTypeDescription
batch_payment_schedule_key *uuid4Unique batch scheduling identifier key.
request_control_key *uuid4Unique client request identifier key (batch).
account_key *uuid4Debited account key.
total_amount *numberSum of item amounts in the batch.
batch_payment_schedule_status *enumBatch scheduling status after token validation.
payment_type *stringPayment type; for this flow, expected value is bank_slip.

Enumerators batch_payment_schedule_status

EnumeratorDescription
pending_2fa_approvalPending 2FA approval
scheduledScheduled
rejectedRejected
errorScheduling error

Error Response

STATUS
4XX
Response Body
{
"title": "Title",
"description": "Description in English",
"translation": "Description in Portuguese",
"code": "Code"
}
HTTP CodeQI CodeTitleDescription (eng)Description (pt-br)
403BIP000010ForbiddenUser is not allowed to do this actionUser is not allowed to do this action
404BIP000011Not FoundThe source account key was not found.The source account key was not found.
400BIP000058Bad RequestError while validating verification tokenError while validating verification token
400BIP000059Bad RequestNumber of verification token validation attempts exceeded.Number of verification token validation attempts exceeded.
400BIP000060Bad RequestVerification token expired.Verification token expired.
400BIP000061Bad RequestVerification token validation failed.Verification token validation failed.
400BIP000065Bad RequestPayment verification time window exceeded.Payment verification time window exceeded.
404BIP000083Not FoundBatch payment not found by batch payment key.Batch payment not found by batch payment key.
400BIP000085Bad RequestBatch payment status is not pending approval.Batch payment status is not pending approval.
400BIP000086Bad RequestA token is required for SMS or email validation.A token is required for SMS or email validation.