List the accounts linked to a customer's IPS phone alias
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X GET "https://api.leapa.co/v2/ips/alias-accounts?alias=+25779123456" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Accept: application/json"Response
OK
{
"alias": "+25779123456",
"resolved": false,
"accounts": [
{
"account": "00012345678901",
"bank_bic": "BIBUBIBI",
"bank_name": "Jeanne Ndayishimiye",
"brand": "string",
"name": "Jeanne Ndayishimiye",
"account_type": "00012345678901",
"currency": "BIF",
"is_default": false
}
],
"message": "Request sent to the payer"
}Query parameters
Appended to the URL after a `?`.
aliasstringrequiredExample:+25779123456
Response
application/json
aliasstringresolvedbooleanaccountsarray of AliasAccountaccountstringbank_bicstringbank_namestringbrandstringnamestringaccount_typestringcurrencystringis_defaultboolean
messagestring
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error