Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Payers

A payer is the institution or network that delivers the money to the beneficiary. This endpoint returns the active payers, filtered by service, country and currency, with pagination.

Endpoint

GET/api/v1/pay-out/payers

Authentication: HTTP Basic with your API key and secret. See Authentication.

Query parameters

All parameters are optional.

ParameterTypeDescription
country_isostring3-letter destination country code, for example COL.
currencystringDestination currency (ISO 4217), for example COP.
service_slugstringA slug from Payout services, for example bank-deposit.
pageintegerPage number, from 1.
per_pageintegerResults per page, 1 to 100. Default 100.

country_iso_code is accepted as an alias of country_iso. Codes are case-insensitive.

Example

Terminal window
curl "https://sandbox-api.cashela.com/api/v1/pay-out/payers?service_slug=bank-deposit&country_iso=COL&currency=COP" \
-u "$CASHELA_API_KEY:$CASHELA_API_SECRET" \
-H "Accept: application/json"
{
"success": true,
"data": {
"total": 1,
"per_page": 100,
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 1,
"first_page_url": "https://sandbox-api.cashela.com/api/v1/pay-out/payers?page=1",
"self": "https://sandbox-api.cashela.com/api/v1/pay-out/payers?page=1",
"last_page_url": "https://sandbox-api.cashela.com/api/v1/pay-out/payers?page=1",
"next_page_url": null,
"prev_page_url": null,
"path": "https://sandbox-api.cashela.com/api/v1/pay-out/payers",
"data": [
{
"id": 123,
"name": "Example Bank",
"source": "pay_out_payers",
"pay_out_payer_id": 123,
"increment": 0.01,
"precision": 2,
"mandatory_branch": false,
"currency": "COP",
"country_iso": "COL",
"country_iso_code": "COL",
"service": { "id": 2, "slug": "bank-deposit", "name": "Bank deposit", "source": "pay_out_services" },
"transaction_types": ["C2C"]
}
]
},
"message": "Payers retrieved successfully."
}

Payers are sorted by name. Values are illustrative.

Response fields

Pagination fields (total, per_page, current_page, last_page, from, to, next_page_url, prev_page_url and the other URLs) sit next to the data list.

FieldTypeDescription
idintegerPayer ID. Send it as pay_out_payer_id when you execute a transaction, or as payer_id in a quotation to quote only this payer.
pay_out_payer_idintegerSame value as id.
namestringPayer name.
sourcestringCatalog the payer comes from. Always pay_out_payers.
currencystringCurrency the payer pays out.
country_iso / country_iso_codestring3-letter country code the payer serves.
serviceobjectService of the payer: id, slug, name, source.
incrementnumberAmount increment configured for the payer.
precisionintegerDecimal precision configured for the payer.
mandatory_branchboolean or nullWhether the payer requires branch details.
transaction_typesarray or nullTransaction types the payer accepts (C2C, C2B, B2C, B2B).

The response can include other fields. Do not build on fields that are not listed here.

Errors

StatusWhen
422A filter has an unknown value, or per_page is out of range.