Skip to main content

List Schedulings

Use this endpoint to list the schedulings (schedulings) generated by a recurring withdrawal.

Each recurring withdrawal generates one scheduling per expected execution, according to the frequency and duration given at creation.

Available Environments​

https://api.gateway.com.br/core

Endpoint​

  • Method: GET
  • Endpoint: /recurring-withdrawal/{id}/schedulings
  • Authentication: Bearer token

Path Params​

NameTypeRequiredDescriptionValidations
idstring (UUID)YesRecurring withdrawal identifierMust be a valid UUID

Query Params​

ℹ️ Snapshot pagination

The snapshot is not a pointer to the "next page": it is a fixed identifier of the pagination session, used together with page (which is still sent and incremented normally) to keep the results consistent even if new records are created while you navigate.

Take the snapshot value from the first response (sent without a snapshot on the first request) and resend that same value, unchanged, on the requests for the following pages, along with the same filters and the same perPage used originally. If any of those values changes while an old snapshot is resent, the API returns an error.

NameTypeRequiredDescriptionValidations
snapshotstringNoIdentifier of the pagination session (received in the snapshot field of the first response); resend it unchanged along with page on the following pagesMust match the same filters and the same perPage of the original request

Request Example​

curl --request GET \
--url https://api.gateway.com.br/core/recurring-withdrawal/553e8400-e29b-41d4-a716-436251480000/schedulings \
--header 'Authorization: Bearer your-jwt-token'

Success Response​

FieldTypeRequiredDescription
totalPagesnumberYesTotal pages
currentPagenumberYesCurrent page
perPagenumberYesItems per page
snapshotstringNoIdentifier of the pagination session; resend it unchanged on the following pages
dataarrayYesList of schedulings

Fields of the item in data​

FieldTypeRequiredDescription
idstring (UUID)YesUnique identifier of the scheduling
statusstring (enum) - SCHEDULED, PROCESSED, FAILED, CANCELEDYes
  • SCHEDULED: awaiting the expected execution date
  • PROCESSED: withdrawal processed successfully
  • FAILED: error while processing the withdrawal
  • CANCELED: scheduling canceled (for example, the recurring withdrawal was canceled)
amountnumberYesWithdrawal amount (integer, in cents)
descriptionstringYesDescription of the withdrawal
scheduledDatestring (ISO)YesExpected execution date

Response Example​

{
"totalPages": 1,
"currentPage": 1,
"perPage": 15,
"snapshot": "b3BhcXVlLXNuYXBzaG90LXRva2Vu",
"data": [
{
"id": "663e8400-e29b-41d4-a716-446655440001",
"status": "SCHEDULED",
"amount": 10000,
"description": "Repasse mensal para fornecedor",
"scheduledDate": "2027-02-05T12:00:00.000Z"
}
]
}

Possible Errors​

CodeDescriptionSolution
401Invalid credentialsCheck your credentials
403No permission/authorizationContact support
404Record not foundCheck the id you sent
422Invalid or missing dataCheck the format of the data
500Internal errorContact support