Space Invoices Item API
The Item API from Space Invoices — 5 operation(s) for item.
Operations 7
POST
/v1/Items/{id}/replace
Replace attributes for a model instance and persist it into the data source
#
The Item API from Space Invoices — 5 operation(s) for item.
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/spaceinvoices-com:spaceinvoices-com-item-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: space-invoices-api Item API
version: 2.0.0
description: ''
contact:
name: Space Invoices Inc
servers:
- url: https://api.spaceinvoices.com
security:
- accessTokenHeader: []
accessTokenQuery: []
tags:
- name: Item
paths:
/v1/Items/{id}/components/{fk}:
put:
tags:
- Item
summary: Update a related item by id for components
operationId: Item.prototype.__updateById__components
parameters:
- name: id
in: path
description: Item id
required: true
schema:
type: string
format: JSON
- name: fk
in: path
description: Foreign key for components
required: true
schema:
type: string
format: JSON
requestBody:
$ref: '#/components/requestBodies/Component'
responses:
'200':
description: Request was successful
content:
application/json:
schema:
$ref: '#/components/schemas/Component'
application/xml:
schema:
$ref: '#/components/schemas/Component'
text/xml:
schema:
$ref: '#/components/schemas/Component'
application/javascript:
schema:
$ref: '#/components/schemas/Component'
text/javascript:
schema:
$ref: '#/components/schemas/Component'
deprecated: false
/v1/Items/{id}/inventories:
get:
tags:
- Item
summary: Queries inventories of Item
operationId: Item.prototype.__get__inventories
parameters:
- name: id
in: path
description: Item id
required: true
schema:
type: string
format: JSON
- name: filter
in: query
required: false
schema:
type: string
format: JSON
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Inventory'
application/xml:
schema:
type: array
items:
$ref: '#/components/schemas/Inventory'
text/xml:
schema:
type: array
items:
$ref: '#/components/schemas/Inventory'
application/javascript:
schema:
type: array
items:
$ref: '#/components/schemas/Inventory'
text/javascript:
schema:
type: array
items:
$ref: '#/components/schemas/Inventory'
deprecated: false
/v1/Items/{id}/components:
post:
tags:
- Item
summary: Creates a new instance in components of this model
operationId: Item.prototype.__create__components
parameters:
- name: id
in: path
description: Item id
required: true
schema:
type: string
format: JSON
requestBody:
$ref: '#/components/requestBodies/Component'
responses:
'200':
description: Request was successful
content:
application/json:
schema:
$ref: '#/components/schemas/Component'
application/xml:
schema:
$ref: '#/components/schemas/Component'
text/xml:
schema:
$ref: '#/components/schemas/Component'
application/javascript:
schema:
$ref: '#/components/schemas/Component'
text/javascript:
schema:
$ref: '#/components/schemas/Component'
deprecated: false
/v1/Items/{id}:
get:
tags:
- Item
summary: Find a model instance by {{id}} from the data source
operationId: Item.findById
parameters:
- name: id
in: path
description: Model id
required: true
schema:
type: string
format: JSON
- name: filter
in: query
description: Filter defining fields and include - must be a JSON-encoded string ({"something":"value"})
required: false
schema:
type: string
format: JSON
responses:
'200':
description: Request was successful
content:
application/json:
schema:
$ref: '#/components/schemas/Item'
application/xml:
schema:
$ref: '#/components/schemas/Item'
text/xml:
schema:
$ref: '#/components/schemas/Item'
application/javascript:
schema:
$ref: '#/components/schemas/Item'
text/javascript:
schema:
$ref: '#/components/schemas/Item'
deprecated: false
put:
tags:
- Item
summary: Replace attributes for a model instance and persist it into the data source
operationId: Item.replaceById__put_Items_{id}
parameters:
- name: id
in: path
description: Model id
required: true
schema:
type: string
format: JSON
requestBody:
$ref: '#/components/requestBodies/Item'
responses:
'200':
description: Request was successful
content:
application/json:
schema:
$ref: '#/components/schemas/Item'
application/xml:
schema:
$ref: '#/components/schemas/Item'
text/xml:
schema:
$ref: '#/components/schemas/Item'
application/javascript:
schema:
$ref: '#/components/schemas/Item'
text/javascript:
schema:
$ref: '#/components/schemas/Item'
deprecated: false
delete:
tags:
- Item
summary: Delete a model instance by {{id}} from the data source
operationId: Item.deleteById
parameters:
- name: id
in: path
description: Model id
required: true
schema:
type: string
format: JSON
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: object
application/xml:
schema:
type: object
text/xml:
schema:
type: object
application/javascript:
schema:
type: object
text/javascript:
schema:
type: object
deprecated: false
/v1/Items/{id}/replace:
post:
tags:
- Item
summary: Replace attributes for a model instance and persist it into the data source
operationId: Item.replaceById__post_Items_{id}_replace
parameters:
- name: id
in: path
description: Model id
required: true
schema:
type: string
format: JSON
requestBody:
$ref: '#/components/requestBodies/Item'
responses:
'200':
description: Request was successful
content:
application/json:
schema:
$ref: '#/components/schemas/Item'
application/xml:
schema:
$ref: '#/components/schemas/Item'
text/xml:
schema:
$ref: '#/components/schemas/Item'
application/javascript:
schema:
$ref: '#/components/schemas/Item'
text/javascript:
schema:
$ref: '#/components/schemas/Item'
deprecated: false
components:
schemas:
Component:
properties:
id:
type: string
amount:
description: How many of this component go into one parent composed item.
type: number
format: double
itemId:
$ref: '#/components/schemas/ObjectID'
custom:
default: {}
description: Custom field for freeform data input
type: object
required:
- id
- amount
additionalProperties: false
x-any:
properties: {}
TaxExemption:
properties:
code:
type: string
reason:
type: string
id:
type: string
additionalProperties: false
ObjectID:
type: string
pattern: ^[a-fA-F\d]{24}$
Data:
properties:
id:
type: string
name:
description: Name identifier of data
type: string
value:
$ref: '#/components/schemas/x-any'
options:
description: 'Different data options.
Ie. should the value be persistem to the document `onPDF: boolean`.
This includes displaying on PDF.
Note that only two values will be displayed per PDF on Client.
Add Document data to export using `export: boolean`'
type: object
required:
- id
- name
additionalProperties: false
Inventory:
properties:
amount:
default: 0
type: number
format: double
id:
$ref: '#/components/schemas/ObjectID'
itemId:
$ref: '#/components/schemas/ObjectID'
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
custom:
default: {}
description: Custom field for freeform data input
type: object
warehouseId:
$ref: '#/components/schemas/ObjectID'
required:
- amount
additionalProperties: false
Item:
properties:
type:
description: Is item sold, bought or both
type: string
purchasePrice:
type: number
format: double
purchasePriceGross:
type: number
format: double
name:
type: string
description:
default: ''
type: string
price:
type: number
format: double
priceGross:
type: number
format: double
classification:
type: string
unit:
type: string
SKU:
type: string
EAN:
type: string
trackInventory:
type: boolean
onBehalf:
description: tax number of company selling this item/service on behalf of
type: string
taxExemptionCode:
description: Has to be specified in some countries if the tax is 0 or not present
type: string
taxExemptionReason:
description: Has to be specified in some countries if the tax is 0 or not present
type: string
kpd:
description: KPD classification code (Croatian CPA) - format XX.XX.XX
type: string
id:
$ref: '#/components/schemas/ObjectID'
_taxExemption:
$ref: '#/components/schemas/TaxExemption'
custom:
default: {}
description: Custom field for freeform data input
type: object
l10n:
description: Object for storing localized values of strings
type: object
deletedAt:
type: string
format: date-time
_isDeleted:
default: false
type: boolean
deletedId:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
taxIds:
type: array
items:
$ref: '#/components/schemas/ObjectID'
purchaseTaxIds:
type: array
items:
$ref: '#/components/schemas/ObjectID'
organizationId:
$ref: '#/components/schemas/ObjectID'
unitId:
$ref: '#/components/schemas/ObjectID'
unitIds:
type: array
items:
$ref: '#/components/schemas/ObjectID'
_components:
type: array
items:
$ref: '#/components/schemas/Component'
_data:
type: array
items:
$ref: '#/components/schemas/Data'
additionalProperties: false
requestBodies:
Component:
content:
application/json:
schema:
$ref: '#/components/schemas/Component'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Component'
application/xml:
schema:
$ref: '#/components/schemas/Component'
text/xml:
schema:
$ref: '#/components/schemas/Component'
Item:
content:
application/json:
schema:
$ref: '#/components/schemas/Item'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Item'
application/xml:
schema:
$ref: '#/components/schemas/Item'
text/xml:
schema:
$ref: '#/components/schemas/Item'
description: Model instance data
securitySchemes:
accessTokenHeader:
type: apiKey
in: header
name: Authorization
accessTokenQuery:
type: apiKey
in: query
name: access_token