{"name":"BC NTLM Proxy","version":"3.4.1","description":"A secure proxy for Microsoft Dynamics 365 Business Central with full OData support and multi-environment switching","defaultEnvironment":"production","environments":{"test":"JB COPY 4 Jan 2026","production":"Johnson Brothers (Belfast) Ltd"},"usage":"Add ?env=test or ?env=production to any endpoint to target a specific BC company. Default: production.","endpoints":{"environments":"GET /environments - List available environments","health":"GET /health?env=production - Check proxy and BC connection status","customers":"GET /customers?search=name&env=production - Search customers by name","items":"GET /items?search=name&number=12345&top=20&env=production - Search items with ALL properties (OData)","itemUnitSize":"GET /items/{number}/unitsize?env=production - Get Purchase Unit Size for quantity conversion","batchUnitSize":"POST /items/unitsize/batch?env=production - Get unit sizes for multiple items","salesOrders":"GET /salesOrders?env=production - List sales orders","salesOrderDetail":"GET /salesOrders/detail/{number}?env=production - Full order details including Your Reference (OData)","createOrder":"POST /salesOrders?env=production - Create sales order (supports yourReference)","addLine":"POST /salesOrders/{id}/salesOrderLines?env=production - Add line to order","shipToAddresses":"GET /shipToAddresses?customerNumber=99441&search=1709&env=test - Ship-to address list for a customer (OData)","salesInvoices":"GET /salesInvoices?reference=<docket>&env=test - List/find invoices by Your Reference (duplicate check)","createInvoice":"POST /salesInvoices?env=test - Create DRAFT sales invoice directly, no sales order (docketNumber -> Your Reference)","addInvoiceLine":"POST /salesInvoices/{id}/salesInvoiceLines?env=test - Add item line to draft invoice","deleteInvoice":"DELETE /salesInvoices/{id}?env=test - Delete a draft invoice","createInvoiceFull":"POST /salesInvoices/full?env=test - ONE call per docket: dup-check + header + REC comment + all lines + totals","createInvoiceBatch":"POST /salesInvoices/batch?env=test - Whole spreadsheet: array of dockets, one /full each"}}