Red Hat 3scale Invoices API

Manage billing invoices for developer accounts

GitHub OpenAPI
Business capability
Invoicing & Statement Management BC-4250.30

Operations 10

GET /api/invoices.xml Invoice List #
POST /api/invoices.xml Invoice Create #
GET /api/invoices/{id}.xml Invoice Read #
PUT /api/invoices/{id}.xml Invoice Update #
PUT /api/invoices/{id}/state.xml Invoice Update state #
POST /api/invoices/{id}/charge.xml Invoice Charge #
GET /api/invoices/{invoice_id}/payment_transactions.xml Invoice Payment Transactions List #
GET /accounts/{account_id}/invoices.json List Account Invoices #
GET /accounts/{account_id}/invoices/{id}.json Get Account Invoice #
GET /invoices.json List All Invoices #

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-invoices-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-invoices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Billing Invoices API
  description: API for managing invoices.
  version: '1.0'
servers:
- url: /
tags:
- name: Invoices
  description: Manage billing invoices for developer accounts
paths:
  /api/invoices.xml:
    get:
      summary: Invoice List
      tags:
      - Invoices
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: state
        in: query
        description: 'Filter Invoices by state. ''open'': line items can be added (via web interface). ''pending'': the Invoice has been issued, no items can be added, the PDF has been generated and the Invoice is waiting to be charged. ''paid'': sucessfully paid. ''unpaid'': charging failed at least once. ''cancelled'': the Invoice was explicitly cancelled and is out of the normal life-cycle.'
        schema:
          type: string
          enum:
          - open
          - finalized
          - pending
          - paid
          - unpaid
          - failed
          - cancelled
      - name: month
        in: query
        description: Filter Invoices by month. Format YYYY-MM, e.g. '2012-03'.
        schema:
          type: string
          pattern: ^\d{4}-\d{2}$
      - name: page
        in: query
        description: Page in the paginated list. Defaults to 1.
        schema:
          type: integer
          default: 1
      - name: per_page
        in: query
        description: Number of results per page. Default and max is 20.
        schema:
          type: integer
          default: 20
      responses:
        default:
          description: success
          content: {}
      operationId: getApiInvoicesXml
      x-operation-id-source: derived
    post:
      summary: Invoice Create
      tags:
      - Invoices
      requestBody:
        description: Invoice Create
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                account_id:
                  type: integer
                  description: ID of the account.
                  x-data-threescale-name: account_ids
                period:
                  type: string
                  description: Billing period of the Invoice. The format should be YYYY-MM.
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: postApiInvoicesXml
      x-operation-id-source: derived
    servers:
    - 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
  /api/invoices/{id}.xml:
    get:
      summary: Invoice Read
      tags:
      - Invoices
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: ID of the Invoice.
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getApiInvoices{id}Xml
      x-operation-id-source: derived
    put:
      summary: Invoice Update
      tags:
      - Invoices
      parameters:
      - name: id
        in: path
        description: ID of the Invoice.
        required: true
        schema:
          type: integer
      requestBody:
        description: Invoice Update
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                period:
                  type: string
                  description: Billing period of the Invoice. The format should be YYYY-MM.
                  pattern: ^\d{4}-\d{2}$
                friendly_id:
                  type: string
                  description: Friendly ID of the Invoice. The format should be YYYY-MM-XXXXXXXX or YYYY-XXXXXXXX
                  pattern: ^\d{4}(-\d{2})?-\d{8}$
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: putApiInvoices{id}Xml
      x-operation-id-source: derived
    servers:
    - 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
  /api/invoices/{id}/state.xml:
    put:
      summary: Invoice Update state
      tags:
      - Invoices
      parameters:
      - name: id
        in: path
        description: ID of the Invoice.
        required: true
        schema:
          type: integer
      requestBody:
        description: Invoice Update state
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                state:
                  type: string
                  description: 'State of the Invoice to set. Values allowed (depend on the previous state): cancelled, failed, paid, unpaid, pending, finalized'
                  enum:
                  - finalized
                  - pending
                  - paid
                  - unpaid
                  - cancelled
                  - failed
              required:
              - access_token
              - state
      responses:
        default:
          description: success
          content: {}
      operationId: putApiInvoicesByIdStateXml
      x-operation-id-source: derived
    servers:
    - 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
  /api/invoices/{id}/charge.xml:
    post:
      summary: Invoice Charge
      tags:
      - Invoices
      parameters:
      - name: id
        in: path
        description: ID of the Invoice.
        required: true
        schema:
          type: integer
      requestBody:
        description: Invoice Charge
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: postApiInvoicesByIdChargeXml
      x-operation-id-source: derived
    servers:
    - 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
  /api/invoices/{invoice_id}/payment_transactions.xml:
    get:
      summary: Invoice Payment Transactions List
      tags:
      - Invoices
      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: getApiInvoicesByInvoiceIdPaymentTransactionsXml
      x-operation-id-source: derived
    servers:
    - 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
  /accounts/{account_id}/invoices.json:
    get:
      operationId: listAccountInvoices
      summary: List Account Invoices
      description: Returns a list of invoices for a specific developer account, including their amounts, states, and billing periods.
      tags:
      - Invoices
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: account_id
        in: path
        required: true
        description: The ID of the developer account
        schema:
          type: integer
      - name: state
        in: query
        description: Filter by invoice state
        schema:
          type: string
          enum:
          - open
          - pending
          - unpaid
          - paid
          - failed
          - cancelled
      - name: month
        in: query
        description: Filter by billing month (YYYY-MM format)
        schema:
          type: string
      responses:
        '200':
          description: List of invoices returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceList'
      security:
      - access_token: []
    servers:
    - url: https://{domain}-admin.3scale.net/api
      description: 3scale Billing API
      variables:
        domain:
          default: your-domain
          description: Your 3scale tenant domain
  /accounts/{account_id}/invoices/{id}.json:
    get:
      operationId: getAccountInvoice
      summary: Get Account Invoice
      description: Returns details for a specific invoice including line items and total.
      tags:
      - Invoices
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: account_id
        in: path
        required: true
        schema:
          type: integer
      - name: id
        in: path
        required: true
        description: The invoice ID
        schema:
          type: integer
      responses:
        '200':
          description: Invoice details returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Invoice'
        '404':
          description: Invoice not found
      security:
      - access_token: []
    servers:
    - url: https://{domain}-admin.3scale.net/api
      description: 3scale Billing API
      variables:
        domain:
          default: your-domain
          description: Your 3scale tenant domain
  /invoices.json:
    get:
      operationId: listAllInvoices
      summary: List All Invoices
      description: Returns all invoices across all accounts. Supports filtering by month and state.
      tags:
      - Invoices
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: state
        in: query
        description: Filter by invoice state
        schema:
          type: string
          enum:
          - open
          - pending
          - unpaid
          - paid
          - failed
          - cancelled
      - name: month
        in: query
        description: Filter by billing month (YYYY-MM)
        schema:
          type: string
      - name: page
        in: query
        schema:
          type: integer
          default: 1
      - name: per_page
        in: query
        schema:
          type: integer
          default: 20
      responses:
        '200':
          description: All invoices returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceList'
      security:
      - access_token: []
    servers:
    - url: https://{domain}-admin.3scale.net/api
      description: 3scale Billing API
      variables:
        domain:
          default: your-domain
          description: Your 3scale tenant domain
components:
  schemas:
    InvoiceLineItem:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
          description: Description of the line item
        cost:
          type: number
          description: Cost for this line item
        quantity:
          type: number
          description: Quantity consumed
        type:
          type: string
          description: Type of charge (setup, recurring, variable)
    InvoiceList:
      type: object
      properties:
        invoices:
          type: array
          items:
            $ref: '#/components/schemas/Invoice'
    Invoice:
      type: object
      properties:
        id:
          type: integer
        state:
          type: string
          enum:
          - open
          - pending
          - unpaid
          - paid
          - failed
          - cancelled
        friendly_id:
          type: string
          description: Human-readable invoice ID (e.g., 2026-00000001)
        month:
          type: string
          description: Billing month in YYYY-MM format
        due_on:
          type: string
          format: date
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        cost:
          type: number
          format: float
          description: Invoice total amount
        currency:
          type: string
          description: ISO 4217 currency code
        account:
          type: object
          properties:
            id:
              type: integer
            org_name:
              type: string
        line_items:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceLineItem'
  parameters:
    accessToken:
      name: access_token
      in: query
      required: true
      description: Admin API access token
      schema:
        type: string
  securitySchemes:
    access_token:
      type: apiKey
      in: query
      name: access_token