POST v1/Vendor/VendorContactUpdate

Allows users to update one or many vendor contacts.

This is secure method and requires below attributes in header

Authorization: Midnight Authorize Token

Request Information

URI Parameters

None.

Body Parameters

Collection of VendorContactUpdateRequest
NameDescriptionTypeAdditional information
ContactId

Must be a valid vendor contact Id

integer

Required

VendorId

Required. Must be an active Vendor Id

integer

Required

Salutation

Provide at least one of Salutation, FirstName, LastName

string

None.

FirstName

Provide at least one of Salutation, FirstName, LastName

string

None.

MiddleName

Provide the MiddleName

string

None.

LastName

Provide at least one of Salutation, FirstName, LastName

string

None.

Suffix

Provide the Suffix

string

None.

Title

Provide the Title

string

None.

VendorName

Provide the VendorName

string

None.

Active

Provide the Active

boolean

None.

ContactTypeId

Must be an existing Contact Type

integer

None.

Comment

Provide the Comment

string

None.

Address1

Provide the Address1

string

None.

Address2

Provide the Address2

string

None.

Address3

Provide the Address3

string

None.

City

Provide the City

string

None.

CountryCode

Must be an existing country code

string

None.

ZipCode

Provide the ZipCode

string

None.

StateCode

Provide the StateCode

string

None.

BusinessPhone

Must be a numeric value and not be greater than ten digits.

string

None.

BusinessPhoneExtension

Provide the BusinessPhoneExtension

string

None.

OtherPhone

Must be a numeric value and not be greater than ten digits.

string

None.

OtherPhoneExtension

Provide the OtherPhoneExtension

string

None.

Fax

Must be a numeric value and not be greater than ten digits.

string

None.

FaxExtension

Provide the FaxExtension

string

None.

BusinessEmail

Must be a valid email

string

None.

OtherEmail

Must be a valid email

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ContactId": 1,
    "VendorId": 2,
    "Salutation": "sample string 3",
    "FirstName": "sample string 4",
    "MiddleName": "sample string 5",
    "LastName": "sample string 6",
    "Suffix": "sample string 7",
    "Title": "sample string 8",
    "VendorName": "sample string 9",
    "Active": true,
    "ContactTypeId": 1,
    "Comment": "sample string 10",
    "Address1": "sample string 11",
    "Address2": "sample string 12",
    "Address3": "sample string 13",
    "City": "sample string 14",
    "CountryCode": "sample string 15",
    "ZipCode": "sample string 16",
    "StateCode": "sample string 17",
    "BusinessPhone": "sample string 18",
    "BusinessPhoneExtension": "sample string 19",
    "OtherPhone": "sample string 20",
    "OtherPhoneExtension": "sample string 21",
    "Fax": "sample string 22",
    "FaxExtension": "sample string 23",
    "BusinessEmail": "sample string 24",
    "OtherEmail": "sample string 25"
  },
  {
    "ContactId": 1,
    "VendorId": 2,
    "Salutation": "sample string 3",
    "FirstName": "sample string 4",
    "MiddleName": "sample string 5",
    "LastName": "sample string 6",
    "Suffix": "sample string 7",
    "Title": "sample string 8",
    "VendorName": "sample string 9",
    "Active": true,
    "ContactTypeId": 1,
    "Comment": "sample string 10",
    "Address1": "sample string 11",
    "Address2": "sample string 12",
    "Address3": "sample string 13",
    "City": "sample string 14",
    "CountryCode": "sample string 15",
    "ZipCode": "sample string 16",
    "StateCode": "sample string 17",
    "BusinessPhone": "sample string 18",
    "BusinessPhoneExtension": "sample string 19",
    "OtherPhone": "sample string 20",
    "OtherPhoneExtension": "sample string 21",
    "Fax": "sample string 22",
    "FaxExtension": "sample string 23",
    "BusinessEmail": "sample string 24",
    "OtherEmail": "sample string 25"
  }
]

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IList`1'.

Response Information

Response Formats

application/json, text/json

Sample:
[
  {
    "ContactId": 1
  },
  {
    "ContactId": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfVendorContactResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <VendorContactResponse>
    <ContactId>1</ContactId>
  </VendorContactResponse>
  <VendorContactResponse>
    <ContactId>1</ContactId>
  </VendorContactResponse>
</ArrayOfVendorContactResponse>