{
  "opencollection": "1.0.0",
  "info": {
    "name": "Business Central Administration Center Accounts Vendors API",
    "version": "2.28"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Vendors",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Vendors",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/vendors",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Maximum number of items to return"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of items to skip"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression"
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query",
                "description": "OData order by expression"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              }
            ]
          },
          "docs": "Returns a list of vendor objects from the specified company."
        },
        {
          "info": {
            "name": "Create a Vendor",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/vendors",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new vendor object in the specified company."
        },
        {
          "info": {
            "name": "Get a Vendor",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/vendors(:vendor_id)",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              },
              {
                "name": "vendor_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the vendor"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              }
            ]
          },
          "docs": "Retrieves a specific vendor by ID."
        },
        {
          "info": {
            "name": "Update a Vendor",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/vendors(:vendor_id)",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              },
              {
                "name": "vendor_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the vendor"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing vendor object."
        },
        {
          "info": {
            "name": "Delete a Vendor",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/vendors(:vendor_id)",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              },
              {
                "name": "vendor_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the vendor"
              }
            ]
          },
          "docs": "Deletes a vendor by ID."
        }
      ]
    }
  ],
  "bundled": true
}