Skip to main content
This endpoint is deprecated. Paybyrd continues to support implementations using this endpoint for an indefinite period. However, we recommend using the FinanceHub Settlement files endpoint instead.
Settlement files are CSV reports generated by Paybyrd that summarize the financial transactions included in a given settlement period. Each file records the amounts, fees, and references needed to reconcile payouts.
Settlement files serve as official records of financial transactions for a given period. They support reconciliation, compliance monitoring, and financial accountability.
You access settlement files through the Settlement API, which returns a list of files for a given time period.

Authentication

The API authentication needs to be done with a x-api-key header, and it will be provided by Paybyrd.

Retrieving the settlement file

To retrieve the list of files for a period, send a GET 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 the createdTo 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: from 00: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. Use from 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 have SETTLEMENT_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

Field specifications