Unlike retrieving a specific anticipation, this endpoint returns a paginated list of anticipations found based on the provided filters.
Listing anticipations is useful for tracking the lifecycle of anticipations created in the account, monitoring status changes, and performing financial reconciliation processes related to receivables anticipation.
When to use
This endpoint is recommended when your integration needs to:
- Retrieve multiple anticipations in a consolidated manner.
- Monitor anticipations created for payments or installments.
- Filter anticipations by status.
- Identify anticipations that have been credited, debited, denied, or canceled.
- Synchronize anticipation information with financial systems, ERPs, or internal reconciliation processes.
Unlike the individual anticipation retrieval endpoint, this resource allows you to retrieve multiple anticipations in a single request.
Most relevant parameters
Although all parameters are documented in the technical reference for the endpoint, some have a direct impact on query behavior.
| Parameter | Purpose |
|---|---|
status | Filters anticipations by their current status. |
payment | Returns only anticipations related to a specific payment. |
installment | Returns only anticipations related to a specific installment payment. |
offset | Defines the starting position of the result list. |
limit | Defines the maximum number of records returned per page. The maximum limit is 100. |
Available statuses
The status filter allows querying anticipations in specific states.
| Status | Description |
|---|---|
PENDING | Anticipation awaiting processing. |
DENIED | Anticipation denied. |
CREDITED | Anticipation amount credited to the account. |
DEBITED | Anticipation amount debited. |
CANCELLED | Anticipation canceled. |
OVERDUE | Anticipation overdue. |
SCHEDULED | Anticipation scheduled for future processing. |
Example:
GET /v3/anticipations?status=PENDINGHow filters work
Filters can be used to restrict the results returned by the API.
Some examples:
Retrieve pending anticipations:
GET /v3/anticipations?status=PENDINGRetrieve anticipations for a specific payment:
GET /v3/anticipations?payment=pay_123456Retrieve anticipations for a specific installment:
GET /v3/anticipations?installment=ins_123456When multiple filters are provided, only records matching all specified criteria will be returned.
Pagination
The response is paginated and may contain only part of the available records.
To navigate through large volumes of data, use the following parameters:
offsetlimit
Example:
GET /v3/anticipations?limit=100&offset=100
ImportantIntegrations that perform periodic synchronizations should iterate through all available pages to ensure complete retrieval of anticipations.
Query example
Request
GET /v3/anticipations?status=CREDITED&limit=50Example scenario
In this example, the API will return only anticipations whose amounts have already been credited to the account.
This type of query is frequently used in financial reconciliation processes to identify completed anticipations.
Best practices
- Use filters whenever possible to reduce the volume of returned data.
- Prefer incremental queries instead of repeatedly querying the entire history.
- Implement pagination for accounts with a large volume of anticipations.
- Consider that an anticipation's status may change over time.
- Store returned identifiers internally to facilitate future individual queries.
AttentionThe returned status represents the anticipation state at the time of the query and may change later as a result of the financial processing of the operation.
Common errors
No results found
This may occur when the provided filters do not match any records.
Incomplete pagination
This occurs when only the first page is queried while additional records are available.
Incompatible filters
Specific combinations of filters may significantly reduce the number of returned results.
Next steps
Depending on your integration needs, the following content may complement your implementation:
- Retrieve a specific anticipation.
- Request an anticipation.
- Retrieve payments.
- Retrieve installment payments.
- Financial reconciliation.
- Retrieve financial statement.
Important
GETrequests to this endpoint must be sent with an empty body. If a request is sent with a populated body, the API may return a403 Forbiddenerror.
403Forbidden. Occurs when the request body is filled, GET method calls must have an empty body.
