Bridge

<back to all web services

ETSGetPrice

ETS
The following routes are available for this service:
POST/ETS/Price
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Bridge.Private.Api.DTO
Imports Bridge.Core.ViewModels

Namespace Global

    Namespace Bridge.Core.ViewModels

        Public Partial Class ETSLinkedVesselsViewModel
            Public Overridable Property Deleted As Boolean
            Public Overridable Property VesselId As Integer
            Public Overridable Property Quantity As Nullable(Of Integer)
            Public Overridable Property MohaAccount As String
            Public Overridable Property IsQuote As Boolean
        End Class

        Public Partial Class ETSPlaceOrderViewModel
            Public Sub New()
                GetVessels = New List(Of SelectListItem)
                LinkedVessels = New List(Of ETSLinkedVesselsViewModel)
                GetETSForwardPricesForEntityContactSimple = New List(Of GetETSForwardPricesForEntityContactSimpleViewModel)
            End Sub

            Public Overridable Property OrderType As String
            Public Overridable Property QuoteGuid As Guid
            Public Overridable Property UnitPrice As Double
            Public Overridable Property Price As Double
            Public Overridable Property FinancingPrice As Double
            Public Overridable Property FinancingStatus As String
            Public Overridable Property ArrangementFee As Double
            Public Overridable Property ArrangementFeeDescription As String
            Public Overridable Property ETSOrderInfoTextNonFinanced As String
            Public Overridable Property ETSOrderInfoTextFinanced As String
            Public Overridable Property PaymentType As String
            Public Overridable Property Quantity As Nullable(Of Integer)
            Public Overridable Property OriginalQuantity As Nullable(Of Integer)
            Public Overridable Property CompanyName As String
            Public Overridable Property FullName As String
            Public Overridable Property EmailAddress As String
            Public Overridable Property CanPurchaseEUA As Boolean
            Public Overridable Property ThirdParty As Boolean
            Public Overridable Property ThirdPartyName As String
            Public Overridable Property ExternalFeePerTicket As Double
            Public Overridable Property OurCommissionForOrder As Double
            Public Overridable Property EUAPrice As Double
            Public Overridable Property RawPrice As Double
            Public Overridable Property RegenerateQuote As Boolean
            Public Overridable Property GetETSMarketHoursMessage As String
            Public Overridable Property IsBridgeClient As Boolean
            Public Overridable Property APIToUse As String
            Public Overridable Property IoiId As String
            Public Overridable Property OfferIoi As String
            Public Overridable Property IoiExpiresAt As Date
            Public Overridable Property SpotAdditionalMargin As Decimal
            Public Overridable Property AitherSettlementUUID As String
            Public Overridable Property GetVessels As List(Of SelectListItem)
            Public Overridable Property LinkedVessels As List(Of ETSLinkedVesselsViewModel)
            Public Overridable Property GetETSForwardPricesForEntityContactSimple As List(Of GetETSForwardPricesForEntityContactSimpleViewModel)
            Public Overridable Property GetETSRegistrationStatus As GetETSRegistrationStatusViewModel
        End Class

        Public Partial Class GetETSForwardPricesForEntityContactSimpleViewModel
            Public Overridable Property MonthNumber As Integer
            Public Overridable Property StartingDate As Nullable(Of Date)
            Public Overridable Property DateForGreyEpoch As String
            Public Overridable Property DateForUserInterface As String
            Public Overridable Property Over1000 As Integer
            Public Overridable Property OurCommissionForOrder As Double
            Public Overridable Property ExternalFeePerTicket As Double
            Public Overridable Property ServiceFeeValue As Double
            Public Overridable Property ServiceFeeDescription As String
            Public Overridable Property MarketPrice As Double
            Public Overridable Property UnitCostPrice As Double
            Public Overridable Property APIToUse As String
            Public Overridable Property SpotAdditionalMargin As Nullable(Of Double)
            Public Overridable Property UserContactNumber As String
            Public Overridable Property AitherSettlementUUID As String
        End Class

        Public Partial Class GetETSRegistrationStatusViewModel
            Public Overridable Property Status As String
            Public Overridable Property AppliedBy As String
        End Class
    End Namespace

    Namespace Bridge.Private.Api.DTO

        Public Partial Class ETSGetPrice
            Public Sub New()
                LinkedVessels = New List(Of ETSLinkedVesselsViewModel)
            End Sub

            Public Overridable Property OrderType As String
            Public Overridable Property Quantity As Integer
            Public Overridable Property InsertQuote As Boolean
            Public Overridable Property LinkedVessels As List(Of ETSLinkedVesselsViewModel)
        End Class
    End Namespace
End Namespace

VB.NET ETSGetPrice DTOs

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

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ETS/Price HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"OrderType":"String","Quantity":0,"InsertQuote":false,"LinkedVessels":[{"Deleted":false,"VesselId":0,"Quantity":0,"MohaAccount":"String","IsQuote":false}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"OrderType":"String","QuoteGuid":"00000000000000000000000000000000","UnitPrice":0,"Price":0,"FinancingPrice":0,"FinancingStatus":"String","ArrangementFee":0,"ArrangementFeeDescription":"String","ETSOrderInfoTextNonFinanced":"String","ETSOrderInfoTextFinanced":"String","PaymentType":"String","Quantity":0,"OriginalQuantity":0,"CompanyName":"String","FullName":"String","EmailAddress":"String","CanPurchaseEUA":false,"ThirdParty":false,"ThirdPartyName":"String","ExternalFeePerTicket":0,"OurCommissionForOrder":0,"EUAPrice":0,"RawPrice":0,"RegenerateQuote":false,"GetETSMarketHoursMessage":"String","IsBridgeClient":false,"APIToUse":"String","IoiId":"String","OfferIoi":"String","IoiExpiresAt":"0001-01-01T00:00:00.0000000","SpotAdditionalMargin":0,"AitherSettlementUUID":"String","GetVessels":[{"Disabled":false,"Group":{"Disabled":false,"Name":"String"},"Selected":false,"Text":"String","Value":"String"}],"LinkedVessels":[{"Deleted":false,"VesselId":0,"Quantity":0,"MohaAccount":"String","IsQuote":false}],"GetETSForwardPricesForEntityContactSimple":[{"MonthNumber":0,"StartingDate":"0001-01-01T00:00:00.0000000","DateForGreyEpoch":"String","DateForUserInterface":"String","Over1000":0,"OurCommissionForOrder":0,"ExternalFeePerTicket":0,"ServiceFeeValue":0,"ServiceFeeDescription":"String","MarketPrice":0,"UnitCostPrice":0,"APIToUse":"String","SpotAdditionalMargin":0,"UserContactNumber":"String","AitherSettlementUUID":"String"}],"GetETSRegistrationStatus":{"Status":"String","AppliedBy":"String"}}