Get accounts listing
GET a list of all accounts that comes under the supervision of your organisation. This may include accounts (IBANs) that belong to your organisation as well as accounts that belongs to corporates and individual wallet users that are your customers.
NOTE: Entity ID is M2M user’s entityId.
/GetAccountsListing
import requests
url = “https://stageapi.cfsemoney.com/v1?entityId=9999”
payload={}
headers = {
‘x-api-key’: ‘Your-API-KEY‘,
‘Authorization’: ‘Bearer <<bearer-token>>’
}
response = requests.request(“GET”, url, headers=headers, data=payload)
print(response.text)
{
“statusCode”: 200,
“body”: “{\”status\”: true, \”data\”: [\”30aug-30AUG-customer-GBP\”, \”Rafael Nadal-First GBP-customer-GBP\”, \”Rafael Nadal-GBP 4 account-customer-GBP\”, \”Rafael Nadal-GBP 5 account-customer-GBP\”, \”Rafael Nadal-Second GBP-customer-GBP\”, \”REC Pay-IRANDA SPM CORP 1 AC 4-customer-GBP\”, \”Sarat Adiraj-tcc-customer-GBP\”, \”STEL SPM Voicetecsys.Com-OPERATIONS ACCOUNT GBP 1-operation-GBP\”, \”STEL SPM Voicetecsys.Com-OPERATIONS ACCOUNT GBP 2-operation-GBP\”, \”STEL SPM Voicetecsys.Com-OPERATIONS ACCOUNT GBP-operation-GBP\”, \”STEL SPM Voicetecsys.Com-SPM fee account 1-fee-GBP\”, \”STEL SPM Voicetecsys.Com-SPM spacevoicetecsys EUR- MCCY-fee-EUR\”, \”STEL SPM Voicetecsys.Com-SPM spacevoicetecsys fee EUR -BOL-fee-EUR\”, \”STEL SPM Voicetecsys.Com-USD 1-operation-USD\”, \”STEL SPM Voicetecsys.Com-USD 2-operation-USD\”, \”STEL SPM Voicetecsys.Com-Voicetec sys fee account SEK-fee-SEK\”, \”STEL SPM Voicetecsys.Com-Voicetec sys fee account USD-fee-USD\”, \”Swapnil API Corp1-SN API EUR-customer-EUR\”, \”Swapnil API Corp1-SN API GBP-customer-GBP\”, \”Swapnil API Corp1-SN API USD-customer-USD\”, \”twentynine-CAN-customer-GBP\”, \”voicetec28-28AUG-customer-GBP\”], \”message\”: \”No document pending.\”}”
}
{
“statusCode”: 400,
“body”: “{\”message\”: \”xxx”}”
}