Settlement files serve as official records of financial transactions for a given period. They support reconciliation, compliance monitoring, and financial accountability.
Authentication
The API authentication needs to be done with ax-api-key header, and it will be provided by Paybyrd.
Retrieving the settlement file
To retrieve the list of files for a period, send aGET request to:
https://financehub.paybyrd.com/api/v1/SettlementFiles?createdFrom={startDateTime}&createdTo={endDateTime}
Optional query parameters: merchantId and storeId to filter results by merchant or store.
Response content structure
Each item in the response list has the following 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 settlement information. To receive settlements consistently on a daily basis, make requests with sequential date periods. For example, an automated system could make one request per day, using thecreatedTo value from the previous request as the createdFrom value for the next.
Retrieving a list of settlement files for a specific day
To retrieve files for a specific day, set the period to cover the full day: from00:00:00 to 23:59:59, as shown in the example below.
Retrieving a list of settlement files (period filtering)
When filtering by period, days with no settlement 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

