Update delivery address for company

Updates a delivery address for the specified Company.

Request
query Parameters
customerId
required
integer <int32>

The internal id of a Customer belonging to the Company.

updatedBy
required
integer <int32>

Account internal id of current user.

cultureCode
string

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

includeCompanies
string

Include full company data, if any, with the customer. Otherwise only primary company, if any, is included. Default is true.

Request Body schema:

The Address to update. The address internal id must have a valid id specified.

Id
integer or null <int32>

The internal Id of the Address. When creating a new Address leave this blank as Storm will generate the Id.

CareOf
string

The CareOf of the Address. MaxLength: 100

Line1
string

The first address line of the Address. MaxLength: 255

Line2
string

The second address line of the Address. MaxLength: 255

Zip
string

The zip code of the Address. MaxLength: 50

City
string

The City of the Address. MaxLength: 50

CountryId
integer <int32>

The internal Id for the country associated to the Address. When creating or updating Country on an Address either specify the CountryId or just the Country string. If Id is specified it will be used to resolve the Name. If none is specified the default for the Application will be used.

Country
string

The country name of the Address. When creating or updating Country on an Address either specify the CountryId or just the Country string. If Name is specified it will be used to resolve the Name and Id. Name should then be specified as Country.Code since Names are culture specific. If none is specified the default for the Application will be used. MaxLength: 50

Region
string

The Region of the Address. MaxLength: 50

IsValidated
boolean

Indicates if the address had been validated. It is up to the Application to validate addresses. Use normal address-methods to update this value.

GlobalLocationNo
string

The Global Location Number (GLN) is part of the GS1 systems of standards. It is a simple tool used to identify a location and can identify locations uniquely where required. This is only used for invoice addresses. MaxLength: 50

ShippingPhoneNumber
string

Phone number for shipping address. Only applicable in shipping addresses. MaxLength: 50

Responses
200

Success

400

Bad Request

Key: CompanyMissing. Gets raised if the company does not exist.

500

Internal Server Error

post/CustomerService.svc/rest/UpdateCompanyDeliveryAddress
Request samples
{
  • "Id": 0,
  • "CareOf": "string",
  • "Line1": "string",
  • "Line2": "string",
  • "Zip": "string",
  • "City": "string",
  • "CountryId": 0,
  • "Country": "string",
  • "Region": "string",
  • "IsValidated": true,
  • "GlobalLocationNo": "string",
  • "ShippingPhoneNumber": "string"
}
Response samples
{
  • "Id": 0,
  • "Key": "string",
  • "Code": "string",
  • "Email": "string",
  • "SSN": "string",
  • "FirstName": "string",
  • "LastName": "string",
  • "Phone": "string",
  • "CellPhone": "string",
  • "ReferId": 0,
  • "ReferUrl": "string",
  • "Account": {
    },
  • "Companies": [
    ],
  • "DeliveryAddresses": [
    ],
  • "InvoiceAddress": {
    },
  • "Flags": [
    ],
  • "UseInvoiceAddressAsDeliveryAddress": true,
  • "Info": [
    ],
  • "PricelistIds": [
    ],
  • "CrmId": "string",
  • "IsActive": true,
  • "Created": "2019-08-24T14:15:22Z",
  • "Updated": "2019-08-24T14:15:22Z"
}