Vendor Contact, Create
Creates a new Vendor Contact using the supplied data and returns the details of the created Vendor Contact.
URL
/api/vendor-contact-create
Request Method
POST
Expandable Program
Vendor Contact Editor (POECT)
Required Fields
VENDOR_ID
VENDOR_CONTACT
AUTH_TOKEN
VENDOR_CONTACT
AUTH_TOKEN
Auth Token
This API call requires an Authentication Token ("Auth Token") for the required field AUTH_TOKEN. Auth Tokens are obtained from Auth Token, Get.
Example Request JSON
{
"VENDOR_ID": "XYZCORP",
"VENDOR_CONTACT": "SGREEN",
"FIRST_NAME": "Sarah",
"LAST_NAME": "Green",
"PHONE_NO": "212-123-4567",
"NOTES": "Notes can be up to 32,765 characters long.",
"ATTACHMENTS": "http://www.expandable.com/|C:\\Expandable.docx",
"AUTH_TOKEN": ""
}
Full Request JSON
{
"VENDOR_ID": "",
"VENDOR_CONTACT": "",
"CONTACT_STATUS": "",
"FIRST_NAME": "",
"LAST_NAME": "",
"INITIAL": "",
"TITLE": "",
"MAIL_STOP": "",
"ADDRESS_1": "",
"ADDRESS_2": "",
"ADDRESS_3": "",
"CITY": "",
"STATE": "",
"ZIP_CODE": "",
"COUNTRY": "",
"PHONE_NO": "",
"FAX_NO": "",
"CELL_PHONE_NO": "",
"PAGER_NO": "",
"E_MAIL": "",
"E_MAIL_2": "",
"WEB_ADDRESS": "",
"POFCT_USER_1": "",
"POFCT_USER_2": "",
"POFCT_USER_3": "",
"POFCT_USER_4": "",
"POFCT_USER_5": "",
"POFCT_USER_6": "",
"POFCT_USER_7": "",
"POFCT_USER_8": "",
"POFCT_USER_9": "",
"POFCT_USER_10": "",
"POFCT_USER_11": "",
"POFCT_USER_12": "",
"POFCT_USER_13": "",
"POFCT_USER_14": "",
"POFCT_USER_15": "",
"POFCT_USER_16": "",
"NOTES": "",
"ATTACHMENTS": "",
"AUTH_TOKEN": ""
}
Success Response
Returned HTTP status indicates success:
200/OK
Returned JSON contains the successfully created Vendor Contact:
200/OK
Returned JSON contains the successfully created Vendor Contact:
{
"VENDOR_ID": "",
"VENDOR_CONTACT": "",
"CONTACT_STATUS": "",
"FIRST_NAME": "",
"LAST_NAME": "",
"INITIAL": "",
"TITLE": "",
"MAIL_STOP": "",
"ADDRESS_1": "",
"ADDRESS_2": "",
"ADDRESS_3": "",
"CITY": "",
"STATE": "",
"ZIP_CODE": "",
"COUNTRY": "",
"PHONE_NO": "",
"FAX_NO": "",
"CELL_PHONE_NO": "",
"PAGER_NO": "",
"E_MAIL": "",
"E_MAIL_2": "",
"WEB_ADDRESS": "",
"POFCT_USER_1": "",
"POFCT_USER_2": "",
"POFCT_USER_3": "",
"POFCT_USER_4": "",
"POFCT_USER_5": "",
"POFCT_USER_6": "",
"POFCT_USER_7": "",
"POFCT_USER_8": "",
"POFCT_USER_9": "",
"POFCT_USER_10": "",
"POFCT_USER_11": "",
"POFCT_USER_12": "",
"POFCT_USER_13": "",
"POFCT_USER_14": "",
"POFCT_USER_15": "",
"POFCT_USER_16": "",
"CREATED_BY": "",
"DATE_CREATED": "",
"MODIFIED_BY": "",
"DATE_MODIFIED": "",
"OPERATOR_ID": "",
"DATE_LAST_UPDT": "",
"TIME_LAST_UPDT": "",
"NOTES": "",
"ATTACHMENTS": ""
}
Failure Response
Returned HTTP status indicates failure:
400/Request JSON is invalid.
401/Auth Token was not provided.
401/Auth Token is malformed.
401/Auth Token login failure.
405/Request method must be POST.
500/(Error Message)
Returned JSON contains error information for the failed Vendor Contact creation:
400/Request JSON is invalid.
401/Auth Token was not provided.
401/Auth Token is malformed.
401/Auth Token login failure.
405/Request method must be POST.
500/(Error Message)
Returned JSON contains error information for the failed Vendor Contact creation:
{
"MESSAGE": "",
"MESSAGE_CODE": ""
}
