POST v1/Vendor/VendorContactInsert
Allows users to insert one or many vendor contacts.
This is secure method and requires below attributes in header
Request Information
URI Parameters
None.
Body Parameters
Collection of VendorContactRequestName | Description | Type | Additional information |
---|---|---|---|
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
[ { "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
Response Information
Response Formats
application/json, text/json
[ { "ContactId": 1 }, { "ContactId": 1 } ]
application/xml, text/xml
<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>