| GET | /call-center/1099/{AccountNumber}/{Year} |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using NAV.ServiceModel;
namespace NAV.ServiceModel
{
public partial class CallCenter1099Get
: IGet
{
public virtual decimal AccountNumber { get; set; }
public virtual int Year { get; set; }
}
public partial class CallCenter1099GetResponse
{
public CallCenter1099GetResponse()
{
TransactionDetails = new List<TransactionDetail>{};
}
public virtual decimal AccountNumber { get; set; }
public virtual int Year { get; set; }
public virtual decimal? MerchandiseSales { get; set; }
public virtual decimal? TotalActualWithholdingToDate { get; set; }
public virtual decimal? TotalFutureWithholdingToDate { get; set; }
public virtual decimal? TotalEarnings { get; set; }
public virtual List<TransactionDetail> TransactionDetails { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class TransactionDetail
{
public virtual DateTime Date { get; set; }
public virtual string TransactionNumber { get; set; }
public virtual string Description { get; set; }
public virtual decimal Value1099 { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /call-center/1099/{AccountNumber}/{Year} HTTP/1.1
Host: extensions.avon.ca
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
accountNumber: 0,
year: 0,
merchandiseSales: 0,
totalActualWithholdingToDate: 0,
totalFutureWithholdingToDate: 0,
totalEarnings: 0,
transactionDetails:
[
{
date: 0001-01-01T00:00:00,
transactionNumber: String,
description: String,
value1099: 0
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}