SubCenter.io Invoices API

The Invoices API from SubCenter.io — 7 operation(s) for invoices.

GitHub OpenAPI

Operations 8

GET /workspaces/{workspace_id}/invoices Invoices, newest first #
POST /workspaces/{workspace_id}/invoices Upload invoice PDFs or e-invoices; they're read in the background #
GET /workspaces/{workspace_id}/invoices/{id} One invoice with what was read from it #
GET /workspaces/{workspace_id}/invoices/{id}/file Redirects to the original PDF or e-invoice (link valid 5 minutes) #
POST /workspaces/{workspace_id}/invoices/{id}/confirm Confirm an invoice and link it to a tool #
POST /workspaces/{workspace_id}/invoices/{id}/reject Dismiss an invoice (not a software invoice, or not ours) #
POST /workspaces/{workspace_id}/invoices/{id}/restore Move a dismissed invoice back to review #
POST /workspaces/{workspace_id}/invoices/{id}/send_to_accounting Send a confirmed invoice to the bookkeeping address again (admins) #

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/subcenter-io:subcenter-io-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

subcenter-io-invoices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SubCenter for Teams Invoices API
  version: '1.0'
  summary: Track a team's SaaS and AI tools, invoices, seats and client bill-back.
  description: 'The API behind the SubCenter for Teams apps, open to agents and scripts.

    Every path is scoped to one workspace.


    **Authentication.** Send `Authorization: Bearer `. Agents use a

    workspace API key (`sck_…`, made under Settings → Agents & API) or an

    OAuth 2.1 connection (authorization code with PKCE; see

    `/.well-known/oauth-authorization-server`). Both are bound to a single

    workspace and act as the member who created them.


    **Scopes.** `read` is always granted. Writes need a scope, listed on each

    operation as `x-required-scope`. Scopes never exceed the member''s role:

    admin-only scopes (`clients:write`, `people:write`, `exports`, `webhooks`)

    stop working if the member is no longer an admin.


    **Safety.** Destructive operations accept `dry_run=true` and return what

    would change. Writes accept an `Idempotency-Key` header (up to 255

    characters, kept 24 hours); a retry with the same key replays the first

    response with `Idempotent-Replayed: true`.


    **Errors** are `{ error, code, details?, docs_url }`. Common codes:

    `not_found`, `invalid`, `insufficient_scope`, `admin_required`,

    `read_only`, `plan_lapsed`, `rate_limited`, `idempotency_key_reused`.


    **Lists** take `limit` (up to 200) and `cursor`, and return `next_cursor`

    until there''s nothing more.


    **Rate limits.** 120 requests a minute per credential and 600 a minute

    per workspace. A 429 carries `Retry-After`.


    Amounts come as formatted strings (`"€24.00"`) and integer cents in the

    stated currency. Reports are in the workspace currency, net of VAT unless

    the workspace''s `amounts_include_vat` is true.'
  contact:
    name: SubCenter
    url: https://subcenter.io/teams/developers
servers:
- url: https://subcenter.io/api/v1/teams
security:
- apiKey: []
- oauth2:
  - read
tags:
- name: Invoices
paths:
  /workspaces/{workspace_id}/invoices:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    get:
      tags:
      - Invoices
      operationId: listInvoices
      summary: Invoices, newest first
      parameters:
      - name: status
        in: query
        schema:
          type: string
          enum:
          - pending_review
          - confirmed
          - duplicate
          - rejected
          - all
          default: pending_review
      - name: tool_id
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  invoices:
                    type: array
                    items:
                      $ref: '#/components/schemas/Invoice'
                  next_cursor:
                    type:
                    - string
                    - 'null'
    post:
      tags:
      - Invoices
      operationId: uploadInvoices
      summary: Upload invoice PDFs or e-invoices; they're read in the background
      x-required-scope: invoices:write
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                files[]:
                  type: array
                  items:
                    type: string
                    format: binary
      responses:
        '202':
          description: Accepted. Read invoices appear in the review inbox.
          content:
            application/json:
              schema:
                type: object
                properties:
                  inbound_email_id:
                    type: string
                  files:
                    type: integer
  /workspaces/{workspace_id}/invoices/{id}:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    - $ref: '#/components/parameters/Id'
    get:
      tags:
      - Invoices
      operationId: getInvoice
      summary: One invoice with what was read from it
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  invoice:
                    $ref: '#/components/schemas/Invoice'
  /workspaces/{workspace_id}/invoices/{id}/file:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    - $ref: '#/components/parameters/Id'
    get:
      tags:
      - Invoices
      operationId: getInvoiceFile
      summary: Redirects to the original PDF or e-invoice (link valid 5 minutes)
      responses:
        '302':
          description: Redirect to the file
  /workspaces/{workspace_id}/invoices/{id}/confirm:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    - $ref: '#/components/parameters/Id'
    post:
      tags:
      - Invoices
      operationId: confirmInvoice
      summary: Confirm an invoice and link it to a tool
      description: Use tool_id "new" to create the tool from the invoice. By default the tool's price, seats and renewal date are brought up to date.
      x-required-scope: invoices:write
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - tool_id
              properties:
                tool_id:
                  type: string
                  description: A tool id, or "new"
                update_tool:
                  type: boolean
                  default: true
                auto_confirm:
                  type: boolean
                  description: Confirm this tool's future invoices without review (admins)
                invoice:
                  type: object
                  description: Corrections to what was read
                  properties:
                    vendor:
                      type: string
                    invoice_number:
                      type: string
                    issued_on:
                      type: string
                      format: date
                    amount:
                      type: string
                    vat:
                      type: string
                    total:
                      type: string
                    currency:
                      type: string
                    cadence:
                      type: string
                      enum:
                      - week
                      - month
                      - quarter
                      - year
                    seats:
                      type: integer
                    next_renewal:
                      type: string
                      format: date
      responses:
        '200':
          description: Confirmed
          content:
            application/json:
              schema:
                type: object
                properties:
                  invoice:
                    $ref: '#/components/schemas/Invoice'
                  tool:
                    $ref: '#/components/schemas/Tool'
                  price_changed:
                    type: boolean
  /workspaces/{workspace_id}/invoices/{id}/reject:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    - $ref: '#/components/parameters/Id'
    post:
      tags:
      - Invoices
      operationId: dismissInvoice
      summary: Dismiss an invoice (not a software invoice, or not ours)
      x-required-scope: invoices:write
      responses:
        '200':
          $ref: '#/components/responses/InvoiceSummary'
  /workspaces/{workspace_id}/invoices/{id}/restore:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    - $ref: '#/components/parameters/Id'
    post:
      tags:
      - Invoices
      operationId: restoreInvoice
      summary: Move a dismissed invoice back to review
      x-required-scope: invoices:write
      responses:
        '200':
          $ref: '#/components/responses/InvoiceSummary'
  /workspaces/{workspace_id}/invoices/{id}/send_to_accounting:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    - $ref: '#/components/parameters/Id'
    post:
      tags:
      - Invoices
      operationId: sendInvoiceToAccounting
      summary: Send a confirmed invoice to the bookkeeping address again (admins)
      x-required-scope: invoices:write
      responses:
        '202':
          description: Queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  queued:
                    type: boolean
                  accounting_email:
                    type: string
webhooks:
  event:
    post:
      summary: A change in the workspace
      description: 'Sent to each webhook endpoint subscribed to the event type, as JSON.

        Verify it before trusting it: the `SubCenter-Signature` header is

        `t=,v1=`, where the signature is the hex

        HMAC-SHA256 of `.` with the webhook''s secret. Reject

        timestamps older than five minutes. Answer 2xx within 10 seconds;

        anything else is retried with growing waits for about four hours, and a

        webhook is turned off after 20 deliveries in a row fail. Deliveries

        can arrive more than once: use the `id` to ignore repeats.'
      parameters:
      - name: SubCenter-Signature
        in: header
        required: true
        schema:
          type: string
      - name: SubCenter-Event
        in: header
        required: true
        schema:
          type: string
      - name: SubCenter-Delivery
        in: header
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookEvent'
      responses:
        '200':
          description: Received
      tags:
      - Invoices
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      schema:
        type: string
        maxLength: 255
      description: Retry-safe key for this write
    WorkspaceId:
      name: workspace_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
      description: next_cursor from the previous page
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 200
  schemas:
    WebhookEvent:
      type: object
      properties:
        id:
          type: string
          description: The delivery id; the same on retries
        type:
          type: string
          example: tool.cancelled
        created_at:
          type: string
          format: date-time
        workspace_id:
          type: string
        actor:
          type:
          - object
          - 'null'
          description: Who made the change; null for system events like invoice.received and tool.renewal_upcoming
          properties:
            label:
              type: string
            via:
              type: string
              enum:
              - web
              - mobile
              - api_key
              - oauth
        data:
          type: object
          properties:
            object:
              type:
              - object
              - 'null'
              description: The tool, invoice, seat, member or offboarding, as the API returns it; null once deleted
            changes:
              type:
              - object
              - 'null'
              description: 'field: [before, after]'
    Invoice:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - pending_review
          - confirmed
          - duplicate
          - rejected
        vendor:
          type: string
        invoice_number:
          type:
          - string
          - 'null'
        issued_on:
          type:
          - string
          - 'null'
          format: date
        currency:
          type:
          - string
          - 'null'
        total_cents:
          type:
          - integer
          - 'null'
        total:
          type:
          - string
          - 'null'
        structured:
          type: boolean
          description: Read exactly from an e-invoice rather than by AI
        credit_note:
          type: boolean
        avoidable_vat:
          type: boolean
          description: A vendor in another country charged VAT that a VAT-registered EU business usually shouldn't pay (it likely lacks the business's VAT number)
        has_file:
          type: boolean
        tool:
          type:
          - object
          - 'null'
          properties:
            id:
              type: string
            name:
              type: string
        suggested_tool:
          type:
          - object
          - 'null'
          properties:
            id:
              type: string
            name:
              type: string
    Tool:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        status:
          type: string
          enum:
          - active
          - cancelled
        category:
          type:
          - string
          - 'null'
        domain:
          type:
          - string
          - 'null'
        trial:
          type: boolean
        cost_cents:
          type: integer
        cost_currency:
          type: string
        cost:
          type: string
        cadence:
          type: string
        seats:
          type:
          - integer
          - 'null'
        monthly_cost:
          type:
          - string
          - 'null'
          description: Net monthly equivalent in the workspace currency
        monthly_cost_cents:
          type:
          - integer
          - 'null'
        renewal_date:
          type: string
          format: date
        days_until_renewal:
          type: integer
        notice_days:
          type: integer
        cancel_by:
          type:
          - string
          - 'null'
          format: date
        kept:
          type: boolean
        owner_membership_id:
          type:
          - string
          - 'null'
        owner_email:
          type:
          - string
          - 'null'
  responses:
    InvoiceSummary:
      description: The invoice
      content:
        application/json:
          schema:
            type: object
            properties:
              invoice:
                $ref: '#/components/schemas/Invoice'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: A workspace API key (sck_…) from Settings → Agents & API.
    oauth2:
      type: oauth2
      description: Authorization code with PKCE (S256). Clients can register themselves at /oauth/register.
      flows:
        authorizationCode:
          authorizationUrl: https://subcenter.io/oauth/authorize
          tokenUrl: https://subcenter.io/oauth/token
          refreshUrl: https://subcenter.io/oauth/token
          scopes:
            read: Read tools, invoices, people, clients, reports and activity
            tools:write: Add, change and cancel tools, assign seats
            invoices:write: Upload, confirm and dismiss invoices
            clients:write: Add, rename and archive clients (admins)
            people:write: Invite, offboard and remove people, change roles (admins)
            exports: Prepare downloads of invoices and workspace data (admins)
            webhooks: Manage webhook endpoints (admins)