NAV

<back to all web services

FinancialTransactionsBatchCreate

The following routes are available for this service:
POST/financial-transaction-batches
namespace NAV.ServiceModel

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

    [<AllowNullLiteral>]
    type FinancialTransactionsBatchCreateResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type FinancialTransactionsBatchCreateViewModel() = 
        member val BeeNumberCustomer:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TransactionCode:String = null with get,set
        member val TransactionBIDSCode:String = null with get,set
        member val TransactionAmount:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val TransactionBillSeq:String = null with get,set
        member val TransactionTime:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val TransactionId:String = null with get,set
        member val Campaign: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 PaymentAmount: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 PricePromotionCode: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

    [<AllowNullLiteral>]
    type FinancialTransactionsBatchCreate() = 
        interface IPost
        member val FinancialTransactions:ResizeArray<FinancialTransactionsBatchCreateViewModel> = new ResizeArray<FinancialTransactionsBatchCreateViewModel>() with get,set

F# FinancialTransactionsBatchCreate 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.

POST /financial-transaction-batches HTTP/1.1 
Host: extensions.avon.ca 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	financialTransactions: 
	[
		{
			beeNumberCustomer: 0,
			transactionCode: String,
			transactionBIDSCode: String,
			transactionAmount: 0,
			transactionBillSeq: String,
			transactionTime: 0001-01-01T00:00:00,
			transactionId: String,
			campaign: String,
			orderNumber: String,
			invoiceNumber: String,
			retailSalesAmount: 0,
			federalTaxAmount1: 0,
			federalTaxAmount2: 0,
			localTaxAmount: 0,
			paymentAmount: 0,
			customerPrice: 0,
			freeAmount: 0,
			bonusAmount: 0,
			discountPercentage: 0,
			customerCount: 0,
			pricePromotionCode: String,
			accountType: String,
			state: String,
			taxArea: String,
			taxRate: 0,
			taxIndicator: String,
			netSalesAmount: 0,
			currentBalance: 0
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}