Skip to main content

Countries & Sub Regions

Countries

Alt test Endpoint: https://sandbox.sasapay.app/api/v2/waas/countries/

Sample Request
Headers
Key: Authorization
Value: Bearer Q1k2RW5SOGlsYUZnRzNGMQUlDS3VrTFhVV0xScFVHYQ==

Response Parameters

FieldTypeDescriptionExample
responseCodeStringThis status shows whether the list of channel codes was retrieved successfully or not"statusCode":"0"
messageStringThis is the message associated with the operation."Countries"
Response Sample
{
"status": true,
"responseCode": "0",
"message": "Active countries",
"data": [
{
"id": 2,
"name": "Kenya",
"calling_code": "254",
"country_code": "KE"
},
{
"id": 8,
"name": "Uganda",
"calling_code": "256",
"country_code": "UG"
},
]
}

Country Sub Regions

Alt test Endpoint: https://sandbox.sasapay.app/api/v2/waas/countries/sub-regions/?callingCode=254

Sample Request
Headers
Key: Authorization
Value: Bearer Q1k2RW5SOGlsYUZnRzNGMQUlDS3VrTFhVV0xScFVHYQ==

Response Parameters

FieldTypeDescriptionExample
responseCodeStringThis status shows whether the list of channel codes was retrieved successfully or not"statusCode":"0"
messageStringThis is the message associated with the operation."Sub Regions"
Response Sample
{
"status": true,
"responseCode": "0",
"message": "Country sub regions",
"data": [
{
"id": 2,
"name": "kwale"
},
{
"id": 3,
"name": "kilifi"
},
{
"id": 4,
"name": "tana river"
},
]
}