@nightsquawktech/invoiceninja-mcp-server 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (393) hide show
  1. package/COMMERCIAL.md +35 -0
  2. package/LICENSE +661 -0
  3. package/README.md +128 -0
  4. package/dist/catalog/endpoint-spec.js +36 -0
  5. package/dist/catalog/endpoints/action_invoice.json +41 -0
  6. package/dist/catalog/endpoints/action_payment.json +41 -0
  7. package/dist/catalog/endpoints/action_purchase_order.json +41 -0
  8. package/dist/catalog/endpoints/action_quote.json +41 -0
  9. package/dist/catalog/endpoints/action_recurring_invoice.json +41 -0
  10. package/dist/catalog/endpoints/action_recurring_quote.json +41 -0
  11. package/dist/catalog/endpoints/bulk_bank_integrations.json +26 -0
  12. package/dist/catalog/endpoints/bulk_bank_transaction_rules.json +26 -0
  13. package/dist/catalog/endpoints/bulk_bank_transactions.json +26 -0
  14. package/dist/catalog/endpoints/bulk_clients.json +46 -0
  15. package/dist/catalog/endpoints/bulk_company_gateways.json +27 -0
  16. package/dist/catalog/endpoints/bulk_credits.json +26 -0
  17. package/dist/catalog/endpoints/bulk_designs.json +27 -0
  18. package/dist/catalog/endpoints/bulk_expense_categorys.json +27 -0
  19. package/dist/catalog/endpoints/bulk_expenses.json +27 -0
  20. package/dist/catalog/endpoints/bulk_group_settings.json +26 -0
  21. package/dist/catalog/endpoints/bulk_invoices.json +44 -0
  22. package/dist/catalog/endpoints/bulk_locations.json +40 -0
  23. package/dist/catalog/endpoints/bulk_payment_terms.json +27 -0
  24. package/dist/catalog/endpoints/bulk_payments.json +27 -0
  25. package/dist/catalog/endpoints/bulk_products.json +46 -0
  26. package/dist/catalog/endpoints/bulk_projects.json +27 -0
  27. package/dist/catalog/endpoints/bulk_purchase_orderss.json +26 -0
  28. package/dist/catalog/endpoints/bulk_quotes.json +39 -0
  29. package/dist/catalog/endpoints/bulk_recurring_expenses.json +27 -0
  30. package/dist/catalog/endpoints/bulk_recurring_invoices.json +39 -0
  31. package/dist/catalog/endpoints/bulk_recurring_quotes.json +27 -0
  32. package/dist/catalog/endpoints/bulk_subscriptions.json +27 -0
  33. package/dist/catalog/endpoints/bulk_tags.json +51 -0
  34. package/dist/catalog/endpoints/bulk_task_scheduler_actions.json +27 -0
  35. package/dist/catalog/endpoints/bulk_task_statuss.json +27 -0
  36. package/dist/catalog/endpoints/bulk_tasks.json +27 -0
  37. package/dist/catalog/endpoints/bulk_tax_rates.json +27 -0
  38. package/dist/catalog/endpoints/bulk_tokens.json +27 -0
  39. package/dist/catalog/endpoints/bulk_users.json +27 -0
  40. package/dist/catalog/endpoints/bulk_vendors.json +27 -0
  41. package/dist/catalog/endpoints/bulk_webhooks.json +27 -0
  42. package/dist/catalog/endpoints/client_statement.json +77 -0
  43. package/dist/catalog/endpoints/confirm_apple_purchase.json +23 -0
  44. package/dist/catalog/endpoints/create_task_scheduler.json +81 -0
  45. package/dist/catalog/endpoints/delete_bank_integration.json +32 -0
  46. package/dist/catalog/endpoints/delete_bank_transaction.json +32 -0
  47. package/dist/catalog/endpoints/delete_bank_transaction_rule.json +32 -0
  48. package/dist/catalog/endpoints/delete_client.json +38 -0
  49. package/dist/catalog/endpoints/delete_client_gateway_token.json +32 -0
  50. package/dist/catalog/endpoints/delete_company.json +32 -0
  51. package/dist/catalog/endpoints/delete_company_gateway.json +32 -0
  52. package/dist/catalog/endpoints/delete_credit.json +32 -0
  53. package/dist/catalog/endpoints/delete_design.json +32 -0
  54. package/dist/catalog/endpoints/delete_expense.json +32 -0
  55. package/dist/catalog/endpoints/delete_expense_category.json +24 -0
  56. package/dist/catalog/endpoints/delete_group_setting.json +32 -0
  57. package/dist/catalog/endpoints/delete_invoice.json +32 -0
  58. package/dist/catalog/endpoints/delete_location.json +24 -0
  59. package/dist/catalog/endpoints/delete_payment.json +32 -0
  60. package/dist/catalog/endpoints/delete_payment_term.json +32 -0
  61. package/dist/catalog/endpoints/delete_product.json +32 -0
  62. package/dist/catalog/endpoints/delete_project.json +32 -0
  63. package/dist/catalog/endpoints/delete_purchase_order.json +32 -0
  64. package/dist/catalog/endpoints/delete_quote.json +32 -0
  65. package/dist/catalog/endpoints/delete_recurring_expense.json +32 -0
  66. package/dist/catalog/endpoints/delete_recurring_invoice.json +32 -0
  67. package/dist/catalog/endpoints/delete_recurring_quote.json +32 -0
  68. package/dist/catalog/endpoints/delete_settings_passkey.json +22 -0
  69. package/dist/catalog/endpoints/delete_subscription.json +32 -0
  70. package/dist/catalog/endpoints/delete_tag.json +24 -0
  71. package/dist/catalog/endpoints/delete_task.json +32 -0
  72. package/dist/catalog/endpoints/delete_task_status.json +32 -0
  73. package/dist/catalog/endpoints/delete_tax_rate.json +24 -0
  74. package/dist/catalog/endpoints/delete_token.json +32 -0
  75. package/dist/catalog/endpoints/delete_user.json +40 -0
  76. package/dist/catalog/endpoints/delete_vendor.json +32 -0
  77. package/dist/catalog/endpoints/delete_webhook.json +32 -0
  78. package/dist/catalog/endpoints/destroy_task_scheduler.json +24 -0
  79. package/dist/catalog/endpoints/detach_user.json +32 -0
  80. package/dist/catalog/endpoints/download_credit.json +32 -0
  81. package/dist/catalog/endpoints/download_invoice_by_invitation.json +32 -0
  82. package/dist/catalog/endpoints/download_purchase_order.json +32 -0
  83. package/dist/catalog/endpoints/download_quote.json +32 -0
  84. package/dist/catalog/endpoints/download_recurring_invoice.json +32 -0
  85. package/dist/catalog/endpoints/edit_bank_integration.json +33 -0
  86. package/dist/catalog/endpoints/edit_bank_transaction.json +33 -0
  87. package/dist/catalog/endpoints/edit_bank_transaction_rule.json +33 -0
  88. package/dist/catalog/endpoints/edit_client.json +39 -0
  89. package/dist/catalog/endpoints/edit_client_gateway_token.json +33 -0
  90. package/dist/catalog/endpoints/edit_company.json +33 -0
  91. package/dist/catalog/endpoints/edit_company_gateway.json +33 -0
  92. package/dist/catalog/endpoints/edit_credit.json +33 -0
  93. package/dist/catalog/endpoints/edit_design.json +33 -0
  94. package/dist/catalog/endpoints/edit_expense.json +33 -0
  95. package/dist/catalog/endpoints/edit_expense_category.json +25 -0
  96. package/dist/catalog/endpoints/edit_group_setting.json +33 -0
  97. package/dist/catalog/endpoints/edit_invoice.json +33 -0
  98. package/dist/catalog/endpoints/edit_payment.json +33 -0
  99. package/dist/catalog/endpoints/edit_payment_terms.json +33 -0
  100. package/dist/catalog/endpoints/edit_product.json +33 -0
  101. package/dist/catalog/endpoints/edit_project.json +33 -0
  102. package/dist/catalog/endpoints/edit_purchase_order.json +33 -0
  103. package/dist/catalog/endpoints/edit_quote.json +33 -0
  104. package/dist/catalog/endpoints/edit_recurring_expense.json +33 -0
  105. package/dist/catalog/endpoints/edit_recurring_invoice.json +33 -0
  106. package/dist/catalog/endpoints/edit_recurring_quote.json +33 -0
  107. package/dist/catalog/endpoints/edit_subscription.json +33 -0
  108. package/dist/catalog/endpoints/edit_tag.json +24 -0
  109. package/dist/catalog/endpoints/edit_task.json +33 -0
  110. package/dist/catalog/endpoints/edit_task_statuss.json +33 -0
  111. package/dist/catalog/endpoints/edit_tax_rate.json +25 -0
  112. package/dist/catalog/endpoints/edit_token.json +33 -0
  113. package/dist/catalog/endpoints/edit_user.json +33 -0
  114. package/dist/catalog/endpoints/edit_vendor.json +33 -0
  115. package/dist/catalog/endpoints/edit_webhook.json +33 -0
  116. package/dist/catalog/endpoints/get_account_transactions.json +24 -0
  117. package/dist/catalog/endpoints/get_activities.json +44 -0
  118. package/dist/catalog/endpoints/get_activity_historical_entity_pdf.json +31 -0
  119. package/dist/catalog/endpoints/get_activity_report.json +49 -0
  120. package/dist/catalog/endpoints/get_ardetail_report.json +49 -0
  121. package/dist/catalog/endpoints/get_arsummary_report.json +49 -0
  122. package/dist/catalog/endpoints/get_bank_integrations.json +61 -0
  123. package/dist/catalog/endpoints/get_bank_integrations_create.json +24 -0
  124. package/dist/catalog/endpoints/get_bank_transaction_rules.json +62 -0
  125. package/dist/catalog/endpoints/get_bank_transaction_rules_create.json +24 -0
  126. package/dist/catalog/endpoints/get_bank_transactions.json +63 -0
  127. package/dist/catalog/endpoints/get_bank_transactions_create.json +24 -0
  128. package/dist/catalog/endpoints/get_chart_calculated_fields.json +18 -0
  129. package/dist/catalog/endpoints/get_chart_summary_v2.json +18 -0
  130. package/dist/catalog/endpoints/get_chart_totals.json +38 -0
  131. package/dist/catalog/endpoints/get_chart_totals_v2.json +18 -0
  132. package/dist/catalog/endpoints/get_claim_license.json +32 -0
  133. package/dist/catalog/endpoints/get_client_balance_report.json +49 -0
  134. package/dist/catalog/endpoints/get_client_contact_report.json +49 -0
  135. package/dist/catalog/endpoints/get_client_gateway_tokens.json +45 -0
  136. package/dist/catalog/endpoints/get_client_gateway_tokens_create.json +24 -0
  137. package/dist/catalog/endpoints/get_client_report.json +64 -0
  138. package/dist/catalog/endpoints/get_client_sales_report.json +49 -0
  139. package/dist/catalog/endpoints/get_clients.json +152 -0
  140. package/dist/catalog/endpoints/get_clients_create.json +30 -0
  141. package/dist/catalog/endpoints/get_companies.json +38 -0
  142. package/dist/catalog/endpoints/get_companies_create.json +24 -0
  143. package/dist/catalog/endpoints/get_company_gateways.json +47 -0
  144. package/dist/catalog/endpoints/get_company_gateways_create.json +24 -0
  145. package/dist/catalog/endpoints/get_company_ledger.json +24 -0
  146. package/dist/catalog/endpoints/get_contact_report.json +64 -0
  147. package/dist/catalog/endpoints/get_credit_report.json +49 -0
  148. package/dist/catalog/endpoints/get_credits.json +55 -0
  149. package/dist/catalog/endpoints/get_credits_create.json +24 -0
  150. package/dist/catalog/endpoints/get_designs.json +54 -0
  151. package/dist/catalog/endpoints/get_designs_create.json +24 -0
  152. package/dist/catalog/endpoints/get_document_report.json +64 -0
  153. package/dist/catalog/endpoints/get_documents.json +54 -0
  154. package/dist/catalog/endpoints/get_expense_category_create.json +16 -0
  155. package/dist/catalog/endpoints/get_expense_categorys.json +47 -0
  156. package/dist/catalog/endpoints/get_expense_report.json +49 -0
  157. package/dist/catalog/endpoints/get_expenses.json +55 -0
  158. package/dist/catalog/endpoints/get_expenses_create.json +24 -0
  159. package/dist/catalog/endpoints/get_export.json +15 -0
  160. package/dist/catalog/endpoints/get_export_preview.json +25 -0
  161. package/dist/catalog/endpoints/get_group_settings.json +47 -0
  162. package/dist/catalog/endpoints/get_group_settings_create.json +24 -0
  163. package/dist/catalog/endpoints/get_health_check.json +15 -0
  164. package/dist/catalog/endpoints/get_import_json.json +15 -0
  165. package/dist/catalog/endpoints/get_invoice_create.json +16 -0
  166. package/dist/catalog/endpoints/get_invoice_delivery_note.json +32 -0
  167. package/dist/catalog/endpoints/get_invoice_item_report.json +64 -0
  168. package/dist/catalog/endpoints/get_invoice_report.json +64 -0
  169. package/dist/catalog/endpoints/get_invoices.json +174 -0
  170. package/dist/catalog/endpoints/get_last_error.json +15 -0
  171. package/dist/catalog/endpoints/get_locations.json +54 -0
  172. package/dist/catalog/endpoints/get_locations_create.json +24 -0
  173. package/dist/catalog/endpoints/get_logout.json +30 -0
  174. package/dist/catalog/endpoints/get_payment_report.json +64 -0
  175. package/dist/catalog/endpoints/get_payment_terms.json +54 -0
  176. package/dist/catalog/endpoints/get_payment_terms_create.json +24 -0
  177. package/dist/catalog/endpoints/get_payments.json +118 -0
  178. package/dist/catalog/endpoints/get_payments_create.json +24 -0
  179. package/dist/catalog/endpoints/get_ping.json +15 -0
  180. package/dist/catalog/endpoints/get_preview.json +15 -0
  181. package/dist/catalog/endpoints/get_preview_purchase_order.json +15 -0
  182. package/dist/catalog/endpoints/get_product_report.json +64 -0
  183. package/dist/catalog/endpoints/get_product_sales_report.json +64 -0
  184. package/dist/catalog/endpoints/get_products.json +118 -0
  185. package/dist/catalog/endpoints/get_products_create.json +24 -0
  186. package/dist/catalog/endpoints/get_profit_loss_report.json +64 -0
  187. package/dist/catalog/endpoints/get_project_report.json +49 -0
  188. package/dist/catalog/endpoints/get_projects.json +55 -0
  189. package/dist/catalog/endpoints/get_projects_create.json +24 -0
  190. package/dist/catalog/endpoints/get_purchase_order_create.json +24 -0
  191. package/dist/catalog/endpoints/get_purchase_orders.json +55 -0
  192. package/dist/catalog/endpoints/get_quote_item_report.json +64 -0
  193. package/dist/catalog/endpoints/get_quote_report.json +64 -0
  194. package/dist/catalog/endpoints/get_quotes.json +125 -0
  195. package/dist/catalog/endpoints/get_quotes_create.json +24 -0
  196. package/dist/catalog/endpoints/get_recurring_expenses.json +54 -0
  197. package/dist/catalog/endpoints/get_recurring_expenses_create.json +24 -0
  198. package/dist/catalog/endpoints/get_recurring_invoice_report.json +64 -0
  199. package/dist/catalog/endpoints/get_recurring_invoices.json +139 -0
  200. package/dist/catalog/endpoints/get_recurring_invoices_create.json +24 -0
  201. package/dist/catalog/endpoints/get_recurring_quotes.json +47 -0
  202. package/dist/catalog/endpoints/get_recurring_quotes_create.json +24 -0
  203. package/dist/catalog/endpoints/get_refresh_accounts.json +24 -0
  204. package/dist/catalog/endpoints/get_remove_account.json +24 -0
  205. package/dist/catalog/endpoints/get_report_preview.json +25 -0
  206. package/dist/catalog/endpoints/get_scheduler.json +15 -0
  207. package/dist/catalog/endpoints/get_settings_passkeys.json +15 -0
  208. package/dist/catalog/endpoints/get_show_template.json +47 -0
  209. package/dist/catalog/endpoints/get_statics.json +23 -0
  210. package/dist/catalog/endpoints/get_subscriptions.json +47 -0
  211. package/dist/catalog/endpoints/get_subscriptions_create.json +24 -0
  212. package/dist/catalog/endpoints/get_system_logs.json +47 -0
  213. package/dist/catalog/endpoints/get_tags.json +63 -0
  214. package/dist/catalog/endpoints/get_tags_create.json +16 -0
  215. package/dist/catalog/endpoints/get_task_report.json +64 -0
  216. package/dist/catalog/endpoints/get_task_scheduler.json +38 -0
  217. package/dist/catalog/endpoints/get_task_schedulers.json +15 -0
  218. package/dist/catalog/endpoints/get_task_statuses.json +54 -0
  219. package/dist/catalog/endpoints/get_task_statuss_create.json +24 -0
  220. package/dist/catalog/endpoints/get_tasks.json +55 -0
  221. package/dist/catalog/endpoints/get_tasks_create.json +24 -0
  222. package/dist/catalog/endpoints/get_tax_period_report.json +49 -0
  223. package/dist/catalog/endpoints/get_tax_rate_create.json +16 -0
  224. package/dist/catalog/endpoints/get_tax_rates.json +47 -0
  225. package/dist/catalog/endpoints/get_tax_summary_report.json +49 -0
  226. package/dist/catalog/endpoints/get_template_preview.json +25 -0
  227. package/dist/catalog/endpoints/get_tokens.json +54 -0
  228. package/dist/catalog/endpoints/get_tokens_create.json +24 -0
  229. package/dist/catalog/endpoints/get_user_sales_report.json +49 -0
  230. package/dist/catalog/endpoints/get_users.json +48 -0
  231. package/dist/catalog/endpoints/get_users_create.json +24 -0
  232. package/dist/catalog/endpoints/get_vendors.json +55 -0
  233. package/dist/catalog/endpoints/get_vendors_create.json +24 -0
  234. package/dist/catalog/endpoints/get_webcron.json +15 -0
  235. package/dist/catalog/endpoints/get_webhooks.json +54 -0
  236. package/dist/catalog/endpoints/get_webhooks_create.json +24 -0
  237. package/dist/catalog/endpoints/invite_user.json +32 -0
  238. package/dist/catalog/endpoints/invite_user_reconfirm.json +32 -0
  239. package/dist/catalog/endpoints/match_bank_transactions.json +26 -0
  240. package/dist/catalog/endpoints/merge_client.json +54 -0
  241. package/dist/catalog/endpoints/post_activities_entity.json +18 -0
  242. package/dist/catalog/endpoints/post_activities_notes.json +18 -0
  243. package/dist/catalog/endpoints/post_connected_account.json +38 -0
  244. package/dist/catalog/endpoints/post_import.json +51 -0
  245. package/dist/catalog/endpoints/post_login.json +79 -0
  246. package/dist/catalog/endpoints/post_one_time_token.json +15 -0
  247. package/dist/catalog/endpoints/post_passkey_login_options.json +24 -0
  248. package/dist/catalog/endpoints/post_purge_company.json +24 -0
  249. package/dist/catalog/endpoints/post_purge_company_save_settings.json +24 -0
  250. package/dist/catalog/endpoints/post_refresh.json +46 -0
  251. package/dist/catalog/endpoints/post_search.json +18 -0
  252. package/dist/catalog/endpoints/post_settings_passkeys.json +34 -0
  253. package/dist/catalog/endpoints/post_settings_passkeys_options.json +15 -0
  254. package/dist/catalog/endpoints/post_start_migration.json +31 -0
  255. package/dist/catalog/endpoints/postmark_webhook.json +24 -0
  256. package/dist/catalog/endpoints/preimport.json +69 -0
  257. package/dist/catalog/endpoints/process_apple_webhook.json +23 -0
  258. package/dist/catalog/endpoints/purge_client.json +32 -0
  259. package/dist/catalog/endpoints/reactivate_email.json +38 -0
  260. package/dist/catalog/endpoints/self_update.json +31 -0
  261. package/dist/catalog/endpoints/self_update_check_version.json +15 -0
  262. package/dist/catalog/endpoints/send_email_template.json +73 -0
  263. package/dist/catalog/endpoints/set_default_company.json +33 -0
  264. package/dist/catalog/endpoints/show_bank_integration.json +33 -0
  265. package/dist/catalog/endpoints/show_bank_transaction.json +33 -0
  266. package/dist/catalog/endpoints/show_bank_transaction_rule.json +33 -0
  267. package/dist/catalog/endpoints/show_client.json +39 -0
  268. package/dist/catalog/endpoints/show_client_gateway_token.json +33 -0
  269. package/dist/catalog/endpoints/show_company.json +33 -0
  270. package/dist/catalog/endpoints/show_company_gateway.json +33 -0
  271. package/dist/catalog/endpoints/show_credit.json +33 -0
  272. package/dist/catalog/endpoints/show_current_company.json +24 -0
  273. package/dist/catalog/endpoints/show_design.json +33 -0
  274. package/dist/catalog/endpoints/show_expense.json +33 -0
  275. package/dist/catalog/endpoints/show_expense_category.json +25 -0
  276. package/dist/catalog/endpoints/show_group_setting.json +33 -0
  277. package/dist/catalog/endpoints/show_invoice.json +33 -0
  278. package/dist/catalog/endpoints/show_location.json +33 -0
  279. package/dist/catalog/endpoints/show_payment.json +33 -0
  280. package/dist/catalog/endpoints/show_payment_term.json +33 -0
  281. package/dist/catalog/endpoints/show_product.json +33 -0
  282. package/dist/catalog/endpoints/show_project.json +33 -0
  283. package/dist/catalog/endpoints/show_purchase_order.json +33 -0
  284. package/dist/catalog/endpoints/show_quote.json +33 -0
  285. package/dist/catalog/endpoints/show_recurring_expense.json +33 -0
  286. package/dist/catalog/endpoints/show_recurring_invoice.json +33 -0
  287. package/dist/catalog/endpoints/show_recurring_quote.json +33 -0
  288. package/dist/catalog/endpoints/show_subscription.json +33 -0
  289. package/dist/catalog/endpoints/show_system_logs.json +33 -0
  290. package/dist/catalog/endpoints/show_tag.json +24 -0
  291. package/dist/catalog/endpoints/show_task.json +33 -0
  292. package/dist/catalog/endpoints/show_task_scheduler.json +24 -0
  293. package/dist/catalog/endpoints/show_task_status.json +33 -0
  294. package/dist/catalog/endpoints/show_tax_rate.json +25 -0
  295. package/dist/catalog/endpoints/show_token.json +33 -0
  296. package/dist/catalog/endpoints/show_user.json +33 -0
  297. package/dist/catalog/endpoints/show_vendor.json +33 -0
  298. package/dist/catalog/endpoints/show_webhook.json +33 -0
  299. package/dist/catalog/endpoints/sort_tasks.json +46 -0
  300. package/dist/catalog/endpoints/store_bank_integration.json +24 -0
  301. package/dist/catalog/endpoints/store_bank_transaction.json +24 -0
  302. package/dist/catalog/endpoints/store_bank_transaction_rule.json +24 -0
  303. package/dist/catalog/endpoints/store_client.json +237 -0
  304. package/dist/catalog/endpoints/store_client_gateway_token.json +24 -0
  305. package/dist/catalog/endpoints/store_company.json +24 -0
  306. package/dist/catalog/endpoints/store_company_gateway.json +24 -0
  307. package/dist/catalog/endpoints/store_credit.json +251 -0
  308. package/dist/catalog/endpoints/store_design.json +24 -0
  309. package/dist/catalog/endpoints/store_expense.json +24 -0
  310. package/dist/catalog/endpoints/store_expense_category.json +24 -0
  311. package/dist/catalog/endpoints/store_group_setting.json +24 -0
  312. package/dist/catalog/endpoints/store_invoice.json +257 -0
  313. package/dist/catalog/endpoints/store_location.json +119 -0
  314. package/dist/catalog/endpoints/store_payment.json +140 -0
  315. package/dist/catalog/endpoints/store_payment_term.json +59 -0
  316. package/dist/catalog/endpoints/store_product.json +179 -0
  317. package/dist/catalog/endpoints/store_project.json +113 -0
  318. package/dist/catalog/endpoints/store_purchase_order.json +89 -0
  319. package/dist/catalog/endpoints/store_quote.json +89 -0
  320. package/dist/catalog/endpoints/store_recurring_expense.json +24 -0
  321. package/dist/catalog/endpoints/store_recurring_invoice.json +101 -0
  322. package/dist/catalog/endpoints/store_recurring_quote.json +24 -0
  323. package/dist/catalog/endpoints/store_refund.json +235 -0
  324. package/dist/catalog/endpoints/store_subscription.json +24 -0
  325. package/dist/catalog/endpoints/store_tag.json +43 -0
  326. package/dist/catalog/endpoints/store_task.json +113 -0
  327. package/dist/catalog/endpoints/store_task_status.json +77 -0
  328. package/dist/catalog/endpoints/store_token.json +24 -0
  329. package/dist/catalog/endpoints/store_user.json +24 -0
  330. package/dist/catalog/endpoints/store_vendor.json +131 -0
  331. package/dist/catalog/endpoints/store_webhook.json +24 -0
  332. package/dist/catalog/endpoints/support_message.json +25 -0
  333. package/dist/catalog/endpoints/update_bank_integration.json +33 -0
  334. package/dist/catalog/endpoints/update_bank_transaction.json +33 -0
  335. package/dist/catalog/endpoints/update_bank_transaction_rule.json +33 -0
  336. package/dist/catalog/endpoints/update_client.json +246 -0
  337. package/dist/catalog/endpoints/update_client_gateway_token.json +33 -0
  338. package/dist/catalog/endpoints/update_client_tax_data.json +38 -0
  339. package/dist/catalog/endpoints/update_company.json +33 -0
  340. package/dist/catalog/endpoints/update_company_gateway.json +33 -0
  341. package/dist/catalog/endpoints/update_company_user.json +16 -0
  342. package/dist/catalog/endpoints/update_credit.json +33 -0
  343. package/dist/catalog/endpoints/update_design.json +33 -0
  344. package/dist/catalog/endpoints/update_expense.json +33 -0
  345. package/dist/catalog/endpoints/update_expense_category.json +25 -0
  346. package/dist/catalog/endpoints/update_group_setting.json +33 -0
  347. package/dist/catalog/endpoints/update_invoice.json +33 -0
  348. package/dist/catalog/endpoints/update_location.json +128 -0
  349. package/dist/catalog/endpoints/update_payment.json +33 -0
  350. package/dist/catalog/endpoints/update_payment_term.json +33 -0
  351. package/dist/catalog/endpoints/update_product.json +188 -0
  352. package/dist/catalog/endpoints/update_project.json +122 -0
  353. package/dist/catalog/endpoints/update_purchase_order.json +98 -0
  354. package/dist/catalog/endpoints/update_quote.json +98 -0
  355. package/dist/catalog/endpoints/update_recurring_expense.json +33 -0
  356. package/dist/catalog/endpoints/update_recurring_invoice.json +33 -0
  357. package/dist/catalog/endpoints/update_recurring_quote.json +33 -0
  358. package/dist/catalog/endpoints/update_subscription.json +33 -0
  359. package/dist/catalog/endpoints/update_tag.json +38 -0
  360. package/dist/catalog/endpoints/update_task.json +122 -0
  361. package/dist/catalog/endpoints/update_task_scheduler.json +90 -0
  362. package/dist/catalog/endpoints/update_task_status.json +33 -0
  363. package/dist/catalog/endpoints/update_tax_rate.json +25 -0
  364. package/dist/catalog/endpoints/update_token.json +33 -0
  365. package/dist/catalog/endpoints/update_user.json +33 -0
  366. package/dist/catalog/endpoints/update_vendor.json +140 -0
  367. package/dist/catalog/endpoints/update_webhook.json +33 -0
  368. package/dist/catalog/endpoints/upload_client.json +54 -0
  369. package/dist/catalog/endpoints/upload_companies.json +47 -0
  370. package/dist/catalog/endpoints/upload_credits.json +47 -0
  371. package/dist/catalog/endpoints/upload_expense.json +47 -0
  372. package/dist/catalog/endpoints/upload_group_setting.json +47 -0
  373. package/dist/catalog/endpoints/upload_invoice_document.json +47 -0
  374. package/dist/catalog/endpoints/upload_payment.json +47 -0
  375. package/dist/catalog/endpoints/upload_product.json +46 -0
  376. package/dist/catalog/endpoints/upload_project.json +47 -0
  377. package/dist/catalog/endpoints/upload_purchase_order.json +47 -0
  378. package/dist/catalog/endpoints/upload_quote.json +47 -0
  379. package/dist/catalog/endpoints/upload_recurring_expense.json +47 -0
  380. package/dist/catalog/endpoints/upload_recurring_invoice.json +47 -0
  381. package/dist/catalog/endpoints/upload_task.json +47 -0
  382. package/dist/catalog/endpoints/upload_vendor.json +47 -0
  383. package/dist/catalog/endpoints/yodlee_refresh_webhook.json +16 -0
  384. package/dist/catalog/index.json +4428 -0
  385. package/dist/clients/invoiceninja-client.js +205 -0
  386. package/dist/helpers/register-endpoint-tools.js +27 -0
  387. package/dist/index.js +8 -0
  388. package/dist/server/invoiceninja-mcp-server.js +18 -0
  389. package/dist/tools/call-endpoint.js +153 -0
  390. package/dist/tools/describe-endpoint.js +60 -0
  391. package/dist/tools/list-endpoints.js +77 -0
  392. package/dist/types/tool-response.js +1 -0
  393. package/package.json +52 -0
@@ -0,0 +1,47 @@
1
+ {
2
+ "slug": "get_group_settings",
3
+ "operationId": "getGroupSettings",
4
+ "method": "GET",
5
+ "path": "/api/v1/group_settings",
6
+ "name": "Gets a list of group_settings",
7
+ "category": "group_settings",
8
+ "mutating": false,
9
+ "description": "Lists group_settings, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the group_settings, these are handled by the GroupSettingFilters class which defines the methods available",
10
+ "whenToUse": "List or filter many group settings with paging and sorting; use to browse or search groups when you lack a specific id.",
11
+ "pathParameters": [],
12
+ "queryParameters": [
13
+ {
14
+ "name": "include",
15
+ "type": "string",
16
+ "required": false,
17
+ "description": "Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes",
18
+ "example": "first_load"
19
+ },
20
+ {
21
+ "name": "per_page",
22
+ "type": "integer",
23
+ "required": false,
24
+ "description": "The number of records to return for each request, default is 20",
25
+ "example": 20
26
+ },
27
+ {
28
+ "name": "page",
29
+ "type": "integer",
30
+ "required": false,
31
+ "description": "The page number to return for this request (when performing pagination), default is 1",
32
+ "example": 1
33
+ },
34
+ {
35
+ "name": "sort",
36
+ "type": "array",
37
+ "required": false,
38
+ "description": "Order the list by choosing a column and direction. Each value uses the form `column|asc` or `column|desc`.\n\n*Single sort** — for example `sort=id|desc`.\n\n*Multiple sorts** — for example\n`sort[]=id|desc&sort[]=updated_at|asc`.\n\nOnly `group_settings` columns are honored. Unsupported keys are ignored.",
39
+ "example": [
40
+ "id|desc"
41
+ ]
42
+ }
43
+ ],
44
+ "headerParameters": [],
45
+ "requestBody": null,
46
+ "responseSchema": "GroupSetting[]"
47
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "slug": "get_group_settings_create",
3
+ "operationId": "getGroupSettingsCreate",
4
+ "method": "GET",
5
+ "path": "/api/v1/group_settings/create",
6
+ "name": "Gets a new blank GroupSetting object",
7
+ "category": "group_settings",
8
+ "mutating": false,
9
+ "description": "Returns a blank object with default values",
10
+ "whenToUse": "Fetch a blank group setting template with default values; read-only, use to prefill before storing a new group.",
11
+ "pathParameters": [],
12
+ "queryParameters": [
13
+ {
14
+ "name": "include",
15
+ "type": "string",
16
+ "required": false,
17
+ "description": "Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes",
18
+ "example": "first_load"
19
+ }
20
+ ],
21
+ "headerParameters": [],
22
+ "requestBody": null,
23
+ "responseSchema": "GroupSetting"
24
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "slug": "get_health_check",
3
+ "operationId": "getHealthCheck",
4
+ "method": "GET",
5
+ "path": "/api/v1/health_check",
6
+ "name": "Attempts to get a health check from the API",
7
+ "category": "health_check",
8
+ "mutating": false,
9
+ "description": "Attempts to get a health check from the API",
10
+ "whenToUse": "Ping the API health check to verify the instance is up and responding; use for liveness/diagnostics, not for any business data.",
11
+ "pathParameters": [],
12
+ "queryParameters": [],
13
+ "headerParameters": [],
14
+ "requestBody": null
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "slug": "get_import_json",
3
+ "operationId": "getImportJson",
4
+ "method": "POST",
5
+ "path": "/api/v1/import_json",
6
+ "name": "Import data from the system",
7
+ "category": "imports",
8
+ "mutating": true,
9
+ "description": "Import data from the system",
10
+ "whenToUse": "Call to bulk-import a previously exported Invoice Ninja JSON dataset into the company, restoring or migrating records (mutating).",
11
+ "pathParameters": [],
12
+ "queryParameters": [],
13
+ "headerParameters": [],
14
+ "requestBody": null
15
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "slug": "get_invoice_create",
3
+ "operationId": "getInvoiceCreate",
4
+ "method": "GET",
5
+ "path": "/api/v1/invoices/create",
6
+ "name": "Blank invoice",
7
+ "category": "invoices",
8
+ "mutating": false,
9
+ "description": "## GET /api/v1/invoices/create\n\nReturns a blank object with default values",
10
+ "whenToUse": "GET a blank invoice object with default values to seed a new-invoice form; read-only, use before store_invoice.",
11
+ "pathParameters": [],
12
+ "queryParameters": [],
13
+ "headerParameters": [],
14
+ "requestBody": null,
15
+ "responseSchema": "Invoice"
16
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "slug": "get_invoice_delivery_note",
3
+ "operationId": "getInvoiceDeliveryNote",
4
+ "method": "GET",
5
+ "path": "/api/v1/invoices/{id}/delivery_note",
6
+ "name": "Download delivery note",
7
+ "category": "invoices",
8
+ "mutating": false,
9
+ "description": "## GET /api/v1/invoices/{id}/delivery_note\n\nDownloads a specific invoice delivery notes",
10
+ "whenToUse": "Download one invoice's delivery-note PDF by id; use for the delivery note specifically, not download_invoice_by_invitation for the invoice PDF.",
11
+ "pathParameters": [
12
+ {
13
+ "name": "id",
14
+ "type": "string",
15
+ "required": true,
16
+ "description": "The Invoice Hahsed Id",
17
+ "format": "string",
18
+ "example": "D2J234DFA"
19
+ }
20
+ ],
21
+ "queryParameters": [
22
+ {
23
+ "name": "include",
24
+ "type": "string",
25
+ "required": false,
26
+ "description": "Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes",
27
+ "example": "first_load"
28
+ }
29
+ ],
30
+ "headerParameters": [],
31
+ "requestBody": null
32
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "slug": "get_invoice_item_report",
3
+ "operationId": "getInvoiceItemReport",
4
+ "method": "POST",
5
+ "path": "/api/v1/reports/invoice_items",
6
+ "name": "Invoice item reports",
7
+ "category": "reports",
8
+ "mutating": false,
9
+ "description": "Export invoice item reports",
10
+ "whenToUse": "Export a paginated report of individual invoice line items over a date range; use for per-line-item detail, not whole-invoice totals",
11
+ "pathParameters": [],
12
+ "queryParameters": [
13
+ {
14
+ "name": "per_page",
15
+ "type": "integer",
16
+ "required": false,
17
+ "description": "The number of records to return for each request, default is 20",
18
+ "example": 20
19
+ },
20
+ {
21
+ "name": "page",
22
+ "type": "integer",
23
+ "required": false,
24
+ "description": "The page number to return for this request (when performing pagination), default is 1",
25
+ "example": 1
26
+ }
27
+ ],
28
+ "headerParameters": [],
29
+ "requestBody": {
30
+ "contentType": "application/json",
31
+ "fields": [
32
+ {
33
+ "name": "date_range",
34
+ "type": "string",
35
+ "required": false,
36
+ "description": "The string representation of the date range of data to be returned"
37
+ },
38
+ {
39
+ "name": "date_key",
40
+ "type": "string",
41
+ "required": false,
42
+ "description": "The date column to search between."
43
+ },
44
+ {
45
+ "name": "start_date",
46
+ "type": "string",
47
+ "required": false,
48
+ "description": "The start date to search between"
49
+ },
50
+ {
51
+ "name": "end_date",
52
+ "type": "string",
53
+ "required": false,
54
+ "description": "The end date to search between"
55
+ },
56
+ {
57
+ "name": "report_keys",
58
+ "type": "array",
59
+ "required": false
60
+ }
61
+ ],
62
+ "schemaRef": "GenericReportSchema"
63
+ }
64
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "slug": "get_invoice_report",
3
+ "operationId": "getInvoiceReport",
4
+ "method": "POST",
5
+ "path": "/api/v1/reports/invoices",
6
+ "name": "Invoice reports",
7
+ "category": "reports",
8
+ "mutating": false,
9
+ "description": "Export invoice reports",
10
+ "whenToUse": "Export a paginated report of invoice records and totals over a date range; use for invoice-level summaries, not their individual line items",
11
+ "pathParameters": [],
12
+ "queryParameters": [
13
+ {
14
+ "name": "per_page",
15
+ "type": "integer",
16
+ "required": false,
17
+ "description": "The number of records to return for each request, default is 20",
18
+ "example": 20
19
+ },
20
+ {
21
+ "name": "page",
22
+ "type": "integer",
23
+ "required": false,
24
+ "description": "The page number to return for this request (when performing pagination), default is 1",
25
+ "example": 1
26
+ }
27
+ ],
28
+ "headerParameters": [],
29
+ "requestBody": {
30
+ "contentType": "application/json",
31
+ "fields": [
32
+ {
33
+ "name": "date_range",
34
+ "type": "string",
35
+ "required": false,
36
+ "description": "The string representation of the date range of data to be returned"
37
+ },
38
+ {
39
+ "name": "date_key",
40
+ "type": "string",
41
+ "required": false,
42
+ "description": "The date column to search between."
43
+ },
44
+ {
45
+ "name": "start_date",
46
+ "type": "string",
47
+ "required": false,
48
+ "description": "The start date to search between"
49
+ },
50
+ {
51
+ "name": "end_date",
52
+ "type": "string",
53
+ "required": false,
54
+ "description": "The end date to search between"
55
+ },
56
+ {
57
+ "name": "report_keys",
58
+ "type": "array",
59
+ "required": false
60
+ }
61
+ ],
62
+ "schemaRef": "GenericReportSchema"
63
+ }
64
+ }
@@ -0,0 +1,174 @@
1
+ {
2
+ "slug": "get_invoices",
3
+ "operationId": "getInvoices",
4
+ "method": "GET",
5
+ "path": "/api/v1/invoices",
6
+ "name": "List invoices",
7
+ "category": "invoices",
8
+ "mutating": false,
9
+ "description": "## GET /api/v1/invoices\n\nLists invoices with the option to chain multiple query parameters allowing fine grained filtering of the list.",
10
+ "whenToUse": "Fetch and filter many invoices by client, status, number, date, or overdue with pagination; use to search or list, not to read one by id.",
11
+ "pathParameters": [],
12
+ "queryParameters": [
13
+ {
14
+ "name": "include",
15
+ "type": "string",
16
+ "required": false,
17
+ "description": "Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes",
18
+ "example": "first_load"
19
+ },
20
+ {
21
+ "name": "index",
22
+ "type": "string",
23
+ "required": false,
24
+ "description": "Replaces the default response index from data to a user specific string\n\nie.\n\n```html\n ?index=new_index\n```\n\nresponse is wrapped\n\n```json\n {\n 'new_index' : [\n .....\n ]\n }\n```",
25
+ "example": "user"
26
+ },
27
+ {
28
+ "name": "per_page",
29
+ "type": "integer",
30
+ "required": false,
31
+ "description": "The number of records to return for each request, default is 20",
32
+ "example": 20
33
+ },
34
+ {
35
+ "name": "page",
36
+ "type": "integer",
37
+ "required": false,
38
+ "description": "The page number to return for this request (when performing pagination), default is 1",
39
+ "example": 1
40
+ },
41
+ {
42
+ "name": "sort",
43
+ "type": "array",
44
+ "required": false,
45
+ "description": "Order the list by choosing a column and direction. Each value uses the form `column|asc` or `column|desc`.\n\n*Single sort** — for example `sort=balance|desc`.\n\n*Multiple sorts** — use `sort[]` for each level in priority order, for example\n`sort[]=id|desc&sort[]=number|asc`.\n\nInvoices accept columns on the `invoices` table, relationship-style keys such as `client.name`, `client_id`, `documents`, `project_id`, and prefixed `client.*` / `contact.*` sorts where the filter supports them. `number` and `status_id` have special handling. Unsupported keys are ignored.",
46
+ "example": [
47
+ "number|asc",
48
+ "balance|desc"
49
+ ]
50
+ },
51
+ {
52
+ "name": "status",
53
+ "type": "string",
54
+ "required": false,
55
+ "description": "Filter the entity based on their status. ie active / archived / deleted. Format is a comma separated string with any of the following options:\n- active\n- archived\n- deleted\n\n```html\nGET /api/v1/invoices?status=archived,deleted\nReturns only archived and deleted invoices\n```",
56
+ "example": "?status=archived,deleted"
57
+ },
58
+ {
59
+ "name": "client_id",
60
+ "type": "string",
61
+ "required": false,
62
+ "description": "Filters the entity list by client_id. Suitable when you only want the entities of a specific client.\n\n```html\nGET /api/v1/invoices?client_id=AxB7Hjk9\nReturns only invoices for the specified client\n```",
63
+ "example": "?client_id={client_id}"
64
+ },
65
+ {
66
+ "name": "created_at",
67
+ "type": "integer",
68
+ "required": false,
69
+ "description": "Filters the entity list by the created at timestamp. Parameter value can be a datetime string or unix timestamp\n\n```html\nGET /api/v1/invoices?created_at=2022-01-10\nReturns entities created on January 10th, 2022\n```",
70
+ "example": 1641772800
71
+ },
72
+ {
73
+ "name": "updated_at",
74
+ "type": "integer",
75
+ "required": false,
76
+ "description": "Filters the entity list by the updated at timestamp. Parameter value can be a datetime string or unix timestamp\n\n```html\nGET /api/v1/invoices?updated_at=2022-01-10\nReturns entities last updated on January 10th, 2022\n```",
77
+ "example": 1641772800
78
+ },
79
+ {
80
+ "name": "is_deleted",
81
+ "type": "boolean",
82
+ "required": false,
83
+ "description": "Filters the entity list by entities that have been deleted.\n\n```html\nGET /api/v1/invoices?is_deleted=true\nReturns only soft-deleted entities\n```",
84
+ "example": true
85
+ },
86
+ {
87
+ "name": "filter_deleted_clients",
88
+ "type": "string",
89
+ "required": false,
90
+ "description": "Filters the entity list and only returns entities for clients that have not been deleted\n\n```html\nGET /api/v1/invoices?filter_deleted_clients=true\nReturns only invoices for active (non-deleted) clients\n```",
91
+ "example": "?filter_deleted_clients=true"
92
+ },
93
+ {
94
+ "name": "vendor_id",
95
+ "type": "string",
96
+ "required": false,
97
+ "description": "Filters the entity list by an associated vendor\n\n```html\nGET /api/v1/purchases?vendor_id=AxB7Hjk9\nReturns only purchases for the specified vendor\n```",
98
+ "example": "?vendor_id={vendor_id}"
99
+ },
100
+ {
101
+ "name": "client_status",
102
+ "type": "string",
103
+ "required": false,
104
+ "description": "A comma separated list of invoice status strings. Valid options include:\n- all\n- paid\n- unpaid\n- overdue",
105
+ "example": "?client_status=paid,unpaid"
106
+ },
107
+ {
108
+ "name": "number",
109
+ "type": "string",
110
+ "required": false,
111
+ "description": "Search invoices by invoice number",
112
+ "example": "?number=INV-001"
113
+ },
114
+ {
115
+ "name": "filter",
116
+ "type": "string",
117
+ "required": false,
118
+ "description": "Searches across a range of columns including:\n- number\n- po_number\n- date\n- amount\n- balance\n- custom_value1\n- custom_value2\n- custom_value3\n- custom_value4\n- client.name\n- client.contacts.[first_name, last_name, email]\n- line_items.[product_key, notes]",
119
+ "example": "?filter=bob"
120
+ },
121
+ {
122
+ "name": "without_deleted_clients",
123
+ "type": "string",
124
+ "required": false,
125
+ "description": "Returns the invoice list without the invoices of deleted clients.",
126
+ "example": "?without_deleted_clients="
127
+ },
128
+ {
129
+ "name": "overdue",
130
+ "type": "string",
131
+ "required": false,
132
+ "description": "Returns the list of invoices that are overdue",
133
+ "example": "?overdue="
134
+ },
135
+ {
136
+ "name": "payable",
137
+ "type": "string",
138
+ "required": false,
139
+ "description": "Returns the invoice list that are payable for a defined client. Please note, you must pass the client_id as the value for this query parameter",
140
+ "example": "?payable={client_id}"
141
+ },
142
+ {
143
+ "name": "private_notes",
144
+ "type": "string",
145
+ "required": false,
146
+ "description": "Searches on the private_notes field of the invoices",
147
+ "example": "?private_notes=super secret"
148
+ },
149
+ {
150
+ "name": "date",
151
+ "type": "string",
152
+ "required": false,
153
+ "description": "Filters the invoices by invoice date returns a list of invoices after (and including) the date",
154
+ "example": "?date=2022-01-01"
155
+ },
156
+ {
157
+ "name": "date_range",
158
+ "type": "string",
159
+ "required": false,
160
+ "description": "Filters the invoices by invoice date returns a list of invoices between two dates",
161
+ "example": "?date_range=2022-01-01,2022-01-31"
162
+ },
163
+ {
164
+ "name": "status_id",
165
+ "type": "integer",
166
+ "required": false,
167
+ "description": "Filters the invoices by status id\n\n```html\n STATUS_DRAFT = 1;\n STATUS_SENT = 2;\n STATUS_PARTIAL = 3;\n STATUS_PAID = 4;\n STATUS_CANCELLED = 5;\n STATUS_REVERSED = 6;\n```",
168
+ "example": 1
169
+ }
170
+ ],
171
+ "headerParameters": [],
172
+ "requestBody": null,
173
+ "responseSchema": "Invoice[]"
174
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "slug": "get_last_error",
3
+ "operationId": "getLastError",
4
+ "method": "GET",
5
+ "path": "/api/v1/last_error",
6
+ "name": "Returns the last error",
7
+ "category": "ping",
8
+ "mutating": false,
9
+ "description": "Returns the last error from the API",
10
+ "whenToUse": "Fetch the API's most recent error message when diagnosing a prior failed request, rather than checking liveness.",
11
+ "pathParameters": [],
12
+ "queryParameters": [],
13
+ "headerParameters": [],
14
+ "requestBody": null
15
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "slug": "get_locations",
3
+ "operationId": "getLocations",
4
+ "method": "GET",
5
+ "path": "/api/v1/locations",
6
+ "name": "List locations",
7
+ "category": "locations",
8
+ "mutating": false,
9
+ "description": "## GET /api/v1/locations\n\nLocations are additional addresses that are applicable to a client. This is useful when a client has multiple addresses for shipping, billing, etc.\n\nWhen retrieving a list of locations you can chain query parameters to filter the dataset. For example:\n\n```html\n/api/v1/locations?name=warehouse*\n```\n\nSorting uses `column|asc` or `column|desc`. Use a single `sort` parameter for one column, or repeated `sort[]` parameters for multi-level ordering (first is primary):\n\n```html\n/api/v1/locations?sort=id|desc\n/api/v1/locations?sort[]=id|desc&sort[]=name|asc\n```\n\nFor pagination, use per_page and page parameters:\n\n```html\n/api/v1/locations?per_page=15&page=2\n```\n\nThe default per_page value is 20.",
10
+ "whenToUse": "List or filter many client/vendor address locations by name with sorting and pagination; use to find locations or browse the set.",
11
+ "pathParameters": [],
12
+ "queryParameters": [
13
+ {
14
+ "name": "index",
15
+ "type": "string",
16
+ "required": false,
17
+ "description": "Replaces the default response index from data to a user specific string\n\nie.\n\n```html\n ?index=new_index\n```\n\nresponse is wrapped\n\n```json\n {\n 'new_index' : [\n .....\n ]\n }\n```",
18
+ "example": "user"
19
+ },
20
+ {
21
+ "name": "per_page",
22
+ "type": "integer",
23
+ "required": false,
24
+ "description": "The number of records to return for each request, default is 20",
25
+ "example": 20
26
+ },
27
+ {
28
+ "name": "page",
29
+ "type": "integer",
30
+ "required": false,
31
+ "description": "The page number to return for this request (when performing pagination), default is 1",
32
+ "example": 1
33
+ },
34
+ {
35
+ "name": "sort",
36
+ "type": "array",
37
+ "required": false,
38
+ "description": "Order the list by choosing a column and direction. Each value uses the form `column|asc` or `column|desc`.\n\n*Single sort** — for example `sort=name|desc`.\n\n*Multiple sorts** — for example\n`sort[]=name|asc&sort[]=id|desc`.\n\nLocation ordering is limited by the filter: `name` is the primary supported case; other column names must exist on the locations schema to take effect.",
39
+ "example": [
40
+ "name|desc"
41
+ ]
42
+ },
43
+ {
44
+ "name": "name",
45
+ "type": "string",
46
+ "required": false,
47
+ "description": "Filter by location name\n\n```html\n?name=warehouse\n```",
48
+ "example": "warehouse"
49
+ }
50
+ ],
51
+ "headerParameters": [],
52
+ "requestBody": null,
53
+ "responseSchema": "Location[]"
54
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "slug": "get_locations_create",
3
+ "operationId": "getLocationsCreate",
4
+ "method": "GET",
5
+ "path": "/api/v1/locations/create",
6
+ "name": "Blank Location",
7
+ "category": "locations",
8
+ "mutating": false,
9
+ "description": "## GET /api/v1/locations/create\n\nReturns a blank object with default values",
10
+ "whenToUse": "Fetch a blank location object with default values to prefill a new-location form before calling store_location.",
11
+ "pathParameters": [],
12
+ "queryParameters": [
13
+ {
14
+ "name": "index",
15
+ "type": "string",
16
+ "required": false,
17
+ "description": "Replaces the default response index from data to a user specific string\n\nie.\n\n```html\n ?index=new_index\n```\n\nresponse is wrapped\n\n```json\n {\n 'new_index' : [\n .....\n ]\n }\n```",
18
+ "example": "user"
19
+ }
20
+ ],
21
+ "headerParameters": [],
22
+ "requestBody": null,
23
+ "responseSchema": "Location"
24
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "slug": "get_logout",
3
+ "operationId": "getLogout",
4
+ "method": "POST",
5
+ "path": "/api/v1/logout",
6
+ "name": "Logs the user out of their current session",
7
+ "category": "logout",
8
+ "mutating": true,
9
+ "description": "Logs the user out of their current session",
10
+ "whenToUse": "Call to log out the current user and invalidate their active session token when ending an authenticated session (mutating).",
11
+ "pathParameters": [],
12
+ "queryParameters": [
13
+ {
14
+ "name": "include",
15
+ "type": "string",
16
+ "required": false,
17
+ "description": "Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes",
18
+ "example": "first_load"
19
+ },
20
+ {
21
+ "name": "index",
22
+ "type": "string",
23
+ "required": false,
24
+ "description": "Replaces the default response index from data to a user specific string\n\nie.\n\n```html\n ?index=new_index\n```\n\nresponse is wrapped\n\n```json\n {\n 'new_index' : [\n .....\n ]\n }\n```",
25
+ "example": "user"
26
+ }
27
+ ],
28
+ "headerParameters": [],
29
+ "requestBody": null
30
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "slug": "get_payment_report",
3
+ "operationId": "getPaymentReport",
4
+ "method": "POST",
5
+ "path": "/api/v1/reports/payments",
6
+ "name": "Payment reports",
7
+ "category": "reports",
8
+ "mutating": false,
9
+ "description": "Export payment reports",
10
+ "whenToUse": "Export a paginated report of payment records received over a date range; use for cash collected, not invoices billed or balances owed",
11
+ "pathParameters": [],
12
+ "queryParameters": [
13
+ {
14
+ "name": "per_page",
15
+ "type": "integer",
16
+ "required": false,
17
+ "description": "The number of records to return for each request, default is 20",
18
+ "example": 20
19
+ },
20
+ {
21
+ "name": "page",
22
+ "type": "integer",
23
+ "required": false,
24
+ "description": "The page number to return for this request (when performing pagination), default is 1",
25
+ "example": 1
26
+ }
27
+ ],
28
+ "headerParameters": [],
29
+ "requestBody": {
30
+ "contentType": "application/json",
31
+ "fields": [
32
+ {
33
+ "name": "date_range",
34
+ "type": "string",
35
+ "required": false,
36
+ "description": "The string representation of the date range of data to be returned"
37
+ },
38
+ {
39
+ "name": "date_key",
40
+ "type": "string",
41
+ "required": false,
42
+ "description": "The date column to search between."
43
+ },
44
+ {
45
+ "name": "start_date",
46
+ "type": "string",
47
+ "required": false,
48
+ "description": "The start date to search between"
49
+ },
50
+ {
51
+ "name": "end_date",
52
+ "type": "string",
53
+ "required": false,
54
+ "description": "The end date to search between"
55
+ },
56
+ {
57
+ "name": "report_keys",
58
+ "type": "array",
59
+ "required": false
60
+ }
61
+ ],
62
+ "schemaRef": "GenericReportSchema"
63
+ }
64
+ }