POST | /financial-transactions |
---|
namespace NAV.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type FinancialTransactionsCreateResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val CSTFinancialTransactionsGuid:Nullable<Decimal> = new Nullable<Decimal>() with get,set
[<AllowNullLiteral>]
type FinancialTransactionsCreate() =
interface IPost
member val BeeNumberCustomer:Nullable<Decimal> = new Nullable<Decimal>() 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 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 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
member val TransactionBIDSCode:String = null with get,set
member val TransactionBillSeq:String = null with get,set
F# FinancialTransactionsCreate DTOs
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.
POST /financial-transactions HTTP/1.1
Host: extensions.avon.ca
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
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,
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,
transactionBIDSCode: String,
transactionBillSeq: String
}
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 } }, cstFinancialTransactionsGuid: 0 }