Space Invoices Unit API
The Unit API from Space Invoices — 7 operation(s) for unit.
The Unit API from Space Invoices — 7 operation(s) for unit.
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-unit-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 Unit API
version: 2.0.0
description: ''
contact:
name: Space Invoices Inc
servers:
- url: https://api.spaceinvoices.com
security:
- accessTokenHeader: []
accessTokenQuery: []
tags:
- name: Unit
paths:
/v1/Units/{id}:
delete:
tags:
- Unit
summary: Delete a model instance by {{id}} from the data source
operationId: Unit.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
patch:
tags:
- Unit
summary: Patch attributes for a model instance and persist it into the data source
operationId: Unit.prototype.patchAttributes
parameters:
- name: id
in: path
description: Unit id
required: true
schema:
type: string
format: JSON
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Unit'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Unit'
application/xml:
schema:
$ref: '#/components/schemas/Unit'
text/xml:
schema:
$ref: '#/components/schemas/Unit'
description: An object of model property name/value pairs
responses:
'200':
description: Request was successful
content:
application/json:
schema:
$ref: '#/components/schemas/Unit'
application/xml:
schema:
$ref: '#/components/schemas/Unit'
text/xml:
schema:
$ref: '#/components/schemas/Unit'
application/javascript:
schema:
$ref: '#/components/schemas/Unit'
text/javascript:
schema:
$ref: '#/components/schemas/Unit'
deprecated: false
/v1/Units/{id}/last-doc-number:
get:
tags:
- Unit
summary: Unit prototype last doc number
operationId: Unit.prototype.lastDocNumber
parameters:
- name: id
in: path
description: Unit id
required: true
schema:
type: string
format: JSON
- name: type
in: query
description: The type of document
required: true
schema:
type: string
- name: incoming
in: query
description: Incoming document
required: false
schema:
type: boolean
- name: date
in: query
description: Date if not in current year
required: false
schema:
type: string
format: date-time
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: object
properties:
number:
type: string
application/xml:
schema:
type: object
properties:
number:
type: string
text/xml:
schema:
type: object
properties:
number:
type: string
application/javascript:
schema:
type: object
properties:
number:
type: string
text/javascript:
schema:
type: object
properties:
number:
type: string
deprecated: false
x-summary-source: derived
/v1/Units/{id}/next-doc-number:
get:
tags:
- Unit
summary: Unit prototype next doc number
operationId: Unit.prototype.nextDocNumber
parameters:
- name: id
in: path
description: Unit id
required: true
schema:
type: string
format: JSON
- name: type
in: query
description: The type of document
required: true
schema:
type: string
- name: incoming
in: query
description: Incoming document
required: false
schema:
type: boolean
- name: date
in: query
description: Date if not in current year
required: false
schema:
type: string
format: date-time
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: object
properties:
number:
type: string
application/xml:
schema:
type: object
properties:
number:
type: string
text/xml:
schema:
type: object
properties:
number:
type: string
application/javascript:
schema:
type: object
properties:
number:
type: string
text/javascript:
schema:
type: object
properties:
number:
type: string
deprecated: false
x-summary-source: derived
/v1/Units/{id}/upload-image:
post:
tags:
- Unit
summary: Unit prototype upload image post units {id} upload image
operationId: Unit.prototype.uploadImage__post_Units_{id}_upload-image
parameters:
- name: id
in: path
description: Unit id
required: true
schema:
type: string
format: JSON
requestBody:
$ref: '#/components/requestBodies/Organization.prototype.uploadImage__post_Organizations__id__upload-image'
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: boolean
application/xml:
schema:
type: boolean
text/xml:
schema:
type: boolean
application/javascript:
schema:
type: boolean
text/javascript:
schema:
type: boolean
deprecated: false
x-summary-source: derived
/v1/Units/{id}/images:
post:
tags:
- Unit
summary: Unit prototype upload image post units {id} images
operationId: Unit.prototype.uploadImage__post_Units_{id}_images
parameters:
- name: id
in: path
description: Unit id
required: true
schema:
type: string
format: JSON
requestBody:
$ref: '#/components/requestBodies/Organization.prototype.uploadImage__post_Organizations__id__upload-image'
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: boolean
application/xml:
schema:
type: boolean
text/xml:
schema:
type: boolean
application/javascript:
schema:
type: boolean
text/javascript:
schema:
type: boolean
deprecated: false
x-summary-source: derived
delete:
tags:
- Unit
summary: Unit prototype delete image delete units {id} images
operationId: Unit.prototype.deleteImage__delete_Units_{id}_images
parameters:
- name: id
in: path
description: Unit id
required: true
schema:
type: string
format: JSON
- name: type
in: query
description: Type of image to delete
required: true
schema:
type: string
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: boolean
application/xml:
schema:
type: boolean
text/xml:
schema:
type: boolean
application/javascript:
schema:
type: boolean
text/javascript:
schema:
type: boolean
deprecated: false
x-summary-source: derived
get:
tags:
- Unit
summary: Unit prototype download image get units {id} images
operationId: Unit.prototype.downloadImage__get_Units_{id}_images
parameters:
- name: id
in: path
description: Unit id
required: true
schema:
type: string
format: JSON
- name: type
in: query
description: ''
required: true
schema:
type: string
- name: size
in: query
description: Return a cached resized copy instead of the original (thumb)
required: false
schema:
type: string
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: string
format: byte
application/xml:
schema:
type: string
format: byte
text/xml:
schema:
type: string
format: byte
application/javascript:
schema:
type: string
format: byte
text/javascript:
schema:
type: string
format: byte
deprecated: false
x-summary-source: derived
/v1/Units/{id}/delete-image:
delete:
tags:
- Unit
summary: Unit prototype delete image delete units {id} delete image
operationId: Unit.prototype.deleteImage__delete_Units_{id}_delete-image
parameters:
- name: id
in: path
description: Unit id
required: true
schema:
type: string
format: JSON
- name: type
in: query
description: Type of image to delete
required: true
schema:
type: string
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: boolean
application/xml:
schema:
type: boolean
text/xml:
schema:
type: boolean
application/javascript:
schema:
type: boolean
text/javascript:
schema:
type: boolean
deprecated: false
x-summary-source: derived
/v1/Units/{id}/download-image:
get:
tags:
- Unit
summary: Unit prototype download image get units {id} download image
operationId: Unit.prototype.downloadImage__get_Units_{id}_download-image
parameters:
- name: id
in: path
description: Unit id
required: true
schema:
type: string
format: JSON
- name: type
in: query
description: ''
required: true
schema:
type: string
- name: size
in: query
description: Return a cached resized copy instead of the original (thumb)
required: false
schema:
type: string
responses:
'200':
description: Request was successful
content:
application/json:
schema:
type: string
format: byte
application/xml:
schema:
type: string
format: byte
text/xml:
schema:
type: string
format: byte
application/javascript:
schema:
type: string
format: byte
text/javascript:
schema:
type: string
format: byte
deprecated: false
x-summary-source: derived
components:
schemas:
x-any:
properties: {}
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
Unit:
properties:
name:
type: string
address:
type: string
address2:
type: string
city:
type: string
zip:
type: string
state:
type: string
country:
type: string
countryAlpha2Code:
type: string
taxNumber:
type: string
taxSubject:
type: boolean
companyNumber:
type: string
IBAN:
type: string
bank:
type: string
SWIFT:
type: string
website:
type: string
email:
type: string
phone:
type: string
businessType:
type: string
fiscalRegionCode:
type: string
startingCapital:
type: number
format: double
id:
$ref: '#/components/schemas/ObjectID'
organizationId:
$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
deletedAt:
type: string
format: date-time
_isDeleted:
default: false
type: boolean
deletedId:
type: string
_data:
type: array
items:
$ref: '#/components/schemas/Data'
required:
- name
additionalProperties: false
requestBodies:
Organization.prototype.uploadImage__post_Organizations__id__upload-image:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
type:
type: string
required:
- type
required: true
securitySchemes:
accessTokenHeader:
type: apiKey
in: header
name: Authorization
accessTokenQuery:
type: apiKey
in: query
name: access_token