NAV

<back to all web services

FinancialTransactionsGetList

The following routes are available for this service:
GET/financial-transactions/{BeeNumberCustomer}
namespace NAV.ServiceModel

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

    [<AllowNullLiteral>]
    type FinancialTransactionsGetListViewModel() = 
        member val BeeNumberCustomer:Decimal = new Decimal() with get,set
        member val TransactionTime:DateTime = new DateTime() with get,set
        member val TransactionId:String = null with get,set
        member val Campaign:String = null with get,set
        member val TransactionCode:String = null with get,set
        member val OrderNumber:String = null with get,set
        member val InvoiceNumber:String = null with get,set
        member val RetailSalesAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val FederalTaxAmount1:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val FederalTaxAmount2:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val LocalTaxAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TransactionAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val PaymentAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TransactionBalanceAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val CustomerPrice:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val FreeAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val BonusAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val DiscountPercentage:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val CustomerCount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val PRCPromotionCode:String = null with get,set
        member val AccountType:String = null with get,set
        member val State:String = null with get,set
        member val TaxArea:String = null with get,set
        member val TaxRate:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TaxIndicator:String = null with get,set
        member val NetSalesAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val CurrentBalance:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val OperatorId:String = null with get,set
        member val TransactionBIDSCode:String = null with get,set

    [<AllowNullLiteral>]
    type FinancialTransactionsGetListResponse() = 
        inherit GetListResponse<FinancialTransactionsGetListViewModel>()

    [<AllowNullLiteral>]
    type FinancialTransactionsGetList() = 
        interface IGet
        member val BeeNumberCustomer:Decimal = new Decimal() with get,set
        member val StartTime:DateTime = new DateTime() with get,set
        member val EndTime:DateTime = new DateTime() with get,set

    [<AllowNullLiteral>]
    type GetListResponse<'TEntity>() = 
        member val Items:ResizeArray<'TEntity> = new ResizeArray<'TEntity>() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

F# FinancialTransactionsGetList 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 /financial-transactions/{BeeNumberCustomer} HTTP/1.1 
Host: extensions.avon.ca 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			beeNumberCustomer: 0,
			transactionTime: 0001-01-01T00:00:00,
			transactionId: String,
			campaign: String,
			transactionCode: String,
			orderNumber: String,
			invoiceNumber: String,
			retailSalesAmount: 0,
			federalTaxAmount1: 0,
			federalTaxAmount2: 0,
			localTaxAmount: 0,
			transactionAmount: 0,
			paymentAmount: 0,
			transactionBalanceAmount: 0,
			customerPrice: 0,
			freeAmount: 0,
			bonusAmount: 0,
			discountPercentage: 0,
			customerCount: 0,
			prcPromotionCode: String,
			accountType: String,
			state: String,
			taxArea: String,
			taxRate: 0,
			taxIndicator: String,
			netSalesAmount: 0,
			currentBalance: 0,
			operatorId: String,
			transactionBIDSCode: String
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}