Pagination
If a request returns a lot of results you can use pagination to split the results up into smaller pieces. On the server side, pagination helps to reduce the payload which leads to better response times. On your side, it leads to a better user experience since instead of one long list they get a shorter list separated into multiple pages. This can be helpful especially on smaller screens like on mobile devices.
Pagination parameters and how to add them
Can I use pagination with any endpoint?
No, only specific endpoints containing lists support pagination.
Is there a default pagination?
If an endpoint supports pagination, the result will always be returned with default pagination.
The default setting is:
-
page=1 (start on page 1)
-
per_page=10 (display 10 entries per page)
You can change the pagination setting in your request via the pagination parameters.
How to use the pagination parameters in a requests
Pagination parameters are added as query parameters with the request in the format
{endpoint_path}?page=2&per_page=10

The default setting is:
-
page=1 (start on page 1)
-
per_page=10 (display 10 entries per page)

Enables you to access a specific page of the results.
Possible values: Any positive number except zero.

Enables you to define how many results will be included per page.
Possible values: min 1
, max 100
curl https://base-url-placeholder/offers?amount=12000&country=US&recipient=FWU&page=1&per_page=10 \
-X GET \
-H "Content-Type: application/json" \
-H "X-Authentication-Key: {api_key}" \
Response example with pagination
The pagination parameters are followed by an array of the actual items (in the example, those items are offers) of the current page. The number of items in the array depends on the per_page value, for example the array will contain 10 items if the per_page value is 10.
Parameters for pagination

The total number of items in the full result list, not just of the current page.

The total number of pages available.

The current page of the results.

The maximum number of results to return at one time (on one page).
offers object

The offer ID.
The offer ID is a string of characters that uniquely identifies a specific offer.
Example format: MTAxMSEgcHXfY8Fua499cmFuc2Zlcl9l7XigRWM
payment_method object
Contains information about the payment method of this offer.

Identifier of the payment method associated with this offer.

The name of the payment method associated with this offer.

The payment method type.
Possible values:
bank_transfer |
Payment is done via bank transfer. |
online |
Payment is done via an alternative payment method (APM), through a third-party provider. |
card |
Payment is done via credit or debit card. You'll get additional information about the type of card in the parameter card_classification (either credit or debit). |
direct_debit |
Payment is done via direct debit. |
529_payments |
Payment is done via a 529 provider. |

Description of the payment method of this offer.

Only returned in specific cases.
Extra terms configured for this payment method in that specific country.
price object
Contains the amount of money the payer has to send if this offer is selected.
The amount to pay (price) in offers can change due to FX rates. The final amount is only "locked in" when you create a payment from the order.

If a payment is done in two different currencies, the amount your payer pays depends on the current FX rate. Since FX rates frequently change, the amount to pay can change too.
The amount to pay for an offer (given in the price parameter) is the amount at the time you requested the offer. It can change at any moment, even if the offer is used for an order.

The amount in the payer currency.
The amount to pay (price) in offers can change due to FX rates. The final amount is only "locked in" when you create a payment from the order.

If a payment is done in two different currencies, the amount your payer pays depends on the current FX rate. Since FX rates frequently change, the amount to pay can change too.
The amount to pay for an offer (given in the price parameter) is the amount at the time you requested the offer. It can change at any moment, even if the offer is used for an order.
The amount is specified in the smallest unit of the currency, called subunits. For example, in USD, the subunit is cents, and 100 cents equal 1 USD. So, an amount of 12025 (cents) is equivalent to 120.25 USD.
Note that the subunit-to-unit ratio varies by currency, it is not always 100. See Currencies for the subunits of each currency.

The payer currency in ISO 4217 format.


Amount of Flywire fees that are being applied to this offer.

Flywire exchange rate of the offer used to calculate the price if conversion needed.
fields array
Some countries' regulations require extra fields in order to process a payment depending on the selected offer. If an offer contains any extra fields, they are required fields.

-
Paying in China with certain methods requires the payer to provide their Chinese identification number and exact name that appears on the ID.
-
Paying in India with certain methods requires the payer to provide their PAN number and source of funds.
-
Paying in Brazil with certain methods requires the payer to provide their CPF number (Cadastro de Pessoas Físicas or Natural Persons Register).

Identifier of the field.

The value for this field.
{
"total_entries": 1,
"total_pages": 1,
"page": 1,
"per_page": 10,
"offers": [
{
"id": "MXZwMDAyHHUSE9PVF9POlIgS33j",
"payment_method": {
"id": "529_provider",
"name": "Domestic USD 529 payment",
"kind": "529_payment"
},
"description": "529 payment with specific provider",
"extra_terms": null,
"price": {
"value": 1200000,
"currency": "USD"
},
"fees": 0,
"exchange_rate": 1,
"fields":[]
}
]
}