---
agentTools:
  projectIndex: https://strowallet.readme.io/llms.txt
---

# Subscribe Electricity bill

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Subscribe Electricity bill",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://strowallet.com/api/electricity/request"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/": {
      "post": {
        "summary": "Subscribe Electricity bill",
        "description": "",
        "operationId": "subscribe-electricity",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "public_key": {
                    "type": "string"
                  },
                  "amount": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "service_name": {
                    "type": "string",
                    "description": "ikeja-electric, eko-electric, kano-electric, portharcourt-electric, jos-electric, eko-electric, kaduna-electric, abuja-electric, ibadan-electric, enugu-electric,  benin-electric, aba-electric, yola-electric"
                  },
                  "meter_number": {
                    "type": "string"
                  },
                  "meter_type": {
                    "type": "string",
                    "description": "prepaid | postpaid"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": true,\n  \"message\": \"Transaction Successfully.And your token is Token : 1473800000838 and purchased units are \",\n  \"response\": {\n    \"code\": \"000\",\n    \"content\": {\n      \"transactions\": {\n        \"status\": \"delivered\",\n        \"product_name\": \"Abuja Electricity Distribution Company- AEDC\",\n        \"unique_element\": \"12345678900\",\n        \"unit_price\": 500,\n        \"quantity\": 1,\n        \"service_verification\": null,\n        \"channel\": \"api\",\n        \"commission\": 6,\n        \"total_amount\": 494,\n        \"discount\": null,\n        \"type\": \"Electricity Bill\",\n        \"email\": \"null\",\n        \"phone\": \"null\",\n        \"name\": null,\n        \"convinience_fee\": 0,\n        \"amount\": 500,\n        \"platform\": \"api\",\n        \"method\": \"api\",\n        \"transactionId\": \"17176739153935832537\"\n      }\n    },\n    \"response_description\": \"TRANSACTION SUCCESSFUL\",\n    \"requestId\": \"202406061257122\",\n    \"amount\": \"500.00\",\n    \"transaction_date\": \"2024-06-06T11:38:35.000000Z\",\n    \"purchased_code\": \"Token : 147380000005838\",\n    \"CustomerName\": \"MR AND MRS USERDEMO .  \",\n    \"CustomerAddress\": \"SHOP 1 DEMO PLAZA , . Und St. STREET\",\n    \"DebtTax\": null,\n    \"DebtAmount\": null,\n    \"DebtValue\": null,\n    \"DebtRem\": null,\n    \"FixedTax\": null,\n    \"FixedAmount\": null,\n    \"FixedValue\": null,\n    \"Amount\": 500,\n    \"Tax\": null,\n    \"Units\": 7.3,\n    \"Token\": \"147385800001985838\",\n    \"Tariff\": null,\n    \"Description\": null,\n    \"Receipt\": \"240606594285\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Transaction Successfully.And your token is Token : 1473800000838 and purchased units are "
                    },
                    "response": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "000"
                        },
                        "content": {
                          "type": "object",
                          "properties": {
                            "transactions": {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "example": "delivered"
                                },
                                "product_name": {
                                  "type": "string",
                                  "example": "Abuja Electricity Distribution Company- AEDC"
                                },
                                "unique_element": {
                                  "type": "string",
                                  "example": "12345678900"
                                },
                                "unit_price": {
                                  "type": "integer",
                                  "example": 500,
                                  "default": 0
                                },
                                "quantity": {
                                  "type": "integer",
                                  "example": 1,
                                  "default": 0
                                },
                                "service_verification": {},
                                "channel": {
                                  "type": "string",
                                  "example": "api"
                                },
                                "commission": {
                                  "type": "integer",
                                  "example": 6,
                                  "default": 0
                                },
                                "total_amount": {
                                  "type": "integer",
                                  "example": 494,
                                  "default": 0
                                },
                                "discount": {},
                                "type": {
                                  "type": "string",
                                  "example": "Electricity Bill"
                                },
                                "email": {
                                  "type": "string",
                                  "example": "null"
                                },
                                "phone": {
                                  "type": "string",
                                  "example": "null"
                                },
                                "name": {},
                                "convinience_fee": {
                                  "type": "integer",
                                  "example": 0,
                                  "default": 0
                                },
                                "amount": {
                                  "type": "integer",
                                  "example": 500,
                                  "default": 0
                                },
                                "platform": {
                                  "type": "string",
                                  "example": "api"
                                },
                                "method": {
                                  "type": "string",
                                  "example": "api"
                                },
                                "transactionId": {
                                  "type": "string",
                                  "example": "17176739153935832537"
                                }
                              }
                            }
                          }
                        },
                        "response_description": {
                          "type": "string",
                          "example": "TRANSACTION SUCCESSFUL"
                        },
                        "requestId": {
                          "type": "string",
                          "example": "202406061257122"
                        },
                        "amount": {
                          "type": "string",
                          "example": "500.00"
                        },
                        "transaction_date": {
                          "type": "string",
                          "example": "2024-06-06T11:38:35.000000Z"
                        },
                        "purchased_code": {
                          "type": "string",
                          "example": "Token : 147380000005838"
                        },
                        "CustomerName": {
                          "type": "string",
                          "example": "MR AND MRS USERDEMO .  "
                        },
                        "CustomerAddress": {
                          "type": "string",
                          "example": "SHOP 1 DEMO PLAZA , . Und St. STREET"
                        },
                        "DebtTax": {},
                        "DebtAmount": {},
                        "DebtValue": {},
                        "DebtRem": {},
                        "FixedTax": {},
                        "FixedAmount": {},
                        "FixedValue": {},
                        "Amount": {
                          "type": "integer",
                          "example": 500,
                          "default": 0
                        },
                        "Tax": {},
                        "Units": {
                          "type": "number",
                          "example": 7.3,
                          "default": 0
                        },
                        "Token": {
                          "type": "string",
                          "example": "147385800001985838"
                        },
                        "Tariff": {},
                        "Description": {},
                        "Receipt": {
                          "type": "string",
                          "example": "240606594285"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": false,\n  \"message\": \"BELOW MINIMUM AMOUNT ALLOWED\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "BELOW MINIMUM AMOUNT ALLOWED"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true,
  "_id": "63446ba6ffe99600850b6069:63446b78b34217003a37868a"
}
```