API Simulator

Client API documentation with sample payloads and responses

Get Products API

Get available products by mobile code prefix

Endpoint

GET https://utility-api.onepay.lk/api/v1/pay/partner/products/
{
  "mobile_code": "077"
}
{
  "status": "success",
  "data": [
    {
      "id": "1",
      "name": "Dialog 100",
      "amount": "100.00",
      "description": "Dialog mobile reload 100 LKR"
    },
    {
      "id": "2",
      "name": "Dialog 200",
      "amount": "200.00",
      "description": "Dialog mobile reload 200 LKR"
    },
    {
      "id": "3",
      "name": "Dialog 500",
      "amount": "500.00",
      "description": "Dialog mobile reload 500 LKR"
    }
  ]
}
curl -X GET "https://utility-api.onepay.lk/api/v1/pay/partner/products/" \
  -H "api_key: your-api-key-here" \
  -H "Content-Type: application/json" \
  --data '{
  "mobile_code": "077"
}'

Parameters:

  • mobile_code (string, required): First 3 digits of mobile number (e.g., "077", "076", "071", "070", "075", "078", "072")