Method PostAddNonSystemVendor

Summary

Add a new non-system vendor

Remarks

This allows a new vendor to submit their info to the city. Until it is approved by the city, they are considered a non-system vendor. Once they are approved, it will update their vendor number to a system vendor number.

The will email the NonSystemVendorNumber and a PIN number to the OrderEmail address, with which they can view their account info online.

After creating the vendor use PostAddCommSubComm to assign commodities to the vendor.

Input Parameters

NameTypeLengthDescription
vendorName System.String 30 [Required] Vendor name
vendorAddress1 System.String 25 [Required] Vendor address line 1
vendorAddress2 System.String 25 Vendor address line 2
vendorAddress3 System.String 25 Vendor address line 3
vendorCity System.String 20 [Required] Vendor city
vendorState System.String 2 [Required] Vendor state
vendorZip numeric 9 [Required] Vendor zip code
vendorPhone numeric 10 [Required] Vendor 10 digit phone number
vendorFax numeric 10 Vendor 10 digit fax number
vendorContactName System.String 25 [Required] contact person for vendor
vendorEmail System.String 50 [Required] Vendor email
busOrIndividual System.String 1 [Required] Business or Individual flag. B=Business, I=Individual
contactDateOfBirth mmddyyyy 8 contact person's Date of Birty in MMddyyyy format.
mailAddress1 System.String 25 Mail address line 1. Mailing address for payments, if different than vendor address
mailAddress2 System.String 25 Mail address line 2
mailAddress3 System.String 25 Mail address line 3
mailCity System.String 20 Mail city
mailState System.String 2 Mail state
mailZip numeric 9 Mail zip code
vendorTaxID numeric 9 Vendor Tax ID or SSN number.
taxIDType System.String 1 Tax ID Type. T=Tax ID, S=SSN Number
Received1099 yn 1 1099 received? Y/N
numberOfEmployees numeric 7 Number of employees
previousBusinessCode System.String 1 Previous business code. Blank=New vendor
termsDiscountPercent numeric 5 Discount percent for vendor. 2 digit decimal. I.e. 01000 = 10.00
termsNumDaysDiscDue numeric 3 Number of days discount is available
termsNumDaysNetDue numeric 3 Number of days net amount is due
termsDayofMonthDue numeric 2 Day of month due
shipVia System.String 20 Shipping instructions
freeOnBoard System.String 20 Free on board designation. Normally FOB origin or FOB destination
minorityStatusCode System.String 1 Minority status code. See GetMinorityCodes
creditLimit numeric 7 Credit limit for vendor purchases. No decimals
minimumPurchaseAmount numeric 5 Minimum purchase amount. No decimals
freeForm1 System.String 50 Freem form field 1
freeForm2 System.String 50 Freem form field 2

Example

POST http://localhost/FusionServices/v3/Naviline/ProductInventory/NonSystemVendorInfo

Return Values

NameDescription
ErrorCode 0000=Success
ErrorMessage Error message describing any error that occurred
CompanyNumber Company Number
NonSystemVendorNumber This is the temporary vendor number used until the city approves them as a system vendor.
Name Company name
AddressLine1 Vendor's address line 1. This is the address for Purchase Orders
AddressLine2 Vendor's address line 2
AddressLine3 Vendor's address line 3
City Vendor City
State Vendor State
ZipCode Vendor ZipCode
AreaCode Vendor's phone area code
PhoneNumber Vendor PhoneNumber
FaxNumber Vendor Fax Number
ContactName Vendor Contact Person
VendorYear Vendor's Date of birth (year)
VendorMonth Vendor's Date of birth (month)
VendorDay Vendor's Date of birth (day)
VendorAddressLine1 Vendor's address line 1. This is the address for Bid Information
VendorAddressLine2 Vendor's address line 2
VendorAddressLine3 Vendor's address line 3
VendorCity Vendor City
BDST Vendor State
VendorZipCode Vendor ZipCode
VendorAreaCode Vendor's phone area code
BDPH Vendor PhoneNumber
VendorFaxNumber Vendor Fax Number
RemitAddressLine1 Vendor's mail address line 1. This is the address for Change Remittance
RemitAddressLine2 Vendor's mail address line 2
RemitAddressLine3 Vendor's mail address line 3
RemitCIty Vendor City
RemitState Vendor State
RemitZipCode Vendor ZipCode
TermsDiscountPercent Discount percent for vendor. 2 digit decimal. I.e. 01000 = 10.00
TermsNumDaysDiscDue Number of days discount is available
TermsNumDaysNetDue Number of days net amount is due
ShipVia Shipping instructions
FreeOnBoard Free on board designation. Normally FOB origin or FOB destination
MinorityStatusCode Minority status code. N=None, H=Hispanic
CreditLimit Credit limit for vendor purchases. No decimals
MinimumPurchaseAmount Minimum purchase amount. No decimals
TermsDayofMonthDue Day of month due
VendorTaxID Vendor's Federal Tax ID or SSN number for an individual
TaxIDType T=VendorTaxID is Federal Tax ID S=VendorTaxID is SSN number for an individual
TaxIDSuffix
NumberOfEmployees Number of employees
CERCInfo
OrderEmail Vendor's email
BidEmail Vendor's email for Bid Information
FreeForm1 Free form field 1
FreeForm2 Free form field 2
BusOrIndividual B=Business, I=Individual
1099S? 1099 received. Y=Yes, N=No

Sample Responses

Sample Code

using System.Net;
using Newtonsoft.Json.Linq;

public void MethodName(parms)
{
   string uri = "http://localhost/FusionServices/v3/Naviline/ProductInventory/AddNonSystemVendor";
   System.Collections.Specialized.NameValueCollection postParms = 
     new System.Collections.Specialized.NameValueCollection(); 
   // Set paramater values
   postParms.Add("vendorName",System.Web.HttpUtility.UrlEncode("Fusion Electronics"));
   postParms.Add("vendorAddress1",System.Web.HttpUtility.UrlEncode("1001 Business Center Lane"));
   postParms.Add("vendorAddress2",System.Web.HttpUtility.UrlEncode("Suite 201"));
   postParms.Add("vendorCity",System.Web.HttpUtility.UrlEncode("Lake Mary"));
   postParms.Add("vendorState",System.Web.HttpUtility.UrlEncode("FL"));
   postParms.Add("vendorZip",System.Web.HttpUtility.UrlEncode("32746"));
   postParms.Add("vendorPhone",System.Web.HttpUtility.UrlEncode("3439890989"));
   postParms.Add("vendorContactName",System.Web.HttpUtility.UrlEncode("Ron Jennings"));
   postParms.Add("vendorEmail",System.Web.HttpUtility.UrlEncode("final.builder@myemail.com"));
   postParms.Add("busOrIndividual",System.Web.HttpUtility.UrlEncode("B"));
   postParms.Add("mailAddress1",System.Web.HttpUtility.UrlEncode("107 Fairy Ave"));
   postParms.Add("mailCity",System.Web.HttpUtility.UrlEncode("Lufkin"));
   postParms.Add("mailState",System.Web.HttpUtility.UrlEncode("TX"));
   postParms.Add("mailZip",System.Web.HttpUtility.UrlEncode("75901"));
   postParms.Add("vendorTaxID",System.Web.HttpUtility.UrlEncode("847596834"));
   postParms.Add("taxIDType",System.Web.HttpUtility.UrlEncode("T"));
   postParms.Add("Received1099",System.Web.HttpUtility.UrlEncode("Y"));
   postParms.Add("contactDateOfBirth",System.Web.HttpUtility.UrlEncode("03271970"));

   WebClient req = new WebClient();
   wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
   wc.Headers.Set("X-APPID", "YOURID");
   wc.Headers.Set("X-APPKEY", "YOURKEY");

   byte[] responseBytes = wc.UploadValues(new Uri(uri), "POST", postParms);
   string stringResult = Encoding.UTF8.GetString(responseBytes); 
   JObject response = JObject.Parse(stringResult);
   string error = response["OutputParms"]["ErrorCode"].ToString();
   if (error == "0000")
   {
         // TODO - YOUR CODE HERE
   }
}

C# Razor MVC Sample Code

using System;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Collections.Specialized;
using FusionServiceHelper.Models;

// NOTE: Use the namespace generated when you add the class, so that it is correct.
namespace FusionRazor.Models
{
   public class PostAddNonSystemVendor
   {
       // Add property for each input param in order to map a field to it
       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,30}$).*", ErrorMessage = "Must be 30 characters or less. ")]
       public string vendorName{get; set;}

       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
       public string vendorAddress1{get; set;}

       [RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
       public string vendorAddress2{get; set;}

       [RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
       public string vendorAddress3{get; set;}

       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,20}$).*", ErrorMessage = "Must be 20 characters or less. ")]
       public string vendorCity{get; set;}

       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
       public string vendorState{get; set;}

       [Required(ErrorMessage = "Required")]
       [RegularExpression("[0-9]{0,9}", ErrorMessage = "Numeric values only. Must be 9 digits or less. ")]
       public string vendorZip{get; set;}

       [Required(ErrorMessage = "Required")]
       [RegularExpression("[0-9]{0,10}", ErrorMessage = "Numeric values only. Must be 10 digits or less. ")]
       public string vendorPhone{get; set;}

       [RegularExpression("[0-9]{0,10}", ErrorMessage = "Numeric values only. Must be 10 digits or less. ")]
       public string vendorFax{get; set;}

       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
       public string vendorContactName{get; set;}

       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,50}$).*", ErrorMessage = "Must be 50 characters or less. ")]
       public string vendorEmail{get; set;}

       [Required(ErrorMessage = "Required")]
       [RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
       public string busOrIndividual{get; set;}

       [RegularExpression("^(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])(19|20)\\d\\d$", ErrorMessage = "Date values only. Format: MMDDYYYY")]
       public string contactDateOfBirth{get; set;}

       [RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
       public string mailAddress1{get; set;}

       [RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
       public string mailAddress2{get; set;}

       [RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
       public string mailAddress3{get; set;}

       [RegularExpression("^(?=.{0,20}$).*", ErrorMessage = "Must be 20 characters or less. ")]
       public string mailCity{get; set;}

       [RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
       public string mailState{get; set;}

       [RegularExpression("[0-9]{0,9}", ErrorMessage = "Numeric values only. Must be 9 digits or less. ")]
       public string mailZip{get; set;}

       [RegularExpression("[0-9]{0,9}", ErrorMessage = "Numeric values only. Must be 9 digits or less. ")]
       public string vendorTaxID{get; set;}

       [RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
       public string taxIDType{get; set;}

       [RegularExpression("^[YN]{0,1}$", ErrorMessage = "Must be Y or N.")]
       public string Received1099{get; set;}

       [RegularExpression("[0-9]{0,7}", ErrorMessage = "Numeric values only. Must be 7 digits or less. ")]
       public string numberOfEmployees{get; set;}

       [RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
       public string previousBusinessCode{get; set;}

       [RegularExpression("[0-9]{0,5}", ErrorMessage = "Numeric values only. Must be 5 digits or less. ")]
       public string termsDiscountPercent{get; set;}

       [RegularExpression("[0-9]{0,3}", ErrorMessage = "Numeric values only. Must be 3 digits or less. ")]
       public string termsNumDaysDiscDue{get; set;}

       [RegularExpression("[0-9]{0,3}", ErrorMessage = "Numeric values only. Must be 3 digits or less. ")]
       public string termsNumDaysNetDue{get; set;}

       [RegularExpression("[0-9]{0,2}", ErrorMessage = "Numeric values only. Must be 2 digits or less. ")]
       public string termsDayofMonthDue{get; set;}

       [RegularExpression("^(?=.{0,20}$).*", ErrorMessage = "Must be 20 characters or less. ")]
       public string shipVia{get; set;}

       [RegularExpression("^(?=.{0,20}$).*", ErrorMessage = "Must be 20 characters or less. ")]
       public string freeOnBoard{get; set;}

       [RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
       public string minorityStatusCode{get; set;}

       [RegularExpression("[0-9]{0,7}", ErrorMessage = "Numeric values only. Must be 7 digits or less. ")]
       public string creditLimit{get; set;}

       [RegularExpression("[0-9]{0,5}", ErrorMessage = "Numeric values only. Must be 5 digits or less. ")]
       public string minimumPurchaseAmount{get; set;}

       [RegularExpression("^(?=.{0,50}$).*", ErrorMessage = "Must be 50 characters or less. ")]
       public string freeForm1{get; set;}

       [RegularExpression("^(?=.{0,50}$).*", ErrorMessage = "Must be 50 characters or less. ")]
       public string freeForm2{get; set;}

       public PostAddNonSystemVendor()
       {
           //Set any defaults here
       }
   }
}
@* NOTE: Use Add->View to add the View. *@
@* NOTE: Check the 'Create strongly-typed view checkbox, and select the PostAddNonSystemVendor class. *@
@* NOTE: Select Edit as the Scaffold template. *@
@* NOTE: Use the @model line that is generated at the top.  Replace the rest with the lines below.
@model FusionRazor.Models.PostAddNonSystemVendor

@{
   ViewBag.Title = "PostAddNonSystemVendor";
}

<h2>PostAddNonSystemVendor</h2>
@using (Html.BeginForm()) {
   @Html.AntiForgeryToken()
   @Html.ValidationSummary(true)
   <fieldset>
   <legend>PostAddNonSystemVendor</legend>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorName)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorName)
           @Html.ValidationMessageFor(model => model.vendorName)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorAddress1)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorAddress1)
           @Html.ValidationMessageFor(model => model.vendorAddress1)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorAddress2)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorAddress2)
           @Html.ValidationMessageFor(model => model.vendorAddress2)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorAddress3)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorAddress3)
           @Html.ValidationMessageFor(model => model.vendorAddress3)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorCity)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorCity)
           @Html.ValidationMessageFor(model => model.vendorCity)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorState)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorState)
           @Html.ValidationMessageFor(model => model.vendorState)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorZip)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorZip)
           @Html.ValidationMessageFor(model => model.vendorZip)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorPhone)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorPhone)
           @Html.ValidationMessageFor(model => model.vendorPhone)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorFax)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorFax)
           @Html.ValidationMessageFor(model => model.vendorFax)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorContactName)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorContactName)
           @Html.ValidationMessageFor(model => model.vendorContactName)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorEmail)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorEmail)
           @Html.ValidationMessageFor(model => model.vendorEmail)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.busOrIndividual)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.busOrIndividual)
           @Html.ValidationMessageFor(model => model.busOrIndividual)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.contactDateOfBirth)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.contactDateOfBirth)
           @Html.ValidationMessageFor(model => model.contactDateOfBirth)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.mailAddress1)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.mailAddress1)
           @Html.ValidationMessageFor(model => model.mailAddress1)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.mailAddress2)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.mailAddress2)
           @Html.ValidationMessageFor(model => model.mailAddress2)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.mailAddress3)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.mailAddress3)
           @Html.ValidationMessageFor(model => model.mailAddress3)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.mailCity)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.mailCity)
           @Html.ValidationMessageFor(model => model.mailCity)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.mailState)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.mailState)
           @Html.ValidationMessageFor(model => model.mailState)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.mailZip)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.mailZip)
           @Html.ValidationMessageFor(model => model.mailZip)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.vendorTaxID)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.vendorTaxID)
           @Html.ValidationMessageFor(model => model.vendorTaxID)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.taxIDType)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.taxIDType)
           @Html.ValidationMessageFor(model => model.taxIDType)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.Received1099)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.Received1099)
           @Html.ValidationMessageFor(model => model.Received1099)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.numberOfEmployees)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.numberOfEmployees)
           @Html.ValidationMessageFor(model => model.numberOfEmployees)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.previousBusinessCode)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.previousBusinessCode)
           @Html.ValidationMessageFor(model => model.previousBusinessCode)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.termsDiscountPercent)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.termsDiscountPercent)
           @Html.ValidationMessageFor(model => model.termsDiscountPercent)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.termsNumDaysDiscDue)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.termsNumDaysDiscDue)
           @Html.ValidationMessageFor(model => model.termsNumDaysDiscDue)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.termsNumDaysNetDue)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.termsNumDaysNetDue)
           @Html.ValidationMessageFor(model => model.termsNumDaysNetDue)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.termsDayofMonthDue)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.termsDayofMonthDue)
           @Html.ValidationMessageFor(model => model.termsDayofMonthDue)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.shipVia)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.shipVia)
           @Html.ValidationMessageFor(model => model.shipVia)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.freeOnBoard)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.freeOnBoard)
           @Html.ValidationMessageFor(model => model.freeOnBoard)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.minorityStatusCode)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.minorityStatusCode)
           @Html.ValidationMessageFor(model => model.minorityStatusCode)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.creditLimit)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.creditLimit)
           @Html.ValidationMessageFor(model => model.creditLimit)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.minimumPurchaseAmount)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.minimumPurchaseAmount)
           @Html.ValidationMessageFor(model => model.minimumPurchaseAmount)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.freeForm1)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.freeForm1)
           @Html.ValidationMessageFor(model => model.freeForm1)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.freeForm2)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.freeForm2)
           @Html.ValidationMessageFor(model => model.freeForm2)
       </div>
       <p>
       <input type="submit" value="Submit"/>
       </p>
   </fieldset>

}

@section Scripts {
   @Scripts.Render("~/bundles/jqueryval")
}
using System;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FusionServiceHelper.Models;

// NOTE: Replace 'MyController' with the name of your controller.

// 
// GET: /MyController/PostAddNonSystemVendor
public ActionResult PostAddNonSystemVendor()
{
   // Create a new instance of the model to pick up any default values.
   PostAddNonSystemVendor model =  new PostAddNonSystemVendor();

   // pass model to set to default values
   // NOTE: Change 'MyFolderPath' to the path to the .cshtml file.
   return View("~/Views/MyFolderPath/PostAddNonSystemVendor.cshtml", model);
}

// 
// POST: /MyController/PostAddNonSystemVendor
[HttpPost]
public ActionResult PostAddNonSystemVendor(FormCollection collection)
{
   string url = "v3/Naviline/ProductInventory/NonSystemVendorInfo";
   // Get the value from each input field
   NameValueCollection inputParms = new NameValueCollection();
   inputParms.Add("vendorName", collection["vendorName"]);
   inputParms.Add("vendorAddress1", collection["vendorAddress1"]);
   inputParms.Add("vendorAddress2", collection["vendorAddress2"]);
   inputParms.Add("vendorAddress3", collection["vendorAddress3"]);
   inputParms.Add("vendorCity", collection["vendorCity"]);
   inputParms.Add("vendorState", collection["vendorState"]);
   inputParms.Add("vendorZip", collection["vendorZip"]);
   inputParms.Add("vendorPhone", collection["vendorPhone"]);
   inputParms.Add("vendorFax", collection["vendorFax"]);
   inputParms.Add("vendorContactName", collection["vendorContactName"]);
   inputParms.Add("vendorEmail", collection["vendorEmail"]);
   inputParms.Add("busOrIndividual", collection["busOrIndividual"]);
   inputParms.Add("contactDateOfBirth", collection["contactDateOfBirth"]);
   inputParms.Add("mailAddress1", collection["mailAddress1"]);
   inputParms.Add("mailAddress2", collection["mailAddress2"]);
   inputParms.Add("mailAddress3", collection["mailAddress3"]);
   inputParms.Add("mailCity", collection["mailCity"]);
   inputParms.Add("mailState", collection["mailState"]);
   inputParms.Add("mailZip", collection["mailZip"]);
   inputParms.Add("vendorTaxID", collection["vendorTaxID"]);
   inputParms.Add("taxIDType", collection["taxIDType"]);
   inputParms.Add("Received1099", collection["Received1099"]);
   inputParms.Add("numberOfEmployees", collection["numberOfEmployees"]);
   inputParms.Add("previousBusinessCode", collection["previousBusinessCode"]);
   inputParms.Add("termsDiscountPercent", collection["termsDiscountPercent"]);
   inputParms.Add("termsNumDaysDiscDue", collection["termsNumDaysDiscDue"]);
   inputParms.Add("termsNumDaysNetDue", collection["termsNumDaysNetDue"]);
   inputParms.Add("termsDayofMonthDue", collection["termsDayofMonthDue"]);
   inputParms.Add("shipVia", collection["shipVia"]);
   inputParms.Add("freeOnBoard", collection["freeOnBoard"]);
   inputParms.Add("minorityStatusCode", collection["minorityStatusCode"]);
   inputParms.Add("creditLimit", collection["creditLimit"]);
   inputParms.Add("minimumPurchaseAmount", collection["minimumPurchaseAmount"]);
   inputParms.Add("freeForm1", collection["freeForm1"]);
   inputParms.Add("freeForm2", collection["freeForm2"]);

   try
   {
       // Send the request
       FusionServiceRequest request = new FusionServiceRequest();
       FusionServiceResult result = request.Post(url, inputParms);

       return View("Result", result);
   }
   catch(Exception e)
   {
       HandleErrorInfo info = new HandleErrorInfo(e, "MyController", "PostAddNonSystemVendor");
       return View("Error", info);
   }
}