Skip to main content
GET
List Charge

List Charge

List all charges with optional filters.

Query Parameters

merchant_id
integer
Merchant id of the account that is creating the payin.Min: 2, Max: 10000
invoice
string
Your identification number.Max length: 255 characters
type_payin
string
Payment method used in the payin.Allowed values: pix, boleto
status_id
integer
Filter by status ID.
created_after
string
Filter charges created after this date. Format: YYYY-MM-DD
created_before
string
Filter charges created before this date. Format: YYYY-MM-DD
updated_after
string
Filter charges updated after this date. Format: YYYY-MM-DD
updated_before
string
Filter charges updated before this date. Format: YYYY-MM-DD
page
integer
Page number for pagination.Default: 1
per_page
integer
Number of items per page.Default: 15, Max: 100
order_by
string
Field to sort by.Allowed values: id, created_at, updated_at, amountDefault: id
sort
string
Sort order.Allowed values: asc, descDefault: desc

Response

Returns an array of charge objects with pagination metadata.
data
array
Array of charge objects.
meta
object
Pagination metadata.
Pagination links.

Request Example

Use Cases

Retrieve all charges with pagination:
Get charges by specific status:
Find a specific charge by invoice number:
Generate a report for a specific date range:
Handle pagination to retrieve all charges:

Status IDs

Common status IDs for filtering:

Best Practices

Pagination: Always use pagination when listing charges to avoid performance issues. The default page size is 15, with a maximum of 100 items per page.
Date Filters: When using date range filters, ensure the range is not too large to avoid timeouts. For large date ranges, consider breaking them into smaller chunks.
Caching: Consider caching the results for frequently accessed pages to reduce API calls and improve performance.