{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-push-attachment-v1-dto-schema.json", "title": "PushAttachmentV1Dto", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/fis-attachment-api-openapi.yml#/components/schemas/PushAttachmentV1Dto", "type": "object", "properties": { "connection": { "$ref": "#/$defs/PushAttachmentConnection" }, "file": { "type": "string", "format": "binary" }, "data": { "$ref": "#/$defs/PushAttachmentV1" } }, "required": [ "connection", "file", "data" ], "$defs": { "PushAttachmentConnection": { "type": "object", "properties": { "businessName": { "type": "string" }, "serviceName": { "type": "string", "description": "Name of accounting platform service.", "enum": [ "freshbooks", "quickbooks", "xero", "oracleNetsuite", "sageBusinessCloud", "sageIntacct", "dynamicsBusinessCentral", "zohoBooks" ] } }, "required": [ "businessName", "serviceName" ] }, "PushAttachmentLink": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "bill", "invoice", "customer", "vendor", "deposit", "journalEntry", "billPayment", "invoicePayment", "expense", "inventory", "purchaseOrder", "invoiceCreditNote", "billCreditNote", "bankTransaction", "bankTransfer", "account" ] }, "id": { "type": "string" } }, "required": [ "type", "id" ] }, "PushAttachmentV1": { "type": "object", "properties": { "link": { "$ref": "#/$defs/PushAttachmentLink" } }, "required": [ "link" ] } } }