---
agentTools:
  projectIndex: https://developer-webetechies.readme.io/llms.txt
---

# Utility-Payment

To establish a comprehensive Utility Payment API, it becomes imperative to craft a suite of functionalities, allowing users to seamlessly trigger payment transactions through programmatic means. The ensuing overview outlines key functionalities and associated parameters that form the foundation of your API documentation.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Utility-Payment",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.pay2mobiles.com/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api-service/recharge": {
      "post": {
        "summary": "Utility-Payment",
        "description": "To establish a comprehensive Utility Payment API, it becomes imperative to craft a suite of functionalities, allowing users to seamlessly trigger payment transactions through programmatic means. The ensuing overview outlines key functionalities and associated parameters that form the foundation of your API documentation.",
        "operationId": "utility-payment",
        "parameters": [
          {
            "name": "api_key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x_verify",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "apiKey",
                  "operatorCode",
                  "accountNumber",
                  "areaCode",
                  "rechargeAmount",
                  "rechargeType",
                  "orderId"
                ],
                "properties": {
                  "apiKey": {
                    "type": "string"
                  },
                  "operatorCode": {
                    "type": "string"
                  },
                  "accountNumber": {
                    "type": "string"
                  },
                  "areaCode": {
                    "type": "string"
                  },
                  "rechargeAmount": {
                    "type": "string"
                  },
                  "rechargeType": {
                    "type": "string"
                  },
                  "orderId": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --location --request POST 'http://localhost:8099/api-service/recharge' \\\n--header 'api_key: 2562356715726' \\\n--header 'x_verify: 5d59f7b4aaeed9bf4878058878c4a2787df1af1bcc80e093041fa5f14863dc96' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"apiKey\": \"2562356715726\",\n    \"operatorCode\": \"AIRTEL\",\n    \"accountNumber\": \"9415835785\",\n    \"areaCode\": \"546865\",\n    \"rechargeAmount\": 10,\n    \"rechargeType\": \"prepaid\",\n    \"orderId\":\"120003\"\n}'"
            },
            {
              "language": "http",
              "code": "POST /api-service/recharge HTTP/1.1\nHost: localhost:8099\nUser-Agent: curl/8.0.1\nAccept: */*\napi_key: 2562356715726\nx_verify: 5d59f7b4aaeed9bf4878058878c4a2787df1af1bcc80e093041fa5f14863dc96\nContent-Type: application/json\nContent-Length: 205\n\n{\n    \"apiKey\": \"2562356715726\",\n    \"operatorCode\": \"AIRTEL\",\n    \"accountNumber\": \"9415835785\",\n    \"areaCode\": \"546865\",\n    \"rechargeAmount\": 10,\n    \"rechargeType\": \"prepaid\",\n    \"orderId\":\"120003\"\n}"
            }
          ],
          "samples-languages": [
            "curl",
            "http"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65aa23aea2e9bc005a3efc03:65aa249d3b810c004669762f"
}
```