Announcements
Yes, you can send customer and invoice data to Dynamics 365 Business Central using Microsoft's existing APIs. Business Central provides OData and REST APIs that allow you to interact with customer and sales data programmatically.
Alt + Q
customer
salesInvoice
arduino
https://api.businesscentral.dynamics.com/v2.0/{tenant_id}/{environment}/ODataV4/
You must use OAuth 2.0 authentication via Azure Active Directory (Azure AD).
Register an App in Azure AD:
Grant API Permissions:
Financials.ReadWrite.All
Obtain Access Token via OAuth:
bash
https://login.microsoftonline.com/{tenant_id}/oauth2/token
Use HttpClient in .NET MVC to send data to Business Central.
csharp
using System; using System.Net.Http; using System.Text; using System.Threading.Tasks; public class BusinessCentralService { private static readonly string apiUrl = "https://api.businesscentral.dynamics.com/v2.0/{tenant_id}/Production/ODataV4/companies({company_id})/customers"; private static readonly string accessToken = "your_access_token"; public static async Task CreateCustomer() { var client = new HttpClient(); client.DefaultRequestHeaders.Add("Authorization", "Bearer " + accessToken); var customerData = new { displayName = "New Customer", email = "customer@example.com", phoneNumber = "123456789" }; var json = Newtonsoft.Json.JsonConvert.SerializeObject(customerData); var content = new StringContent(json, Encoding.UTF8, "application/json"); var response = await client.PostAsync(apiUrl, content); var responseBody = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseBody); } }
var salesInvoiceData = new { customerId = "CUSTOMER_ID", invoiceDate = DateTime.UtcNow.ToString("yyyy-MM-dd"), salesInvoiceLines = new[] { new { itemId = "ITEM_ID", quantity = 1, unitPrice = 100 } } }; var json = Newtonsoft.Json.JsonConvert.SerializeObject(salesInvoiceData); var content = new StringContent(json, Encoding.UTF8, "application/json"); var response = await client.PostAsync(apiUrl + "/salesInvoices", content);
401 Unauthorized
403 Forbidden
Yes, you can create a free trial account in Dynamics 365 Business Central, but availability in Pakistan may be restricted.
✅ Use OAuth 2.0 for authentication. ✅ Send data using Business Central APIs (OData/REST). ✅ If Pakistan is restricted for trials, try a Microsoft Partner workaround. Saif Ali Sabri, FAISALABAD, PAKISTAN +923007960782
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 658 Super User 2026 Season 1
André Arnaud de Cal... 632 Super User 2026 Season 1
Giorgio Bonacorsi 570