POST v1/Vendor/VendorContactInsert

Request Information

URI Parameters

None.

Body Parameters

Collection of VendorContactRequest
NameDescriptionTypeAdditional information
VendorId

integer

Required

Salutation

string

None.

FirstName

string

None.

MiddleName

string

None.

LastName

string

None.

Suffix

string

None.

Title

string

None.

VendorName

string

None.

Active

boolean

None.

ContactTypeId

integer

None.

Comment

string

None.

Address1

string

None.

Address2

string

None.

Address3

string

None.

City

string

None.

CountryCode

string

None.

ZipCode

string

None.

StateCode

string

None.

BusinessPhone

string

None.

BusinessPhoneExtension

string

None.

OtherPhone

string

None.

OtherPhoneExtension

string

None.

Fax

string

None.

FaxExtension

string

None.

BusinessEmail

string

None.

OtherEmail

string

None.

Request Formats

application/json, text/json

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

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

Resource Description

Collection of VendorContactResponse
NameDescriptionTypeAdditional information
ContactId

integer

None.

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>