Bridge

<back to all web services

ETSGetPrice

ETS
The following routes are available for this service:
POST/ETS/Price
import java.math.*
import java.util.*
import net.servicestack.client.*


open class ETSGetPrice
{
    var OrderType:String? = null
    var Quantity:Int? = null
    var InsertQuote:Boolean? = null
    var LinkedVessels:ArrayList<ETSLinkedVesselsViewModel> = ArrayList<ETSLinkedVesselsViewModel>()
}

open class ETSLinkedVesselsViewModel
{
    var Deleted:Boolean? = null
    var VesselId:Int? = null
    var Quantity:Int? = null
    var MohaAccount:String? = null
    var IsQuote:Boolean? = null
}

open class ETSPlaceOrderViewModel
{
    var OrderType:String? = null
    var QuoteGuid:UUID? = null
    var UnitPrice:Double? = null
    var Price:Double? = null
    var FinancingPrice:Double? = null
    var FinancingStatus:String? = null
    var ArrangementFee:Double? = null
    var ArrangementFeeDescription:String? = null
    var ETSOrderInfoTextNonFinanced:String? = null
    var ETSOrderInfoTextFinanced:String? = null
    var PaymentType:String? = null
    var Quantity:Int? = null
    var OriginalQuantity:Int? = null
    var CompanyName:String? = null
    var FullName:String? = null
    var EmailAddress:String? = null
    var CanPurchaseEUA:Boolean? = null
    var ThirdParty:Boolean? = null
    var ThirdPartyName:String? = null
    var ExternalFeePerTicket:Double? = null
    var OurCommissionForOrder:Double? = null
    var EUAPrice:Double? = null
    var RawPrice:Double? = null
    var RegenerateQuote:Boolean? = null
    var GetETSMarketHoursMessage:String? = null
    var IsBridgeClient:Boolean? = null
    var APIToUse:String? = null
    var IoiId:String? = null
    var OfferIoi:String? = null
    var IoiExpiresAt:Date? = null
    var SpotAdditionalMargin:BigDecimal? = null
    var AitherSettlementUUID:String? = null
    var GetVessels:ArrayList<SelectListItem> = ArrayList<SelectListItem>()
    var LinkedVessels:ArrayList<ETSLinkedVesselsViewModel> = ArrayList<ETSLinkedVesselsViewModel>()
    var GetETSForwardPricesForEntityContactSimple:ArrayList<GetETSForwardPricesForEntityContactSimpleViewModel> = ArrayList<GetETSForwardPricesForEntityContactSimpleViewModel>()
    var GetETSRegistrationStatus:GetETSRegistrationStatusViewModel? = null
}

open class GetETSForwardPricesForEntityContactSimpleViewModel
{
    var MonthNumber:Int? = null
    var StartingDate:Date? = null
    var DateForGreyEpoch:String? = null
    var DateForUserInterface:String? = null
    var Over1000:Int? = null
    var OurCommissionForOrder:Double? = null
    var ExternalFeePerTicket:Double? = null
    var ServiceFeeValue:Double? = null
    var ServiceFeeDescription:String? = null
    var MarketPrice:Double? = null
    var UnitCostPrice:Double? = null
    var APIToUse:String? = null
    var SpotAdditionalMargin:Double? = null
    var UserContactNumber:String? = null
    var AitherSettlementUUID:String? = null
}

open class GetETSRegistrationStatusViewModel
{
    var Status:String? = null
    var AppliedBy:String? = null
}

Kotlin ETSGetPrice DTOs

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

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<ETSGetPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Private.Api.DTO">
  <InsertQuote>false</InsertQuote>
  <LinkedVessels xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
    <d2p1:ETSLinkedVesselsViewModel>
      <d2p1:Deleted>false</d2p1:Deleted>
      <d2p1:IsQuote>false</d2p1:IsQuote>
      <d2p1:MohaAccount>String</d2p1:MohaAccount>
      <d2p1:Quantity>0</d2p1:Quantity>
      <d2p1:VesselId>0</d2p1:VesselId>
    </d2p1:ETSLinkedVesselsViewModel>
  </LinkedVessels>
  <OrderType>String</OrderType>
  <Quantity>0</Quantity>
</ETSGetPrice>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ETSPlaceOrderViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
  <APIToUse>String</APIToUse>
  <AitherSettlementUUID>String</AitherSettlementUUID>
  <ArrangementFee>0</ArrangementFee>
  <ArrangementFeeDescription>String</ArrangementFeeDescription>
  <CanPurchaseEUA>false</CanPurchaseEUA>
  <CompanyName>String</CompanyName>
  <ETSOrderInfoTextFinanced>String</ETSOrderInfoTextFinanced>
  <ETSOrderInfoTextNonFinanced>String</ETSOrderInfoTextNonFinanced>
  <EUAPrice>0</EUAPrice>
  <EmailAddress>String</EmailAddress>
  <ExternalFeePerTicket>0</ExternalFeePerTicket>
  <FinancingPrice>0</FinancingPrice>
  <FinancingStatus>String</FinancingStatus>
  <FullName>String</FullName>
  <GetETSForwardPricesForEntityContactSimple>
    <GetETSForwardPricesForEntityContactSimpleViewModel>
      <APIToUse>String</APIToUse>
      <AitherSettlementUUID>String</AitherSettlementUUID>
      <DateForGreyEpoch>String</DateForGreyEpoch>
      <DateForUserInterface>String</DateForUserInterface>
      <ExternalFeePerTicket>0</ExternalFeePerTicket>
      <MarketPrice>0</MarketPrice>
      <MonthNumber>0</MonthNumber>
      <OurCommissionForOrder>0</OurCommissionForOrder>
      <Over1000>0</Over1000>
      <ServiceFeeDescription>String</ServiceFeeDescription>
      <ServiceFeeValue>0</ServiceFeeValue>
      <SpotAdditionalMargin>0</SpotAdditionalMargin>
      <StartingDate>0001-01-01T00:00:00</StartingDate>
      <UnitCostPrice>0</UnitCostPrice>
      <UserContactNumber>String</UserContactNumber>
    </GetETSForwardPricesForEntityContactSimpleViewModel>
  </GetETSForwardPricesForEntityContactSimple>
  <GetETSMarketHoursMessage>String</GetETSMarketHoursMessage>
  <GetETSRegistrationStatus>
    <AppliedBy>String</AppliedBy>
    <Status>String</Status>
  </GetETSRegistrationStatus>
  <GetVessels xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>false</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>false</d2p1:Disabled>
        <d2p1:Name>String</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>false</d2p1:Selected>
      <d2p1:Text>String</d2p1:Text>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:SelectListItem>
  </GetVessels>
  <IoiExpiresAt>0001-01-01T00:00:00</IoiExpiresAt>
  <IoiId>String</IoiId>
  <IsBridgeClient>false</IsBridgeClient>
  <LinkedVessels>
    <ETSLinkedVesselsViewModel>
      <Deleted>false</Deleted>
      <IsQuote>false</IsQuote>
      <MohaAccount>String</MohaAccount>
      <Quantity>0</Quantity>
      <VesselId>0</VesselId>
    </ETSLinkedVesselsViewModel>
  </LinkedVessels>
  <OfferIoi>String</OfferIoi>
  <OrderType>String</OrderType>
  <OriginalQuantity>0</OriginalQuantity>
  <OurCommissionForOrder>0</OurCommissionForOrder>
  <PaymentType>String</PaymentType>
  <Price>0</Price>
  <Quantity>0</Quantity>
  <QuoteGuid>00000000-0000-0000-0000-000000000000</QuoteGuid>
  <RawPrice>0</RawPrice>
  <RegenerateQuote>false</RegenerateQuote>
  <SpotAdditionalMargin>0</SpotAdditionalMargin>
  <ThirdParty>false</ThirdParty>
  <ThirdPartyName>String</ThirdPartyName>
  <UnitPrice>0</UnitPrice>
</ETSPlaceOrderViewModel>