Space Invoices · Schema
InvoiceWithRelations
(tsType: InvoiceWithRelations, schemaOptions: { includeRelations: true })
FintechSoftware-as-a-ServiceInvoicingCompliancePlatform
Properties
| Name | Type | Description |
|---|---|---|
| createdAt | string | |
| updatedAt | string | |
| custom | object | Custom field for free input data |
| l10n | object | Object for storing localized values of strings |
| _isDeleted | boolean | |
| deletedAt | string | |
| number | string | |
| date | string | |
| reference | string | Reference for payment identification |
| total | number | |
| totalConverted | number | |
| totalDiscount | number | |
| totalWithTax | number | |
| totalWithTaxConverted | number | |
| decimalPlaces | number | |
| note | string | |
| taxClause | string | Document tax clause used to replace [tax clause] smart code when visualising document. Automatically populated on document save/update if not provided. |
| omitTaxes | boolean | If taxes should be omited when issuing document. Automatically populated on document if set using omit_tax_ default. |
| footer | string | |
| signature | string | |
| type | string | |
| sentSnailMail | boolean | |
| currencyId | string | Document 3 letter currency id based on ISO 4217 standard. |
| _documentTaxes | array | |
| _documentReverseTaxes | array | |
| hasUnit | boolean | Indicates if document has any items with unit specified. Used for display. |
| uniqueId | string | Optional user defined random unique value for each unique document used to prevent saving same document twice in case of connection drop. If a match happens the system returns the found document inste |
| equalization | number | Cent equalization amount |
| issuedAt | string | Date document was issued, can be different than createdAt if created as draft |
| dateYear | number | |
| shareableId | string | |
| _documentIssuer | object | |
| _documentClient | object | |
| _documentItems | array | |
| incoming | boolean | |
| id | string | |
| draft | boolean | |
| dateService | string | |
| dateServiceTo | string | |
| dateDue | string | |
| canceled | boolean | |
| totalPaid | number | |
| totalDue | number | |
| paidInFull | boolean | |
| chargesDisabled | boolean | Indicates if payment processing via Pay now button is disabled for this document |
| stripeConnectPaymentIntent | object | |
| organizationId | string | |
| accountId | string | |
| clientId | string | |
| _fatturaPa | object | |
| organization | object | |
| account | object | |
| client | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/spaceinvoices-com/json-schema/spaceinvoices-com-invoice-with-relations-schema.json",
"title": "InvoiceWithRelations",
"description": "(tsType: InvoiceWithRelations, schemaOptions: { includeRelations: true })",
"x-generated": "2026-11-25",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/spaceinvoices-com-openapi.json#/components/schemas/InvoiceWithRelations",
"type": "object",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"custom": {
"type": "object",
"description": "Custom field for free input data"
},
"l10n": {
"type": "object",
"description": "Object for storing localized values of strings"
},
"_isDeleted": {
"type": "boolean"
},
"deletedAt": {
"type": "string",
"format": "date-time"
},
"number": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"reference": {
"type": "string",
"description": "Reference for payment identification"
},
"total": {
"type": "number"
},
"totalConverted": {
"type": "number"
},
"totalDiscount": {
"type": "number"
},
"totalWithTax": {
"type": "number"
},
"totalWithTaxConverted": {
"type": "number"
},
"decimalPlaces": {
"type": "number",
"minimum": 0,
"maximum": 9
},
"note": {
"type": "string"
},
"taxClause": {
"type": "string",
"description": "Document tax clause used to replace [tax clause] smart code when visualising document. Automatically populated on document save/update if not provided."
},
"omitTaxes": {
"type": "boolean",
"description": "If taxes should be omited when issuing document. Automatically populated on document if set using omit_tax_ default."
},
"footer": {
"type": "string"
},
"signature": {
"type": "string"
},
"type": {
"type": "string"
},
"sentSnailMail": {
"type": "boolean"
},
"currencyId": {
"type": "string",
"description": "Document 3 letter currency id based on ISO 4217 standard."
},
"_documentTaxes": {
"type": "array",
"items": {
"$ref": "#/$defs/DocumentTax"
}
},
"_documentReverseTaxes": {
"type": "array",
"items": {
"$ref": "#/$defs/DocumentTax"
}
},
"hasUnit": {
"type": "boolean",
"description": "Indicates if document has any items with unit specified. Used for display."
},
"uniqueId": {
"type": "string",
"description": "Optional user defined random unique value for each unique document used to prevent saving same document twice in case of connection drop. If a match happens the system returns the found document instead of a new one."
},
"equalization": {
"type": "number",
"description": "Cent equalization amount"
},
"issuedAt": {
"type": "string",
"format": "date-time",
"description": "Date document was issued, can be different than createdAt if created as draft"
},
"dateYear": {
"type": "number"
},
"shareableId": {
"type": "string"
},
"_documentIssuer": {
"type": "object"
},
"_documentClient": {
"type": "object"
},
"_documentItems": {
"type": "array",
"items": {
"$ref": "#/$defs/DocumentItem"
}
},
"incoming": {
"type": "boolean"
},
"id": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"dateService": {
"type": "string",
"format": "date-time"
},
"dateServiceTo": {
"type": "string",
"format": "date-time"
},
"dateDue": {
"type": "string",
"format": "date-time"
},
"canceled": {
"type": "boolean"
},
"totalPaid": {
"type": "number"
},
"totalDue": {
"type": "number"
},
"paidInFull": {
"type": "boolean"
},
"chargesDisabled": {
"type": "boolean",
"description": "Indicates if payment processing via Pay now button is disabled for this document"
},
"stripeConnectPaymentIntent": {
"type": "object"
},
"organizationId": {
"type": "string"
},
"accountId": {
"type": "string"
},
"clientId": {
"type": "string"
},
"_fatturaPa": {
"type": "object"
},
"organization": {
"$ref": "#/$defs/OrganizationWithRelations"
},
"account": {
"$ref": "#/$defs/AccountWithRelations"
},
"client": {
"$ref": "#/$defs/ClientWithRelations"
}
},
"required": [
"date",
"total",
"totalWithTax",
"currencyId",
"hasUnit",
"dateYear",
"_documentIssuer",
"_documentClient",
"_documentItems"
],
"additionalProperties": false,
"x-typescript-type": "InvoiceWithRelations",
"$defs": {
"AccessTokenWithRelations": {
"title": "AccessTokenWithRelations",
"type": "object",
"description": "(tsType: AccessTokenWithRelations, schemaOptions: { includeRelations: true })",
"properties": {
"id": {
"type": "string"
},
"ttl": {
"type": "number"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"created": {
"type": "string",
"format": "date-time"
},
"userId": {
"type": "string"
},
"user": {
"$ref": "#/$defs/AccountWithRelations"
}
},
"required": [
"userId"
],
"additionalProperties": false,
"x-typescript-type": "AccessTokenWithRelations"
},
"AccountWithRelations": {
"title": "AccountWithRelations",
"type": "object",
"description": "(tsType: AccountWithRelations, schemaOptions: { includeRelations: true })",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"custom": {
"type": "object",
"description": "Custom field for free input data"
},
"id": {
"type": "string"
},
"password": {
"type": "string"
},
"email": {
"type": "string"
},
"emailVerified": {
"type": "boolean"
},
"verificationToken": {
"type": "string"
},
"locale": {
"type": "string"
},
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"taxNumber": {
"type": "string",
"description": "Personal tax number, required for fiscalization."
},
"label": {
"type": "string",
"description": "Label of person issuing invoices. Required for fiscalization. Should be unique per organization but we can't validate this. But can be checked based on accountId saved to _furs object."
},
"parentId": {
"type": "string"
},
"masterId": {
"type": "string"
},
"billingOrganizationId": {
"type": "string"
},
"role": {
"type": "string",
"description": "Role within organization."
},
"softwareSupplierTaxNumber": {
"type": "string",
"description": "For tax number of primary account providing fiscal verification to their end customers."
},
"activateRedirect": {
"type": "string",
"description": "Custom activation redirect URL for sub-accounts."
},
"invitationLink": {
"type": "string",
"description": "Custom link where invited user can review invitations."
},
"invitationNewLink": {
"type": "string",
"description": "Custom link to view invitation for non existing user."
},
"documentShareableLink": {
"type": "string",
"description": "Custom link for shareable document view."
},
"disableCreatingChildOrganizations": {
"type": "boolean",
"description": "Disable child accounts creating organizations"
},
"resetRedirect": {
"type": "string",
"description": "Custom password reset redirect URL for sub accounts of this account."
},
"skipChildAccountVerification": {
"type": "boolean"
},
"accessTokens": {
"type": "array",
"items": {
"$ref": "#/$defs/AccessTokenWithRelations"
}
},
"organizations": {
"type": "array",
"items": {
"$ref": "#/$defs/OrganizationWithRelations"
}
},
"stripeConnect": {
"$ref": "#/$defs/StripeConnectWithRelations"
},
"paymentProcessing": {
"$ref": "#/$defs/PaymentProcessingWithRelations"
},
"emailAddress": {
"$ref": "#/$defs/EmailAddressWithRelations"
}
},
"required": [
"password",
"email"
],
"additionalProperties": false,
"x-typescript-type": "AccountWithRelations"
},
"At": {
"properties": {
"hashSource": {
"type": "string"
},
"hash": {
"type": "string"
},
"qrString": {
"type": "string"
},
"qrCode": {
"type": "string"
},
"certificateVersion": {
"type": "string"
},
"certificateId": {
"type": "string"
},
"hashExtract": {
"type": "string"
},
"printCount": {
"default": 0,
"description": "Number of prints of document. If > 1 should print 'copy n' on it.",
"type": "number",
"format": "double"
},
"cancellationReason": {
"type": "string"
},
"canceledByAccountId": {
"type": "string"
},
"hasOriginalDocument": {
"type": "boolean"
},
"isManual": {
"default": false,
"type": "boolean"
},
"manualNumber": {
"type": "string"
},
"manualNumberSeries": {
"type": "string"
},
"manualNumberSequentialNumber": {
"type": "string"
},
"id": {
"type": "string"
},
"accountId": {
"$ref": "#/$defs/ObjectID"
},
"previousDocumentId": {
"$ref": "#/$defs/ObjectID"
},
"atcudSeriesId": {
"$ref": "#/$defs/ObjectID"
}
},
"additionalProperties": false
},
"ClientWithRelations": {
"title": "ClientWithRelations",
"type": "object",
"description": "(tsType: ClientWithRelations, schemaOptions: { includeRelations: true })",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"custom": {
"type": "object",
"description": "Custom field for free input data"
},
"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",
"description": "Type of business entity."
},
"startingCapital": {
"type": "number"
},
"_isDeleted": {
"type": "boolean"
},
"deletedAt": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "string"
},
"contact": {
"type": "string"
},
"note": {
"type": "string"
},
"isEndCustomer": {
"type": "boolean"
},
"type": {
"type": "string",
"description": "Type of client, customer, supplier or both."
},
"companyId": {
"type": "string",
"description": "Reference to companies model for internal analysis."
},
"organizationId": {
"type": "string"
},
"organization": {
"$ref": "#/$defs/OrganizationWithRelations"
}
},
"required": [
"name"
],
"additionalProperties": false,
"x-typescript-type": "ClientWithRelations"
},
"Component": {
"properties": {
"id": {
"type": "string"
},
"amount": {
"description": "How many of this component go into one parent composed item.",
"type": "number",
"format": "double"
},
"itemId": {
"$ref": "#/$defs/ObjectID"
},
"custom": {
"default": {},
"description": "Custom field for freeform data input",
"type": "object"
}
},
"required": [
"id",
"amount"
],
"additionalProperties": false
},
"Data": {
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "Name identifier of data",
"type": "string"
},
"value": {
"$ref": "#/$defs/x-any"
},
"options": {
"description": "Different data options.\nIe. should the value be persistem to the document `onPDF: boolean`.\nThis includes displaying on PDF.\nNote that only two values will be displayed per PDF on Client.\nAdd Document data to export using `export: boolean`",
"type": "object"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"DefaultWithRelations": {
"title": "DefaultWithRelations",
"type": "object",
"description": "(tsType: DefaultWithRelations, schemaOptions: { includeRelations: true })",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"l10n": {
"type": "object",
"description": "Object for storing localized values of strings"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"value": {},
"description": {
"type": "string"
},
"organizationId": {
"type": "string"
},
"organization": {
"$ref": "#/$defs/OrganizationWithRelations"
}
},
"required": [
"organizationId"
],
"additionalProperties": false,
"x-typescript-type": "DefaultWithRelations"
},
"DocumentConversionRate": {
"properties": {
"id": {
"type": "string"
},
"dualCurrency": {
"description": "Is conversion meant for dual currency display.\ni.e. for Croatian organizations from 5.9.2022 to 1.1.2023\nShows conversion only for total and not taxes",
"type": "boolean"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"rate": {
"type": "number",
"format": "double"
},
"date": {
"type": "string",
"format": "date-time"
},
"source": {
"type": "string"
}
},
"required": [
"id",
"from",
"to",
"rate",
"date",
"source"
],
"additionalProperties": false
},
"DocumentItem": {
"properties": {
"id": {
"type": "string"
},
"discount": {
"type": "number",
"format": "double"
},
"discountIsAmount": {
"default": false,
"type": "boolean"
},
"quantity": {
"type": "number",
"format": "double"
},
"total": {
"type": "number",
"format": "double"
},
"totalWithTax": {
"type": "number",
"format": "double"
},
"totalTax": {
"type": "number",
"format": "double"
},
"totalDiscount": {
"type": "number",
"format": "double"
},
"isSeparator": {
"default": false,
"type": "boolean"
},
"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"
},
"itemId": {
"$ref": "#/$defs/ObjectID"
},
"_taxExemption": {
"$ref": "#/$defs/TaxExemption"
},
"custom": {
"default": {},
"description": "Custom field for freeform data input",
"type": "object"
},
"l10n": {
"description": "Object for storing localized values of strings",
"type": "object"
},
"_documentItemTaxes": {
"type": "array",
"items": {
"$ref": "#/$defs/DocumentItemTax"
}
},
"_components": {
"type": "array",
"items": {
"$ref": "#/$defs/Component"
}
},
"_data": {
"type": "array",
"items": {
"$ref": "#/$defs/Data"
}
}
},
"required": [
"id"
],
"additionalProperties": false
},
"DocumentItemTax": {
"properties": {
"id": {
"type": "string"
},
"rate": {
"type": "number",
"format": "double"
},
"reverseCharged": {
"default": false,
"type": "boolean"
},
"name": {
"type": "string"
},
"abbreviation": {
"type": "string"
},
"recoverable": {
"default": true,
"type": "boolean"
},
"compound": {
"default": false,
"type": "boolean"
},
"taxNumber": {
"description": "Tax number associated with this tax.",
"type": "string"
},
"taxExemptionReason": {
"description": "Tax number associated with this tax.",
"type": "string"
},
"taxExemptionCode": {
"description": "Tax exemption code associated with this tax.",
"type": "string"
},
"taxId": {
"$ref": "#/$defs/ObjectID"
}
},
"required": [
"id",
"rate",
"reverseCharged",
"recoverable",
"compound"
],
"additionalProperties": false
},
"DocumentTax": {
"title": "DocumentTax",
"type": "object",
"properties": {
"taxId": {
"type": "string"
},
"tax": {
"type": "number"
},
"base": {
"type": "number"
},
"baseConverted": {
"type": "number"
},
"abbreviation": {
"type": "string"
},
"totalTax": {
"type": "number"
},
"totalTaxConverted": {
"type": "number"
}
},
"required": [
"tax",
"base",
"totalTax",
"totalTaxConverted"
],
"additionalProperties": false
},
"DocumentWithRelations": {
"title": "DocumentWithRelations",
"type": "object",
"description": "(tsType: DocumentWithRelations, schemaOptions: { includeRelations: true })",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"custom": {
"type": "object",
"description": "Custom field for free input data"
},
"l10n": {
"type": "object",
"description": "Object for storing localized values of strings"
},
"_isDeleted": {
"type": "boolean"
},
"deletedAt": {
"type": "string",
"format": "date-time"
},
"number": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"date": {
"type": "string",
"format": "date-time"
},
"dateService": {
"type": "string",
"format": "date-time"
},
"dateServiceTo": {
"type": "string",
"format": "date-time"
},
"dateDue": {
"type": "string",
"format": "date-time"
},
"dateValidTill": {
"type": "string",
"format": "date-time"
},
"datePaid": {
"type": "string",
"format": "date-time"
},
"dateReceived": {
"type": "string",
"format": "date-time",
"description": "Date document was received, used for incoming documents."
},
"reference": {
"type": "string",
"description": "Reference for payment identification"
},
"total": {
"type": "number"
},
"totalConverted": {
"type": "number"
},
"totalDiscount": {
"type": "number"
},
"totalWithTax": {
"type": "number"
},
"totalWithTaxConverted": {
"type": "number"
},
"decimalPlaces": {
"type": "number"
},
"note": {
"type": "string"
},
"taxClause": {
"type": "string",
"description": "Document tax clause used to replace [tax clause] smart code when visualising document. Automatically populated on document save/update if not provided."
},
"omitTaxes": {
"type": "boolean",
"description": "If taxes should be omited when issuing document. Automatically populated on document if set using omit_tax_ default."
},
"keepPricesAsGross": {
"type": "boolean",
"description": "Forces not removing tax from gross price when using omitTaxes"
},
"footer": {
"type": "string"
},
"signature": {
"type": "string"
},
"type": {
"type": "string"
},
"displayName": {
"type": "string",
"description": "Customize the dispay name of a document type"
},
"canceled": {
"type": "boolean"
},
"sentSnailMail": {
"type": "boolean"
},
"totalPaid": {
"type": "number"
},
"totalDue": {
"type": "number"
},
"paidInFull": {
"type": "boolean"
},
"currencyId": {
"type": "string",
"description": "Because currency is not an actual lb model it can't be used as relation. Since this value matches isoName of currency there is never a need to expand the relational data. It can still be loaded separately by id from Currency model if needed."
},
"_documentTaxes": {
"type": "array",
"items": {
"$ref": "#/$defs/DocumentTax"
}
},
"_documentReverseTaxes": {
"type": "array",
"items": {
"type": "object",
"description": "Array of unique taxes on document. Used for display."
}
},
"hasUnit": {
"type": "boolean",
"description": "Indicates if document has any items with unit specified. Used for display."
},
"validateEslog": {
"type": "boolean",
"description": "Indicates if document should be validated based on eslog format."
},
"isValidEslog": {
"type": "boolean",
"description": "Property indicating that a document is in valid eslog format"
},
"uniqueId": {
"type": "string",
"description": "Optional user defined random unique value for each unique document used to prevent saving same document twice in case of connection drop. If a match happens the system returns the found document instead of a new one."
},
"customTotals": {
"type": "boolean",
"description": "If true document tax and amount totals won't be calculated, provided values will be used instead"
},
"incoming": {
"type": "boolean",
"description": "Indicates document is incoming ie. expense if invoices etc."
},
"numberInternal": {
"type": "string",
"description": "Internal tracking number"
},
"equalization": {
"type": "number",
"description": "Cent equalization amount"
},
"sandbox": {
"type": "boolean"
},
"issuedAt": {
"type": "string",
"format": "date-time",
"description": "Date document was issued, can be different than createdAt if created as draft"
},
"shareableId": {
"type": "string"
},
"chargesDisabled": {
"type": "boolean",
"description": "Indicates if payment processing via Pay now button is disabled for this document"
},
"stripeConnectPaymentIntent": {
"type": "object"
},
"_documentIssuer": {
"type": "object"
},
"_documentClient": {
"type": "object"
},
"_documentItems": {
"type": "array",
"items": {
"$ref": "#/$defs/DocumentItem"
}
},
"_fatturaPa": {
"type": "object"
},
"id": {
"type": "string"
},
"unitId": {
"type": "string"
},
"documentIds": {
"type": "array",
"items": {
"type": "string"
}
},
"organizationId": {
"type": "string"
},
"accountId": {
"type": "string"
},
"clientId": {
"type": "string"
},
"_at": {
"$ref": "#/$defs/At"
},
"_documentConversionRate": {
"$ref": "#/$defs/DocumentConversionRate"
},
"referencedDocuments": {
"type": "array",
"items": {
"$ref": "#/$defs/DocumentWithRelations"
}
},
"payments": {
"type": "array",
"items": {
"$ref": "#/$defs/PaymentWithRelations"
}
},
"organization": {
"$ref": "#/$defs/OrganizationWithRelations"
},
"account": {
"$ref": "#/$defs/AccountWithRelations"
},
"paymentIntents": {
"type": "array",
"items": {
"$ref": "#/$defs/PaymentIntentWithRelations"
}
},
"client": {
"$ref": "#/$defs/ClientWithRelations"
}
},
"required": [
"type",
"canceled",
"currencyId",
"organizationId",
"accountId"
],
"additionalProperties": false,
"x-typescript-type": "DocumentWithRelations"
},
"EmailAddressWithRelations": {
"title": "EmailAddressWithRelations",
"type": "object",
"description": "(tsType: EmailAddressWithRelations, schemaOptions: { includeRelations: true })",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "string"
},
"email": {
"type": "string"
},
"emailVerificationStatus": {
"type": "string",
"enum": [
"Pending",
"Success",
"Failed",
"TemporaryFailure",
"NotStarted"
]
},
"domainVerificationStatus": {
"type": "string",
"enum": [
"Pending",
"Success",
"Failed",
"TemporaryFailure",
"NotStarted"
]
},
"tokens": {
"type": "array",
"items": {
"type": "string"
}
},
"accountId": {
"type": "string"
},
"organizationId": {
"type": "string"
},
"account": {
"$ref": "#/$defs/AccountWithRelations"
},
"organization": {
"$ref": "#/$defs/OrganizationWithRelations"
}
},
"required": [
"email",
"tokens"
],
"additionalProperties": false,
"oneOf": [
{
"required": [
"accountId"
]
},
{
"required": [
"organizationId"
]
}
],
"x-typescript-type": "EmailAddressWithRelations"
},
"InvoiceWithRelations": {
"title": "InvoiceWithRelations",
"type": "object",
"description": "(tsType: InvoiceWithRelations, schemaOptions: { includeRelations: true })",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"custom": {
"type": "object",
"description": "Custom field for free input data"
},
"l10n": {
"type": "object",
"description": "Object for storing localized values of strings"
},
"_isDeleted": {
"type": "boolean"
},
"deletedAt": {
"type": "string",
"format": "date-time"
},
"number": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"reference": {
"type": "string",
"descr
# --- truncated at 32 KB (56 KB total) ---
# Full source: https://artifacts.apis.io/spaceinvoices-com/json-schema/spaceinvoices-com-invoice-with-relations-schema.json
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/spaceinvoices-com-invoice-with-relations"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.