Method PostValuation

Summary

Return Valuation

Remarks

Returns the total tax valuation, optionally including individual assessment/exemption valuations.

Input Parameters

NameTypeLengthDescription
taxID numeric 9 Tax Account ID
taxYear numeric 4 Tax Year. Get years available from PostHistoryYears
nonTotal yn 1 Y/N Y=returns total amount only. N=return rows for each assessment/exemption. Defaults to Y.
rows numeric 4 Number of rows to return. Used for paging
pageNumber numeric 5 Page Number. Used for paging

Example

POST http://localhost/FusionServices/v3/Naviline/Tax/Valuation

Return Values

NameDescription
DESCR Description for assessment/exemption
VALUEA Amount of the assessment/exemption
PageNumber Page Number
Rows Number of rows returned
GrossValue Gross Value Amount
Examption Exemption Amount
NetValue Net Value Amount
More?YN More reocrds Y/N
ErrorCode 0000=Success
ErrorMessage

Sample Responses

Sample Code

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

public void MethodName(parms)
{
   string uri = "http://localhost/FusionServices/v3/Naviline/Tax/Valuation";
   System.Collections.Specialized.NameValueCollection postParms = 
     new System.Collections.Specialized.NameValueCollection(); 
   // Set paramater values
   postParms.Add("taxID",System.Web.HttpUtility.UrlEncode("290359"));
   postParms.Add("taxYear",System.Web.HttpUtility.UrlEncode("2015"));
   postParms.Add("nonTotal",System.Web.HttpUtility.UrlEncode("N"));

   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")
   {
        JArray jRows = (JArray)response["Rows"];
        foreach (JObject row in jRows)
        {
             string DESCR = row["DESCR"].ToString();
             string VALUEA = row["VALUEA"].ToString();
             // 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 PostValuation
   {
       // Add property for each input param in order to map a field to it
       [RegularExpression("[0-9]{0,9}", ErrorMessage = "Numeric values only. Must be 9 digits or less. ")]
       public string taxID{get; set;}

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

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

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

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

       public PostValuation()
       {
           //Set any defaults here
       }
   }
}
@* NOTE: Use Add->View to add the View. *@
@* NOTE: Check the 'Create strongly-typed view checkbox, and select the PostValuation 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.PostValuation

@{
   ViewBag.Title = "PostValuation";
}

<h2>PostValuation</h2>
@using (Html.BeginForm()) {
   @Html.AntiForgeryToken()
   @Html.ValidationSummary(true)
   <fieldset>
   <legend>PostValuation</legend>
       <div class="editor-label">
           @Html.LabelFor(model => model.taxID)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.taxID)
           @Html.ValidationMessageFor(model => model.taxID)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.taxYear)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.taxYear)
           @Html.ValidationMessageFor(model => model.taxYear)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.nonTotal)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.nonTotal)
           @Html.ValidationMessageFor(model => model.nonTotal)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.rows)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.rows)
           @Html.ValidationMessageFor(model => model.rows)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.pageNumber)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.pageNumber)
           @Html.ValidationMessageFor(model => model.pageNumber)
       </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/PostValuation
public ActionResult PostValuation()
{
   // Create a new instance of the model to pick up any default values.
   PostValuation model =  new PostValuation();

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

// 
// POST: /MyController/PostValuation
[HttpPost]
public ActionResult PostValuation(FormCollection collection)
{
   string url = "v3/Naviline/Tax/Valuation";
   // Get the value from each input field
   NameValueCollection inputParms = new NameValueCollection();
   inputParms.Add("taxID", collection["taxID"]);
   inputParms.Add("taxYear", collection["taxYear"]);
   inputParms.Add("nonTotal", collection["nonTotal"]);
   inputParms.Add("rows", collection["rows"]);
   inputParms.Add("pageNumber", collection["pageNumber"]);

   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", "PostValuation");
       return View("Error", info);
   }
}