OPC Suite Inventory API

Products, stock, suppliers and purchasing.

GitHub OpenAPI

Operations 20

GET /api/products List products #
POST /api/products Create a product #
GET /api/products/{id} Get a product #
PATCH /api/products/{id} Update a product #
DELETE /api/products/{id} Delete a product #
GET /api/inventory List inventory #
POST /api/inventory Create a inventory item #
GET /api/inventory/{id} Get a inventory item #
PATCH /api/inventory/{id} Update a inventory item #
DELETE /api/inventory/{id} Delete a inventory item #
GET /api/suppliers List suppliers #
POST /api/suppliers Create a supplier #
GET /api/suppliers/{id} Get a supplier #
PATCH /api/suppliers/{id} Update a supplier #
DELETE /api/suppliers/{id} Delete a supplier #
GET /api/purchases List purchases #
POST /api/purchases Create a purchase order #
GET /api/purchases/{id} Get a purchase order #
PATCH /api/purchases/{id} Update a purchase order #
DELETE /api/purchases/{id} Delete a purchase order #

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/myopc-io:myopc-io-inventory-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

myopc-io-inventory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Myopc Io Inventory API
  version: 1.0.0
  contact:
    name: OPC Suite Support
    email: support@tsa-ai.com
    url: https://www.myopc.io/developers
  termsOfService: https://www.myopc.io/terms
  description: 'Operations tagged Inventory across 2 of this provider''s published API definitions: openapi.json, myopc-io-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.myopc.io
  description: OPC Suite
security:
- bearerAuth: []
- oauth2: []
tags:
- name: Inventory
  description: Products, stock, suppliers and purchasing.
paths:
  /api/products:
    get:
      tags:
      - Inventory
      summary: List products
      operationId: list_products
      security:
      - bearerAuth:
        - products.read
      - oauth2:
        - products.read
      parameters:
      - name: q
        in: query
        required: false
        description: Search products by name/email/company.
        schema:
          type: string
      responses:
        '200':
          description: A list of products.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      tags:
      - Inventory
      summary: Create a product
      operationId: create_products
      security:
      - bearerAuth:
        - products.write
      - oauth2:
        - products.write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The created product.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
    servers:
    - url: https://www.myopc.io
      description: OPC Suite
  /api/products/{id}:
    get:
      tags:
      - Inventory
      summary: Get a product
      operationId: get_products
      security:
      - bearerAuth:
        - products.read
      - oauth2:
        - products.read
      parameters:
      - name: id
        in: path
        required: true
        description: The product ID.
        schema:
          type: string
      responses:
        '200':
          description: The requested product.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    patch:
      tags:
      - Inventory
      summary: Update a product
      operationId: update_products
      security:
      - bearerAuth:
        - products.write
      - oauth2:
        - products.write
      parameters:
      - name: id
        in: path
        required: true
        description: The product ID.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The updated product.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    delete:
      tags:
      - Inventory
      summary: Delete a product
      operationId: delete_products
      security:
      - bearerAuth:
        - products.write
      - oauth2:
        - products.write
      parameters:
      - name: id
        in: path
        required: true
        description: The product ID.
        schema:
          type: string
      responses:
        '200':
          description: The product was deleted.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    servers:
    - url: https://www.myopc.io
      description: OPC Suite
  /api/inventory:
    get:
      tags:
      - Inventory
      summary: List inventory
      operationId: list_inventory
      security:
      - bearerAuth:
        - inventory.read
      - oauth2:
        - inventory.read
      parameters: []
      responses:
        '200':
          description: A list of inventory.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      tags:
      - Inventory
      summary: Create a inventory item
      operationId: create_inventory
      security:
      - bearerAuth:
        - inventory.write
      - oauth2:
        - inventory.write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The created inventory item.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
    servers:
    - url: https://www.myopc.io
      description: OPC Suite
  /api/inventory/{id}:
    get:
      tags:
      - Inventory
      summary: Get a inventory item
      operationId: get_inventory
      security:
      - bearerAuth:
        - inventory.read
      - oauth2:
        - inventory.read
      parameters:
      - name: id
        in: path
        required: true
        description: The inventory item ID.
        schema:
          type: string
      responses:
        '200':
          description: The requested inventory item.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    patch:
      tags:
      - Inventory
      summary: Update a inventory item
      operationId: update_inventory
      security:
      - bearerAuth:
        - inventory.write
      - oauth2:
        - inventory.write
      parameters:
      - name: id
        in: path
        required: true
        description: The inventory item ID.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The updated inventory item.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    delete:
      tags:
      - Inventory
      summary: Delete a inventory item
      operationId: delete_inventory
      security:
      - bearerAuth:
        - inventory.write
      - oauth2:
        - inventory.write
      parameters:
      - name: id
        in: path
        required: true
        description: The inventory item ID.
        schema:
          type: string
      responses:
        '200':
          description: The inventory item was deleted.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    servers:
    - url: https://www.myopc.io
      description: OPC Suite
  /api/suppliers:
    get:
      tags:
      - Inventory
      summary: List suppliers
      operationId: list_suppliers
      security:
      - bearerAuth:
        - suppliers.read
      - oauth2:
        - suppliers.read
      parameters: []
      responses:
        '200':
          description: A list of suppliers.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      tags:
      - Inventory
      summary: Create a supplier
      operationId: create_suppliers
      security:
      - bearerAuth:
        - suppliers.write
      - oauth2:
        - suppliers.write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The created supplier.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
    servers:
    - url: https://www.myopc.io
      description: OPC Suite
  /api/suppliers/{id}:
    get:
      tags:
      - Inventory
      summary: Get a supplier
      operationId: get_suppliers
      security:
      - bearerAuth:
        - suppliers.read
      - oauth2:
        - suppliers.read
      parameters:
      - name: id
        in: path
        required: true
        description: The supplier ID.
        schema:
          type: string
      responses:
        '200':
          description: The requested supplier.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    patch:
      tags:
      - Inventory
      summary: Update a supplier
      operationId: update_suppliers
      security:
      - bearerAuth:
        - suppliers.write
      - oauth2:
        - suppliers.write
      parameters:
      - name: id
        in: path
        required: true
        description: The supplier ID.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The updated supplier.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    delete:
      tags:
      - Inventory
      summary: Delete a supplier
      operationId: delete_suppliers
      security:
      - bearerAuth:
        - suppliers.write
      - oauth2:
        - suppliers.write
      parameters:
      - name: id
        in: path
        required: true
        description: The supplier ID.
        schema:
          type: string
      responses:
        '200':
          description: The supplier was deleted.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    servers:
    - url: https://www.myopc.io
      description: OPC Suite
  /api/purchases:
    get:
      tags:
      - Inventory
      summary: List purchases
      operationId: list_purchases
      security:
      - bearerAuth:
        - purchases.read
      - oauth2:
        - purchases.read
      parameters: []
      responses:
        '200':
          description: A list of purchases.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      tags:
      - Inventory
      summary: Create a purchase order
      operationId: create_purchases
      security:
      - bearerAuth:
        - purchases.write
      - oauth2:
        - purchases.write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The created purchase order.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
    servers:
    - url: https://www.myopc.io
      description: OPC Suite
  /api/purchases/{id}:
    get:
      tags:
      - Inventory
      summary: Get a purchase order
      operationId: get_purchases
      security:
      - bearerAuth:
        - purchases.read
      - oauth2:
        - purchases.read
      parameters:
      - name: id
        in: path
        required: true
        description: The purchase order ID.
        schema:
          type: string
      responses:
        '200':
          description: The requested purchase order.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    patch:
      tags:
      - Inventory
      summary: Update a purchase order
      operationId: update_purchases
      security:
      - bearerAuth:
        - purchases.write
      - oauth2:
        - purchases.write
      parameters:
      - name: id
        in: path
        required: true
        description: The purchase order ID.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The updated purchase order.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    delete:
      tags:
      - Inventory
      summary: Delete a purchase order
      operationId: delete_purchases
      security:
      - bearerAuth:
        - purchases.write
      - oauth2:
        - purchases.write
      parameters:
      - name: id
        in: path
        required: true
        description: The purchase order ID.
        schema:
          type: string
      responses:
        '200':
          description: The purchase order was deleted.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Not found.
    servers:
    - url: https://www.myopc.io
      description: OPC Suite
components:
  responses:
    Forbidden:
      description: The token lacks the required scope.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    Unauthorized:
      description: Missing or invalid credentials.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    SubscriptionRequired:
      description: The account's subscription is not active.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              message:
                type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Personal access token (opc_pat_…) from /dashboard/settings/developer.
    oauth2:
      type: oauth2
      description: OAuth 2.1 authorization code + PKCE.
      flows:
        authorizationCode:
          authorizationUrl: https://www.myopc.io/oauth/authorize
          tokenUrl: https://www.myopc.io/oauth/token
          scopes: {}
x-refined-from:
- openapi.json
- myopc-io-openapi.json
x-provenance:
  method: harvested
  publisher: OPC Suite
  source: https://myopc.io/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)