Skip to main content
POST
/
externals
/
networks
List available payment networks
curl --request POST \
  --url https://prod-api.pcxpay.com/v1/externals/networks \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '
{
  "country_code": "KE"
}
'
{
  "statusCode": 200,
  "networks": [
    {
      "name": "Mobile Wallet (M-PESA)",
      "code": "<string>",
      "id": "<string>"
    }
  ]
}

Headers

Authorization
string
default:NONE
required

Bearer JWT for user-facing flows (Bearer eyJraWQ...), or the literal string NONE when authenticating via API key.

Example:

"Bearer eyJraWQ..."

X-Api-Key
string
default:NONE
required

API key for server-to-server flows, or the literal string NONE when authenticating via JWT.

Example:

"pcx_abc123_xxxx"

Body

application/json
country_code
string
required

ISO alpha-2 country code. Supported values are GH, NG, KE, RW, and ZA.

Example:

"KE"

Response

Available payment networks

statusCode
integer
Example:

200

networks
object[]