---
title: /payments/meter-info
slug: amberflo-api/paymentsmeter-info
docTags: 
createdAt: 2024-11-07T15:10:16.978Z
---

{
  "id": "51RuYt0zQB9TLv40aIETt",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://app.amberflo.io/payments/meter-info",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/meter-info"
      }
    ],
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "payment.meters.detailed.DetailedMeterPaymentInfo.out",
            "schema": [
              {
                "name": "productItemId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "productItemName",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "productPlanId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "productPlanName",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "invoiceKey",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/payment.billing.CustomerProductInvoiceKey.out",
                "customType": "payment.billing.CustomerProductInvoiceKey.out",
                "schema": [
                  {
                    "name": "accountId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "customerId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "productId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "productPlanId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "year",
                    "kind": "optional",
                    "type": "integer<int32>",
                    "example": 0
                  },
                  {
                    "name": "month",
                    "kind": "optional",
                    "type": "integer<int32>",
                    "example": 0
                  },
                  {
                    "name": "day",
                    "kind": "optional",
                    "type": "integer<int32>",
                    "example": 0
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/payment.meters.detailed.DetailedMeterPaymentInfo.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "WmmUDJjbLuyv2196zVKEX",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://app.amberflo.io/payments/meter-info \\\n     --header 'accept: application/json'"
        },
        {
          "id": "n3zjT4pdWNKYsW--RQZ3H",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/payments/meter-info\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "e29R-6uPHWub0YnWufhhq",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/meter-info\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "_A7CfD5s6PLPAzNQo78No",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/meter-info\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "WmmUDJjbLuyv2196zVKEX"
    },
    "results": {
      "languages": [
        {
          "id": "eev7p-d4ZSLbXq3iI0WRk",
          "language": "200",
          "code": "// Successful request\n{\n  \"productItemId\": \"\",\n  \"productItemName\": \"\",\n  \"productPlanId\": \"\",\n  \"productPlanName\": \"\",\n  \"invoiceKey\": {\n    \"accountId\": \"\",\n    \"customerId\": \"\",\n    \"productId\": \"\",\n    \"productPlanId\": \"\",\n    \"year\": \"\",\n    \"month\": \"\",\n    \"day\": \"\"\n  }\n}"
        }
      ],
      "selectedLanguageId": "eev7p-d4ZSLbXq3iI0WRk"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}