Retrieve P2P Batches

Returns a paginated list of P2P batches

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Query parameters

All parameters are optional.

ParamTypeDefaultDescription
limitinteger1000Records per page. Maximum 10000.
pageinteger1Page number (1-based).
initial_datestringLower bound for created_at. Format: YYYY-MM-DD or YYYY-MM-DD HH:MM:SS.
final_datestringUpper bound for created_at. Same format as initial_date.
searchstringFree-text LIKE search over batch description and code.
code_statusintegerFilter by transaction status code. See status codes.
batch_codeUUIDRestrict the result to a single batch by its code.
bank_account_codeUUIDRestrict the result to batches whose items originate from the given bank account.

Status codes

Use the numeric value in code_status to filter, and expect the same value in
code_transaction_status of each row.

CodeStatusMeaning
1IN_PROCESSBatch is still being processed.
2APPROVEDAll items processed successfully.
3CANCELEDBatch was canceled.
4EXPIREDBatch expired before processing.
5UNDER_REVIEWHeld for manual review.
6PENDINGAwaiting authorization.

Success response — 200 OK

{
  "return": true,
  "message": "success",
  "page": 1,
  "total_pages": 3,
  "registries": 25,
  "total_registries": 67,
  "data": [
    {
      "code": "5b1f8c2e-9a7d-4c3b-aef5-2d6e1f3a9b40",
      "batch_size": 100,
      "qty_successes": 98,
      "qty_errors": 2,
      "total_amount": 9850.00,
      "description": "folha-de-pagamento mai/26",
      "transaction_status": "APPROVED",
      "code_transaction_status": 2,
      "created_at": "2026-05-22 14:32:11"
    }
  ]
}

Envelope fields

FieldDescription
returnAlways true on success.
message"success" on a successful query.
pageCurrent page number.
total_pagesTotal number of pages for the current filter set.
registriesNumber of records in the current page.
total_registriesTotal number of records across all pages.
dataArray of batch summaries — see field reference below.

Field reference — batch summary

FieldTypeDescription
codeUUIDBatch identifier.
batch_sizeintegerTotal number of items in the batch.
qty_successesintegerItems processed successfully.
qty_errorsintegerItems that failed.
total_amountnumber (BRL)Sum of all item values.
descriptionstringOptional batch description set at creation. Empty string when not provided.
transaction_statusstringHuman-readable status. See status codes.
code_transaction_statusintegerNumeric status code matching the table above.
created_atstringBatch creation timestamp (server timezone, YYYY-MM-DD HH:MM:SS).

Error responses

StatusmessageWhen
400batch not foundNo batches match the filters.
400statement query with limit below \1` or over `10000` registries per page is not allowed`limit > 10000.
406bank account not foundbank_account_code does not belong to the company.
401Missing or invalid Bearer token.

Notes

  • Pagination metadata (page, total_pages, registries, total_registries) is always present, even when filtering by batch_code returns a single row.
  • This endpoint never includes the items array. To retrieve items, use the single-batch endpoint.
  • bank_account_code resolves the account internally before filtering, which costs one extra lookup — prefer batch_code when you already know it.
Query Params
date

YYYY-MM-DD or YYYY-MM-DD HH:MM:SS. Filter by created_at

date

Same format as initial_date

string

Origin Bank Account Unique Code

string

Restrict the result to a single batch by its code

int32

Filter by transaction status code. See table below

string

Free-text search (LIKE) over batch description and code

int32
Defaults to 1

Page number (1-based)

int32
Defaults to 100

Records per page. Max 10000

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json