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.
GET /Send-Deal-Recap HTTP/1.1
Host: internal.thebunkerbridge.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<APISendDealRecapViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<AdditionalCosts>String</AdditionalCosts>
<Agent>String</Agent>
<BuyerAccountName>String</BuyerAccountName>
<BuyerSellerAccountId>0</BuyerSellerAccountId>
<ChatGuid>00000000-0000-0000-0000-000000000000</ChatGuid>
<CreditTermDays>0</CreditTermDays>
<DateFrom>0001-01-01T00:00:00</DateFrom>
<DateTo>0001-01-01T00:00:00</DateTo>
<DealRecapEnquiryGrades>
<DealRecapEnquiryGradesViewModel>
<CurrencyId>0</CurrencyId>
<Deleted>false</Deleted>
<GradeId>0</GradeId>
<Id>0</Id>
<ProductId>0</ProductId>
<SpecificationComments>String</SpecificationComments>
<UnitId>0</UnitId>
<UnitPrice>0</UnitPrice>
<VersionId>0</VersionId>
<VolumeFrom>0</VolumeFrom>
<VolumeTo>0</VolumeTo>
<VolumeUnitId>0</VolumeUnitId>
</DealRecapEnquiryGradesViewModel>
</DealRecapEnquiryGrades>
<DeliveryMethodId>0</DeliveryMethodId>
<DocumentTitle>String</DocumentTitle>
<EnquiryGuid>00000000-0000-0000-0000-000000000000</EnquiryGuid>
<EnquiryId>0</EnquiryId>
<FromEntityContactId>0</FromEntityContactId>
<GetBuyerSellerAccounts>
<EntityAccountsViewModel>
<Id>0</Id>
<LinkedVesselId>0</LinkedVesselId>
<Name>String</Name>
<Type>String</Type>
</EntityAccountsViewModel>
</GetBuyerSellerAccounts>
<GetCurrencies>
<GetCurrenciesViewModel>
<Code>String</Code>
<Deleted>false</Deleted>
<Description>String</Description>
<Id>0</Id>
<Index>0</Index>
<Symbol>String</Symbol>
</GetCurrenciesViewModel>
</GetCurrencies>
<GetDeliveryMethods>
<GetDeliveryMethodsViewModel>
<Id>0</Id>
<Name>String</Name>
</GetDeliveryMethodsViewModel>
</GetDeliveryMethods>
<GetGrades>
<GetGradesViewModel>
<Deleted>false</Deleted>
<Id>0</Id>
<Index>0</Index>
<Name>String</Name>
</GetGradesViewModel>
</GetGrades>
<GetPortList>
<GetPortListViewModel>
<Code>String</Code>
<CountryId>0</CountryId>
<CountryName>String</CountryName>
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<Id>0</Id>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<Name>String</Name>
</GetPortListViewModel>
</GetPortList>
<GetProducts>
<GetProductsViewModel>
<Deleted>false</Deleted>
<ETSMultiplication>0</ETSMultiplication>
<Id>0</Id>
<Index>0</Index>
<Name>String</Name>
</GetProductsViewModel>
</GetProducts>
<GetUnits>
<GetUnitsViewModel>
<Code>String</Code>
<Deleted>false</Deleted>
<Id>0</Id>
</GetUnitsViewModel>
</GetUnits>
<GetVersions>
<GetVersionsViewModel>
<Deleted>false</Deleted>
<Id>0</Id>
<Index>0</Index>
<Name>String</Name>
</GetVersionsViewModel>
</GetVersions>
<IMONumber>0</IMONumber>
<PortId>0</PortId>
<RecapCanBeSent>false</RecapCanBeSent>
<RecapComments>String</RecapComments>
<RequestedTermsType>String</RequestedTermsType>
<VesselId>0</VesselId>
<VesselName>String</VesselName>
</APISendDealRecapViewModel>