This repository contains a comprehensive Postman collection for Microsoft Dynamics 365 Business Central API v2. It provides ready-to-use API requests for testing and integrating with Business Central's REST API.
Microsoft Dynamics 365 Business Central provides REST APIs that allow you to interact with business data programmatically. This collection includes all major API endpoints for managing companies, customers, vendors, items, sales documents, and more.
- Microsoft Dynamics 365 Business Central tenant
- Valid authentication credentials (OAuth 2.0 or Basic Authentication)
- Postman application installed
- Node.js 16+ (for JavaScript automation tools)
-
Clone this repository
git clone https://github.com/your-username/business-central-api.git cd business-central-api
-
Install JavaScript Dependencies (Optional)
npm install
-
Import the Postman Collection
- Open Postman
- Click "Import" button
- Select
postman/Business_Central_API_v2.0.postman_collection.json
- Import the environment file
postman/Business_Central_Environment.postman_environment.json
-
Configure Environment Variables
- Set your
baseUrl
(e.g.,https://api.businesscentral.dynamics.com/v2.0/your-tenant-id/your-environment-name
) - Configure authentication credentials
- Set company ID if needed
- Set your
- Production:
https://api.businesscentral.dynamics.com/v2.0/{tenant-id}/{environment-name}/api/v2.0
- Sandbox:
https://api.businesscentral.dynamics.com/v2.0/{tenant-id}/Sandbox/api/v2.0
Common HTTP status codes:
200 OK
- Successful request201 Created
- Resource created successfully400 Bad Request
- Invalid request format401 Unauthorized
- Authentication required403 Forbidden
- Insufficient permissions404 Not Found
- Resource not found500 Internal Server Error
- Server error
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Note: Replace {tenant-id}
, {environment-name}
, and {company-id}
with your actual values.