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

Ship-to Address API

Overview

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

API Details

  • Publisher: smart
  • API Group: wms
  • API Version: v2.0
  • Entity Name: shipToAddress
  • Entity Set Name: shipToAddresses
  • Source Table: Ship-to Address
  • ODataKeyFields: Customer No., Code

Fields

The following fields are exposed in the API:

Field NameSource FieldRequiredDescription
CustomerNoShip-to Address."Customer No."YesCustomer number associated with the address.
CodeShip-to Address."Code"YesUnique code for the ship-to address.
AddressShip-to Address.AddressNoPrimary address line.
Address2Ship-to Address."Address 2"NoSecondary address line.
CityShip-to Address.CityNoCity of the ship-to address.
ContactShip-to Address.ContactNoContact person for the ship-to address.
PhoneNoShip-to Address."Phone No."NoPhone number associated with the address.
ShippingAgentCodeShip-to Address."Shipping Agent Code"NoCode of the shipping agent.
LocationCodeShip-to Address."Location Code"NoLocation code for the address.
PostCodeShip-to Address."Post Code"NoPostal code of the address.
CountyShip-to Address.CountyNoCounty of the address.
EMailShip-to Address."E-Mail"NoEmail address associated with the contact.
ShippingAgentServiceCodeShip-to Address."Shipping Agent Service Code"NoService code of the shipping agent.
ServiceZoneCodeShip-to Address."Service Zone Code"NoService zone code for the address.
LongitudeShip-to Address."SMA Longitude"NoLongitude of the address.
LatitudeShip-to Address."SMA Latitude"NoLatitude of the address.
DeliveryZoneCodeShip-to Address."SMA Delivery Zone Code"NoDelivery zone code for the address.

Example Usage

Create a New Ship-to Address

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

{
"CustomerNo": "CUST001",
"Code": "ADDR001",
"Address": "123 Main Street",
"City": "Sample City",
"PostCode": "12345"
}

Retrieve a Ship-to Address

GET host/instance/api/smart/wms/v2.0/companies(companyId)/shipToAddresses('CUST001','ADDR001')

Update a Ship-to Address

PATCH host/instance/api/smart/wms/v2.0/companies(companyId)/shipToAddresses('CUST001','ADDR001')
Content-Type: application/json

{
"Address": "456 Updated Street",
"City": "Updated City"
}
© 2008 - 2026 SMART business