Перейти до основного вмісту

Vendor API

Overview​

The WMS Vendors API is a Business Central API page designed to manage vendor data. This API allows external systems to interact with vendor records, providing functionality for creating, reading, and updating vendor information.

API Details​

  • Publisher: smart
  • API Group: wms
  • API Version: v2.0
  • Entity Name: vendor
  • Entity Set Name: vendors
  • Source Table: Vendor
  • ODataKeyFields: No

Fields​

The following fields are exposed in the API:

Field NameSource FieldRequiredDescription
NoVendor."No."YesUnique identifier for the vendor.
NameVendor.NameYesName of the vendor.
AddressVendor.AddressNoAddress of the vendor.
PhoneNoVendor."Phone No."NoPhone number of the vendor.
GenBusPostingGroupVendor."Gen. Bus. Posting Group"NoGeneral business posting group.
VatBusPostingGroupVendor."VAT Bus. Posting Group"NoVAT business posting group.
VendorPostingGroupVendor."Vendor Posting Group"NoVendor posting group.

Notes​

  • The WMS Connector Setup record must exist; otherwise, a vendor cannot be created through the API.
  • When a vendor is created, the template from the Vendor Template field of the WMS Connector Setup page fills only the posting groups that are not specified in the request. If the template is not specified or does not exist, the vendor is created without it.
  • The template is not applied when a vendor is updated.

Example Usage​

Create a New Vendor​

POST host/instance/api/smart/wms/v2.0/companies(companyId)/vendors
Content-Type: application/json

{
"No": "VEND001",
"Name": "Sample Vendor",
"Address": "123 Vendor Street",
"PhoneNo": "1234567890",
"GenBusPostingGroup": "DOMESTIC",
"VatBusPostingGroup": "STANDARD",
"VendorPostingGroup": "SUPPLIER"
}

Retrieve a Vendor​

GET host/instance/api/smart/wms/v2.0/companies(companyId)/vendors('VEND001')

Update a Vendor​

PATCH host/instance/api/smart/wms/v2.0/companies(companyId)/vendors('VEND001')
Content-Type: application/json

{
"Name": "Updated Vendor Name"
}
© 2008 - 2026 SMART business