Skip to content

get

List networks

The networks, discos and cable operators in the catalogue, by code.

GET /api/v1/catalog/networks

A code here is what network takes on a vend.

Authenticate with a bearer API key: rg_test_ in test mode, rg_live_ in live.

Request

 curl -X GET https://api.useroutegate.com/api/v1/catalog/networks \
  -H "Authorization: Bearer $ROUTEGATE_API_KEY"

Response

200

 {
  "success": true,
  "code": "OK",
  "message": "OK",
  "data": {
    "items": [
      {
        "code": "mtn",
        "name": "MTN"
      }
    ]
  }
}

Error

401 AUTH_REQUIRED: The key is missing, unknown, revoked or expired. Every code is in errors.

 {
  "success": false,
  "data": null,
  "message": "Invalid API key",
  "code": "AUTH_REQUIRED"
}

Give this to your coding agent

Read https://useroutegate.com/docs/api/public/listNetworks.md and implement this call. Amounts are integers in kobo.