| POST | /api/Financial/ExchangeRateBase |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.Common4.DTO
Imports BH.CloudAPI.Common.DTO
Namespace Global
Namespace BH.CloudAPI.Common.DTO
Public Partial Class ExchangeRate
Implements ILazyLoadMemoryCacheValue
Public Overridable Property BaseCurrency As String
Public Overridable Property ForeignCurrency As String
Public Overridable Property Rate As Decimal
Public Overridable Property TimeStamp As Date
Public Overridable Property FromCache As Boolean
End Class
Public Partial Class ExchangeRateBase
Public Overridable Property ExchangeRate As ExchangeRate
Public Overridable Property BaseAmount As Decimal
End Class
End Namespace
Namespace BH.CloudAPI.Common4.DTO
Public Partial Class ExchangeRateBaseParams
Inherits ExchangeRateBaseParams
End Class
End Namespace
End Namespace
VB.NET ExchangeRateBaseParams DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Financial/ExchangeRateBase HTTP/1.1
Host: devapi.billhighway.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ProcessingCurrency":"String","AmountDue":0,"BaseCurrency":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ExchangeRate":{"BaseCurrency":"String","ForeignCurrency":"String","Rate":0,"TimeStamp":"0001-01-01T00:00:00.0000000","FromCache":false},"BaseAmount":0}