Trendsic Platform Service

<back to all web services

QboTaxProbeRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/qbo/taxcodes
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type QboTaxCodeInfo() = 
        member val Id:String = null with get,set
        member val Name:String = null with get,set
        member val Active:Boolean = new Boolean() with get,set
        member val Description:String = null with get,set

    [<AllowNullLiteral>]
    type QboTaxProbeResponse() = 
        member val LikelyAst:Boolean = new Boolean() with get,set
        member val Country:String = null with get,set
        member val CompanyName:String = null with get,set
        member val Message:String = null with get,set
        member val TaxCodes:ResizeArray<QboTaxCodeInfo> = new ResizeArray<QboTaxCodeInfo>() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type QboTaxProbeRequest() = 
        class end

F# QboTaxProbeRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/qbo/taxcodes HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	LikelyAst: False,
	Country: String,
	CompanyName: String,
	Message: String,
	TaxCodes: 
	[
		{
			Id: String,
			Name: String,
			Active: False,
			Description: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}