{"openapi":"3.1.0","info":{"title":"Fatture in Cloud (BYOK) API","version":"0.1.0","description":"Fatture in Cloud (BYOK) lets an AI assistant read your own Fatture in Cloud data through the Fatture in Cloud API with a key you supply (manual access token (read scopes)). Read-only: 12 tools (get_user_info, get_company_info, list_issued_documents, get_issued_document, list_received_documents, list_clients, list_suppliers, list_products, list_payment_accounts, list_vat_types,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-fattureincloud.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-fattureincloud/docs"},"termsOfService":"https://connectorbay.com/byok-fattureincloud/terms"},"servers":[{"url":"https://byok-fattureincloud.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-fattureincloud/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_user_info":{"post":{"operationId":"get_user_info","summary":"Show the Fatture in Cloud user the token belongs to: id and name. Use for \"Which Fatture in Cloud user is my token for\".","description":"Show the Fatture in Cloud user the token belongs to: id and name. Use for \"Which Fatture in Cloud user is my token for\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_user_infoArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_company_info":{"post":{"operationId":"get_company_info","summary":"Show the company behind the token: name, type, plan name and licence expiry for the invoicing product. Use for \"What pla","description":"Show the company behind the token: name, type, plan name and licence expiry for the invoicing product. Use for \"What plan is my Fatture in Cloud company on and when does it expire\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"}},"required":["company_id"],"title":"get_company_infoArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_issued_documents":{"post":{"operationId":"list_issued_documents","summary":"List documents your company issued (invoices, quotes, proforma, credit notes, receipts, orders) of one type, with totals","description":"List documents your company issued (invoices, quotes, proforma, credit notes, receipts, orders) of one type, with totals and customer name. Pages of up to 100 rows. Use for \"List my latest issued invoices with totals\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"},"type":{"description":"Document type to list.","enum":["invoice","quote","proforma","receipt","delivery_note","credit_note","order","work_report","supplier_order","self_own_invoice","self_supplier_invoice"],"title":"Type","type":"string"},"sort":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated field names to sort by; prefix a field with a minus for descending, for example '-date'.","title":"Sort"},"q":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Optional filter expression in the provider's own query syntax (see its filtering guide); leave empty for no filter.","title":"Q"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Rows per page (1 to 100, default 5 on the provider side, 50 here).","title":"Per Page"}},"required":["company_id","type"],"title":"list_issued_documentsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_issued_document":{"post":{"operationId":"get_issued_document","summary":"Get one issued document by id with number, date, customer, net, VAT and gross amounts. Use for \"Show the details of issu","description":"Get one issued document by id with number, date, customer, net, VAT and gross amounts. Use for \"Show the details of issued document 12345\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"},"document_id":{"description":"Numeric id of the issued document, from list_issued_documents.","minimum":1,"title":"Document Id","type":"integer"}},"required":["company_id","document_id"],"title":"get_issued_documentArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_received_documents":{"post":{"operationId":"list_received_documents","summary":"List documents your company received (expenses, supplier credit notes, self-invoices) of one type, with supplier and amo","description":"List documents your company received (expenses, supplier credit notes, self-invoices) of one type, with supplier and amounts. Use for \"What expenses did I record this year\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"},"type":{"description":"Received document type.","enum":["expense","passive_credit_note","passive_delivery_note","self_invoice"],"title":"Type","type":"string"},"sort":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated field names to sort by; prefix a field with a minus for descending, for example '-date'.","title":"Sort"},"q":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Optional filter expression in the provider's own query syntax (see its filtering guide); leave empty for no filter.","title":"Q"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Rows per page (1 to 100, default 5 on the provider side, 50 here).","title":"Per Page"}},"required":["company_id","type"],"title":"list_received_documentsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_clients":{"post":{"operationId":"list_clients","summary":"List customers in the registry with name, type, VAT number, city and country (contact and bank details are not returned)","description":"List customers in the registry with name, type, VAT number, city and country (contact and bank details are not returned). Use for \"Which clients do I have in Fatture in Cloud\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"},"sort":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated field names to sort by; prefix a field with a minus for descending, for example '-date'.","title":"Sort"},"q":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Optional filter expression in the provider's own query syntax (see its filtering guide); leave empty for no filter.","title":"Q"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Rows per page (1 to 100, default 5 on the provider side, 50 here).","title":"Per Page"}},"required":["company_id"],"title":"list_clientsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_suppliers":{"post":{"operationId":"list_suppliers","summary":"List suppliers in the registry with name, type, VAT number, city and country (contact details are not returned). Use for","description":"List suppliers in the registry with name, type, VAT number, city and country (contact details are not returned). Use for \"Which suppliers are registered in my company\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"},"sort":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated field names to sort by; prefix a field with a minus for descending, for example '-date'.","title":"Sort"},"q":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Optional filter expression in the provider's own query syntax (see its filtering guide); leave empty for no filter.","title":"Q"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Rows per page (1 to 100, default 5 on the provider side, 50 here).","title":"Per Page"}},"required":["company_id"],"title":"list_suppliersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_products":{"post":{"operationId":"list_products","summary":"List the product and service catalogue with code, net and gross price, category and stock flag. Use for \"What products a","description":"List the product and service catalogue with code, net and gross price, category and stock flag. Use for \"What products and prices are in my catalogue\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"},"sort":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated field names to sort by; prefix a field with a minus for descending, for example '-date'.","title":"Sort"},"q":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Optional filter expression in the provider's own query syntax (see its filtering guide); leave empty for no filter.","title":"Q"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Rows per page (1 to 100, default 5 on the provider side, 50 here).","title":"Per Page"}},"required":["company_id"],"title":"list_productsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_payment_accounts":{"post":{"operationId":"list_payment_accounts","summary":"List the payment accounts (bank, cash, card) defined for the company. IBAN is not returned. Use for \"Which payment accou","description":"List the payment accounts (bank, cash, card) defined for the company. IBAN is not returned. Use for \"Which payment accounts does my company have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"}},"required":["company_id"],"title":"list_payment_accountsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_vat_types":{"post":{"operationId":"list_vat_types","summary":"List the VAT rates and exemptions available to the company with their percentage value. Use for \"Which VAT types can I u","description":"List the VAT rates and exemptions available to the company with their percentage value. Use for \"Which VAT types can I use on invoices\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"}},"required":["company_id"],"title":"list_vat_typesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_cashbook_entries":{"post":{"operationId":"list_cashbook_entries","summary":"List cashbook movements (money in or out linked to documents) between two dates. Use for \"Show my cashbook movements for","description":"List cashbook movements (money in or out linked to documents) between two dates. Use for \"Show my cashbook movements for January 2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"},"date_from":{"description":"Start date, YYYY-MM-DD.","maxLength":200,"title":"Date From","type":"string"},"date_to":{"description":"End date, YYYY-MM-DD.","maxLength":200,"title":"Date To","type":"string"},"type":{"anyOf":[{"enum":["all","in","out"],"type":"string"},{"type":"null"}],"default":"all","description":"Direction: all, in or out.","title":"Type"},"payment_account_id":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only movements of this payment account id.","title":"Payment Account Id"}},"required":["company_id","date_from","date_to"],"title":"list_cashbook_entriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_receipts_monthly_totals":{"post":{"operationId":"get_receipts_monthly_totals","summary":"Get net, gross and count of receipts for each month of a year (twelve rows, January first). Use for \"How much did I take","description":"Get net, gross and count of receipts for each month of a year (twelve rows, January first). Use for \"How much did I take in sales receipts each month of 2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"company_id":{"description":"Numeric Fatture in Cloud company id of the company the token covers.","minimum":1,"title":"Company Id","type":"integer"},"type":{"description":"Receipt kind.","enum":["sales_receipt","till_receipt"],"title":"Type","type":"string"},"year":{"description":"Calendar year, for example 2026.","maximum":2100,"minimum":2000,"title":"Year","type":"integer"}},"required":["company_id","type","year"],"title":"get_receipts_monthly_totalsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}