NAV

<back to all web services

FinancialTransactionsCreate

The following routes are available for this service:
POST/financial-transactions
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports NAV.ServiceModel

Namespace Global

    Namespace NAV.ServiceModel

        Public Partial Class FinancialTransactionsCreate
            Implements IPost
            Public Overridable Property BeeNumberCustomer As Nullable(Of Decimal)
            Public Overridable Property TransactionTime As Nullable(Of Date)
            Public Overridable Property TransactionId As String
            Public Overridable Property Campaign As String
            Public Overridable Property TransactionCode As String
            Public Overridable Property OrderNumber As String
            Public Overridable Property InvoiceNumber As String
            Public Overridable Property RetailSalesAmount As Nullable(Of Decimal)
            Public Overridable Property FederalTaxAmount1 As Nullable(Of Decimal)
            Public Overridable Property FederalTaxAmount2 As Nullable(Of Decimal)
            Public Overridable Property LocalTaxAmount As Nullable(Of Decimal)
            Public Overridable Property TransactionAmount As Nullable(Of Decimal)
            Public Overridable Property PaymentAmount As Nullable(Of Decimal)
            Public Overridable Property CustomerPrice As Nullable(Of Decimal)
            Public Overridable Property FreeAmount As Nullable(Of Decimal)
            Public Overridable Property BonusAmount As Nullable(Of Decimal)
            Public Overridable Property DiscountPercentage As Nullable(Of Decimal)
            Public Overridable Property CustomerCount As Nullable(Of Decimal)
            Public Overridable Property PricePromotionCode As String
            Public Overridable Property AccountType As String
            Public Overridable Property State As String
            Public Overridable Property TaxArea As String
            Public Overridable Property TaxRate As Nullable(Of Decimal)
            Public Overridable Property TaxIndicator As String
            Public Overridable Property NetSalesAmount As Nullable(Of Decimal)
            Public Overridable Property CurrentBalance As Nullable(Of Decimal)
            Public Overridable Property TransactionBIDSCode As String
            Public Overridable Property TransactionBillSeq As String
        End Class

        Public Partial Class FinancialTransactionsCreateResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property CSTFinancialTransactionsGuid As Nullable(Of Decimal)
        End Class
    End Namespace
End Namespace

VB.NET FinancialTransactionsCreate DTOs

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

HTTP + CSV

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/csv
Content-Type: text/csv
Content-Length: length

{"beeNumberCustomer":0,"transactionTime":"0001-01-01T00:00:00.0000000","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/csv
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}