Print Hive Inventory Orders API
Inventory order management endpoints
Inventory order management endpoints
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/printhiv3d-com:printhiv3d-com-inventory-orders-api"
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.
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: 3.2.0
info:
title: Print Hive API Documentation Inventory Orders API
description: 'REST API for the Print Hive print farm management platform: printers, print jobs, models, materials, inventory, smart queue, and integrations.'
version: 1.0.0
servers:
- url: https://api.printhiv3d.com
description: Production
tags:
- name: Inventory Orders
description: Inventory order management endpoints
paths:
/v1/inventory-orders:
post:
summary: Create an inventory order
tags:
- Inventory Orders
description: Admin only. Creates an inventory order with line items and optionally links purchase requests.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- orderSource
- items
properties:
orderSource:
type: string
orderId:
type: string
estimatedArrival:
type: string
format: date-time
notes:
type: string
items:
type: array
minItems: 1
items:
type: object
required:
- materialId
- quantityOrdered
properties:
materialId:
type: string
format: uuid
quantityOrdered:
type: integer
minimum: 1
unit:
type: string
weightPerUnit:
type: number
minimum: 0
purchaseRequestItemIds:
type: array
items:
type: string
format: uuid
description: IDs from inventory_purchase_request_items table
security:
- bearerAuth: []
responses:
'200':
description: Default Response
default:
description: Unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1InventoryOrders
x-operation-id-source: derived
get:
summary: List inventory orders
tags:
- Inventory Orders
description: List inventory orders with optional status and source filters. Supports pagination.
parameters:
- schema:
type: string
enum:
- pending
- partial
- complete
- cancelled
in: query
name: status
required: false
- schema:
type: string
in: query
name: source
required: false
- schema:
type: integer
minimum: 1
default: 1
in: query
name: page
required: false
- schema:
type: integer
minimum: 1
maximum: 100
default: 50
in: query
name: limit
required: false
security:
- bearerAuth: []
responses:
'200':
description: Default Response
default:
description: Unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1InventoryOrders
x-operation-id-source: derived
/v1/inventory-orders/{id}:
get:
summary: Get inventory order detail
tags:
- Inventory Orders
description: Retrieve a single inventory order with its items, materials, and linked purchase requests.
parameters:
- schema:
type: string
format: uuid
in: path
name: id
required: true
security:
- bearerAuth: []
responses:
'200':
description: Default Response
default:
description: Unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1InventoryOrdersById
x-operation-id-source: derived
patch:
summary: Update an inventory order
tags:
- Inventory Orders
description: Admin only. Update order status, estimated arrival, or notes.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
status:
type: string
enum:
- pending
- partial
- complete
- cancelled
estimatedArrival:
type: string
format: date-time
notes:
type: string
parameters:
- schema:
type: string
format: uuid
in: path
name: id
required: true
security:
- bearerAuth: []
responses:
'200':
description: Default Response
default:
description: Unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: patchV1InventoryOrdersById
x-operation-id-source: derived
delete:
summary: Cancel an inventory order
tags:
- Inventory Orders
description: Admin only. Sets the order status to cancelled. The DB trigger handles reverting linked purchase requests.
parameters:
- schema:
type: string
format: uuid
in: path
name: id
required: true
security:
- bearerAuth: []
responses:
'200':
description: Default Response
default:
description: Unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: deleteV1InventoryOrdersById
x-operation-id-source: derived
/v1/inventory-orders/{id}/items:
post:
summary: Add items to an existing order
tags:
- Inventory Orders
description: Admin only. Add new line items to an existing inventory order.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- items
properties:
items:
type: array
minItems: 1
items:
type: object
required:
- materialId
- quantityOrdered
properties:
materialId:
type: string
format: uuid
quantityOrdered:
type: integer
minimum: 1
unit:
type: string
weightPerUnit:
type: number
minimum: 0
purchaseRequestItemIds:
type: array
items:
type: string
format: uuid
description: IDs from inventory_purchase_request_items table
parameters:
- schema:
type: string
format: uuid
in: path
name: id
required: true
security:
- bearerAuth: []
responses:
'200':
description: Default Response
default:
description: Unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1InventoryOrdersByIdItems
x-operation-id-source: derived
/v1/inventory-orders/{id}/receive:
post:
summary: Receive items from an order
tags:
- Inventory Orders
description: Admin only. Record received quantities, update inventory, and create transaction records.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- items
properties:
items:
type: array
minItems: 1
items:
type: object
required:
- orderItemId
- quantityReceived
properties:
orderItemId:
type: string
format: uuid
quantityReceived:
type: integer
minimum: 1
parameters:
- schema:
type: string
format: uuid
in: path
name: id
required: true
security:
- bearerAuth: []
responses:
'200':
description: Default Response
default:
description: Unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1InventoryOrdersByIdReceive
x-operation-id-source: derived
components:
schemas:
Error:
type: object
description: 'Consistent Print Hive API error body: a machine-readable error code and a human-readable message.'
properties:
error:
type: string
description: Machine-readable error code.
message:
type: string
description: Human-readable explanation of the failure.
required:
- error
- message
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
apiKeyAuth:
type: apiKey
in: header
name: x-api-key
apiKey:
type: apiKey
in: header
name: x-api-key