Skip to main content
The Settlement API returns the list of settlement files for a given period. The Refunds Before Clearing file supplements the settlement file. It records transactions refunded before the acquirer’s clearing process — transactions that did not incur fees or other charges.

Authentication

Authenticate requests using an x-api-key header. You can find your API key in the Developer Keys page of the dashboard.

Retrieving the refunds before clearing file

To retrieve the list of files for a period, send a GET request to: https://financehub.paybyrd.com/api/v1/authorization-files?createdFrom={startDateTime}&createdTo={endDateTime} Optional query parameters: merchantId and storeId to filter results by merchant or store.

Response content structure

Usage recommendations

Paybyrd normally generates one file per day. However, there may be situations where more than one file is generated for the same day, in which case these files are complementary and must be fully processed to obtain all refunds before clearing information. To receive all settlements consistently each day, make requests with sequential date periods. For example, an automated system could make one request per day, using the createdTo value from the previous request as the createdFrom value for the next.

Retrieving a list of refunds before clearing files for a specific day

To retrieve files for a specific day, set the period from 00:00 to 23:59, as in the example below.

Retrieving a list of refunds before clearing files (period filtering)

When filtering by period, days with no file are omitted from the results.

File specification

The file is created in CSV format using | (pipe) as a separator. The filename follows this pattern: yyyy-MM-ddThh-mm-ssZ-PaybyrdSettlement.csv Example: 2022-11-18T16-49-58Z-PaybyrdSettlement.csv

Field specifications