Unified.to · Capability
Unified.to API — inventory
Unified.to API — inventory. 6 operations. Lead operation: List all inventories. Self-contained Naftiko capability covering one Unified To business surface.
What You Can Do
GET
Listcommerceinventories
— List all inventories
/v1/commerce/{connection-id}/inventory
POST
Createcommerceinventory
— Create an inventory
/v1/commerce/{connection-id}/inventory
DELETE
Removecommerceinventory
— Remove an inventory
/v1/commerce/{connection-id}/inventory/{id}
GET
Getcommerceinventory
— Retrieve an inventory
/v1/commerce/{connection-id}/inventory/{id}
PATCH
Patchcommerceinventory
— Update an inventory
/v1/commerce/{connection-id}/inventory/{id}
PUT
Updatecommerceinventory
— Update an inventory
/v1/commerce/{connection-id}/inventory/{id}
MCP Tools
list-all-inventories
List all inventories
read-only
idempotent
create-inventory
Create an inventory
remove-inventory
Remove an inventory
idempotent
retrieve-inventory
Retrieve an inventory
read-only
idempotent
update-inventory
Update an inventory
idempotent
update-inventory-2
Update an inventory
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Unified.to API — inventory
description: 'Unified.to API — inventory. 6 operations. Lead operation: List all inventories. Self-contained Naftiko capability
covering one Unified To business surface.'
tags:
- Unified To
- inventory
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
UNIFIED_TO_API_KEY: UNIFIED_TO_API_KEY
capability:
consumes:
- type: http
namespace: commerce-inventory
baseUri: https://api.unified.to
description: Unified.to API — inventory business capability. Self-contained, no shared references.
resources:
- name: commerce-connection_id-inventory
path: /commerce/{connection_id}/inventory
operations:
- name: listcommerceinventories
method: GET
description: List all inventories
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: limit
in: query
type: number
- name: offset
in: query
type: number
- name: updated_gte
in: query
type: string
description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ
format)
- name: sort
in: query
type: string
- name: order
in: query
type: string
- name: query
in: query
type: string
description: Query string to search. eg. email address or name
- name: item_variant_id
in: query
type: string
description: The item variant ID to filter by (reference to CommerceCommerceItemvariant)
- name: location_id
in: query
type: string
description: The location ID to filter by (reference to CommerceLocation)
- name: fields
in: query
type: array
description: Fields to return
- name: raw
in: query
type: string
description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
- name: connection_id
in: path
type: string
description: ID of the connection
required: true
- name: createcommerceinventory
method: POST
description: Create an inventory
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: fields
in: query
type: array
description: Fields to return
- name: raw
in: query
type: string
description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
- name: connection_id
in: path
type: string
description: ID of the connection
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: commerce-connection_id-inventory-id
path: /commerce/{connection_id}/inventory/{id}
operations:
- name: removecommerceinventory
method: DELETE
description: Remove an inventory
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: connection_id
in: path
type: string
description: ID of the connection
required: true
- name: id
in: path
type: string
description: ID of the Inventory
required: true
- name: getcommerceinventory
method: GET
description: Retrieve an inventory
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: fields
in: query
type: array
description: Fields to return
- name: raw
in: query
type: string
description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
- name: connection_id
in: path
type: string
description: ID of the connection
required: true
- name: id
in: path
type: string
description: ID of the Inventory
required: true
- name: patchcommerceinventory
method: PATCH
description: Update an inventory
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: fields
in: query
type: array
description: Fields to return
- name: raw
in: query
type: string
description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
- name: connection_id
in: path
type: string
description: ID of the connection
required: true
- name: id
in: path
type: string
description: ID of the Inventory
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: updatecommerceinventory
method: PUT
description: Update an inventory
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: fields
in: query
type: array
description: Fields to return
- name: raw
in: query
type: string
description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
- name: connection_id
in: path
type: string
description: ID of the connection
required: true
- name: id
in: path
type: string
description: ID of the Inventory
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
authentication:
type: apikey
key: authorization
value: '{{env.UNIFIED_TO_API_KEY}}'
placement: header
exposes:
- type: rest
namespace: commerce-inventory-rest
port: 8080
description: REST adapter for Unified.to API — inventory. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/commerce/{connection-id}/inventory
name: commerce-connection-id-inventory
description: REST surface for commerce-connection_id-inventory.
operations:
- method: GET
name: listcommerceinventories
description: List all inventories
call: commerce-inventory.listcommerceinventories
with:
limit: rest.limit
offset: rest.offset
updated_gte: rest.updated_gte
sort: rest.sort
order: rest.order
query: rest.query
item_variant_id: rest.item_variant_id
location_id: rest.location_id
fields: rest.fields
raw: rest.raw
connection_id: rest.connection_id
outputParameters:
- type: object
mapping: $.
- method: POST
name: createcommerceinventory
description: Create an inventory
call: commerce-inventory.createcommerceinventory
with:
fields: rest.fields
raw: rest.raw
connection_id: rest.connection_id
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/commerce/{connection-id}/inventory/{id}
name: commerce-connection-id-inventory-id
description: REST surface for commerce-connection_id-inventory-id.
operations:
- method: DELETE
name: removecommerceinventory
description: Remove an inventory
call: commerce-inventory.removecommerceinventory
with:
connection_id: rest.connection_id
id: rest.id
outputParameters:
- type: object
mapping: $.
- method: GET
name: getcommerceinventory
description: Retrieve an inventory
call: commerce-inventory.getcommerceinventory
with:
fields: rest.fields
raw: rest.raw
connection_id: rest.connection_id
id: rest.id
outputParameters:
- type: object
mapping: $.
- method: PATCH
name: patchcommerceinventory
description: Update an inventory
call: commerce-inventory.patchcommerceinventory
with:
fields: rest.fields
raw: rest.raw
connection_id: rest.connection_id
id: rest.id
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: PUT
name: updatecommerceinventory
description: Update an inventory
call: commerce-inventory.updatecommerceinventory
with:
fields: rest.fields
raw: rest.raw
connection_id: rest.connection_id
id: rest.id
body: rest.body
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: commerce-inventory-mcp
port: 9090
transport: http
description: MCP adapter for Unified.to API — inventory. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: list-all-inventories
description: List all inventories
hints:
readOnly: true
destructive: false
idempotent: true
call: commerce-inventory.listcommerceinventories
with:
limit: tools.limit
offset: tools.offset
updated_gte: tools.updated_gte
sort: tools.sort
order: tools.order
query: tools.query
item_variant_id: tools.item_variant_id
location_id: tools.location_id
fields: tools.fields
raw: tools.raw
connection_id: tools.connection_id
outputParameters:
- type: object
mapping: $.
- name: create-inventory
description: Create an inventory
hints:
readOnly: false
destructive: false
idempotent: false
call: commerce-inventory.createcommerceinventory
with:
fields: tools.fields
raw: tools.raw
connection_id: tools.connection_id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: remove-inventory
description: Remove an inventory
hints:
readOnly: false
destructive: true
idempotent: true
call: commerce-inventory.removecommerceinventory
with:
connection_id: tools.connection_id
id: tools.id
outputParameters:
- type: object
mapping: $.
- name: retrieve-inventory
description: Retrieve an inventory
hints:
readOnly: true
destructive: false
idempotent: true
call: commerce-inventory.getcommerceinventory
with:
fields: tools.fields
raw: tools.raw
connection_id: tools.connection_id
id: tools.id
outputParameters:
- type: object
mapping: $.
- name: update-inventory
description: Update an inventory
hints:
readOnly: false
destructive: false
idempotent: true
call: commerce-inventory.patchcommerceinventory
with:
fields: tools.fields
raw: tools.raw
connection_id: tools.connection_id
id: tools.id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: update-inventory-2
description: Update an inventory
hints:
readOnly: false
destructive: false
idempotent: true
call: commerce-inventory.updatecommerceinventory
with:
fields: tools.fields
raw: tools.raw
connection_id: tools.connection_id
id: tools.id
body: tools.body
outputParameters:
- type: object
mapping: $.