POST api/integration/trade/CreateOrUpdateTrades

Request Information

URI Parameters

None.

Body Parameters

IntegrationAPIModelOfTradeIntegrationDTO
NameDescriptionTypeAdditional information
IntegrationDtos

Collection of TradeIntegrationDTO

None.

SourceSystemId

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'DependentCalculation' with type 'Gravitate.WCF.DTO.Integration.PriceFormulaIntegrationDTO+Calculation'. Path 'IntegrationDtos[0].TradeDetailDTOs[0].TradePriceDTOs[0].PriceFormulaIntegrationDTO.Calculations[0].Variables[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'DependentCalculation' with type 'Gravitate.WCF.DTO.Integration.PriceFormulaIntegrationDTO+Calculation'. Path 'IntegrationDtos[0].TradeDetailDTOs[0].TradePriceDTOs[0].PriceFormulaIntegrationDTO.Calculations[0].Variables[0]'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Self referencing loop detected for property 'DependentCalculation' with type 'Gravitate.WCF.DTO.Integration.PriceFormulaIntegrationDTO+Calculation'. Path 'IntegrationDtos[0].TradeDetailDTOs[0].TradePriceDTOs[0].PriceFormulaIntegrationDTO.Calculations[0].Variables[0]'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Gravitate.WCF.DTO.Integration.PriceFormulaIntegrationDTO+Variable' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Gravitate.WCF.DTO.Integration.PriceFormulaIntegrationDTO+Variable' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IntegrationAPIModel`1'.

Response Information

Resource Description

IntegrationAPIResult
NameDescriptionTypeAdditional information
Status

ValidationSeverity

None.

ValidationMessages

Collection of Object

None.

RecordCounts

Dictionary of CRUD [key] and integer [value]

None.

HasChangedRecords

boolean

None.

TotalChangeCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "Error",
  "ValidationMessages": null,
  "RecordCounts": {
    "Create": 1
  },
  "HasChangedRecords": true,
  "TotalChangeCount": 1
}

text/html

Sample:
{"Status":"Error","ValidationMessages":null,"RecordCounts":{"Create":1},"HasChangedRecords":true,"TotalChangeCount":1}

application/xml, text/xml

Sample:
<IntegrationAPIResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.Web.WebApi.Models.Integration">
  <RecordCounts xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.WCF.DTO.Integration">
    <d2p1:KeyValueOfCRUDintOYhmUtHL>
      <d2p1:Key>Create</d2p1:Key>
      <d2p1:Value>1</d2p1:Value>
    </d2p1:KeyValueOfCRUDintOYhmUtHL>
  </RecordCounts>
  <Status>Error</Status>
  <ValidationMessages xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gravitate.Library.Validation" i:nil="true" />
</IntegrationAPIResult>