{
  "opencollection": "1.0.0",
  "info": {
    "name": "m3ter Account Credits API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Credits",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve Credit Line Item",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.m3ter.com/organizations/:orgId/bills/:billId/creditlineitems/:id",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "UUID of the organization. The Organization represents your company as a direct customer of the m3ter service."
              },
              {
                "name": "billId",
                "value": "",
                "type": "path",
                "description": "UUID of the Bill."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The UUID of the Credit line item to retrieve."
              }
            ]
          },
          "docs": "Retrieve the Credit line item with the given UUID."
        },
        {
          "info": {
            "name": "Update Credit Line Item",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.m3ter.com/organizations/:orgId/bills/:billId/creditlineitems/:id",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "UUID of the organization. The Organization represents your company as a direct customer of the m3ter service."
              },
              {
                "name": "billId",
                "value": "",
                "type": "path",
                "description": "UUID of the bill."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The UUID of the credit line item to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the Credit line item with the given UUID."
        },
        {
          "info": {
            "name": "Delete Credit Line Item",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.m3ter.com/organizations/:orgId/bills/:billId/creditlineitems/:id",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "UUID of the organization. The Organization represents your company as a direct customer of the m3ter service."
              },
              {
                "name": "billId",
                "value": "",
                "type": "path",
                "description": "UUID of the bill."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the credit line item to delete."
              }
            ]
          },
          "docs": "Delete the Credit line item with the given UUID."
        },
        {
          "info": {
            "name": "List Credit Line Items",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.m3ter.com/organizations/:orgId/bills/:billId/creditlineitems",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "UUID of the organization. The Organization represents your company as a direct customer of the m3ter service."
              },
              {
                "name": "billId",
                "value": "",
                "type": "path",
                "description": "UUID of the bill."
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query",
                "description": "Number of Line Items to retrieve per page."
              },
              {
                "name": "nextToken",
                "value": "",
                "type": "query",
                "description": "`nextToken` for multi page retrievals."
              }
            ]
          },
          "docs": "List the Credit line items for the given Bill."
        },
        {
          "info": {
            "name": "Create Credit Line Item",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.m3ter.com/organizations/:orgId/bills/:billId/creditlineitems",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "UUID of the organization. The Organization represents your company as a direct customer of the m3ter service."
              },
              {
                "name": "billId",
                "value": "",
                "type": "path",
                "description": "UUID of the bill."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new Credit line item for the given Bill.\n \nWhen creating Credit line items for Bills, use the Credit Reasons created for your Organization. See [CreditReason](https://www.m3ter.com/docs/api#tag/CreditReason)."
        }
      ]
    }
  ],
  "bundled": true
}