Red Hat 3scale Invoice Line Items API

The Invoice Line Items API from Red Hat 3scale — 2 operation(s) for invoice line items.

GitHub OpenAPI

Operations 3

GET /api/invoices/{invoice_id}/line_items.xml Invoice Line Items List #
POST /api/invoices/{invoice_id}/line_items.xml Create Line Item for an Invoice #
DELETE /api/invoices/{invoice_id}/line_items/{id}.xml Delete Line Item of an Invoice #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/red-hat-3scale:red-hat-3scale-invoice-line-items-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

red-hat-3scale-invoice-line-items-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Red Hat 3scale Invoice Line Items API
  version: '1.0'
  description: 'Operations tagged Invoice Line Items across 2 of this provider''s published API definitions: red-hat-3scale-porta-billing_api.json, red-hat-3scale-billing-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /
- url: https://{tenant}-admin.3scale.net
  description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
  variables:
    tenant:
      default: example
tags:
- name: Invoice Line Items
paths:
  /api/invoices/{invoice_id}/line_items.xml:
    get:
      summary: Invoice Line Items List
      tags:
      - Invoice Line Items
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: invoice_id
        in: path
        description: ID of the invoice.
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getApiInvoicesByInvoiceIdLineItemsXml
      x-operation-id-source: derived
    post:
      summary: Create Line Item for an Invoice
      tags:
      - Invoice Line Items
      parameters:
      - name: invoice_id
        in: path
        description: ID of the invoice.
        required: true
        schema:
          type: integer
      requestBody:
        description: Create Line Item for an Invoice
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                name:
                  type: string
                  description: Name of the Line Item
                description:
                  type: string
                  description: Description of the Line Item
                quantity:
                  type: string
                  description: Quantity of the Line Item
                cost:
                  type: string
                  description: Total cost/price of the Line Item considering the quantity
                metric_id:
                  type: string
                  description: Metric that have generated this Line Item
                contract_id:
                  type: string
                  description: Contract that have generated this Line Item
                type:
                  type: string
                  description: Type of cost. Can be [LineItem::PlanCost, LineItem::VariableCost]
                plan_id:
                  type: string
                  description: The ID of the plan.
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: postApiInvoicesByInvoiceIdLineItemsXml
      x-operation-id-source: derived
    servers:
    - url: /
  /api/invoices/{invoice_id}/line_items/{id}.xml:
    delete:
      summary: Delete Line Item of an Invoice
      tags:
      - Invoice Line Items
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: invoice_id
        in: path
        description: ID of the invoice.
        required: true
        schema:
          type: integer
      - name: id
        in: path
        description: ID of the Line Item.
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: deleteApiInvoicesByInvoiceIdLineItems{id}Xml
      x-operation-id-source: derived
    servers:
    - url: /
x-refined-from:
- red-hat-3scale-porta-billing_api.json
- red-hat-3scale-billing-openapi.yml