Get country list
GET API call to get the list of available and supported countries to which payments can be initiated. You shall provide the Country name while sending payment transaction payloads.
/GetCountryList
Python
cURL
Python
import requests
url = “https://stageapi.cfsemoney.com/v1/GetCountryList”
payload={}
headers = {
‘x-api-key’: ‘Your-API-KEY’,
‘Authorization’: ‘Bearer <<bearer-token>>‘
}
response = requests.request(“GET”, url, headers=headers, data=payload)
print(response.text)
cURL
curl –location –request GET ‘https://stageapi.cfsemoney.com/v1/GetCountryList’ \
–header ‘x-api-key: ‘Your-API-KEY‘
–header ‘Authorization: Bearer <<bearer-token>>‘
Response [statusCode: 200]
Response [statusCode: 400]
Response [statusCode: 200]
Response [statusCode: 400]
{
“statusCode”: 400,
“body”: “{\”message\”: \”xxx”}”
}