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://settlements.paybyrd.com/api/v1/files?createdFrom={startDateTime}&createdTo={endDateTime}
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. Usefrom and to as query parameters for period filtering.
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
Billing events
Depending on the contractual agreement, acquirers can charge billing events at the settlement. In those cases, a special line is sent in the settlement file to inform the merchant about charges made at the payout. These rows haveSETTLEMENT_TYPE set to "B" and only the following fields are populated:
PAYMENT_REFERENCE, GROUP_ID, IBAN, SWIFT, SETTLEMENT_AMOUNT, SETTLEMENT_TOTAL_FEE_AMOUNT (always zero), SETTLEMENT_CURRENCY, ACQUIRER_PERCENTAGE_FEE (always zero), ACQUIRER_FEE (always zero), SETTLEMENT_TYPE, BILLING_DESCRIPTION

