Name | Type | Description | Mandatory | Available from version |
---|---|---|---|---|
Account | Guid | Account of the reservation | true | |
Asset | Guid | Asset of the reservation | true | |
Reference | Guid | Reference of the reservation. This property is needed to be set if you for example want to link the reservation to a specific order. For example: if you create a Subscription order, you take the id from the order and set it to the Reference property. By doing this, the reservation and the subscription order is linked. | ||
Order | Guid | OrderId of the reservation. This property is not - contradictory to it's name - the property you should use to link an order with the reservation. | ||
ReservedAmountTrade | decimal | Amount for trade dimension | ||
ReservedAmountSettle | decimal | Amount for settle dimenstion |
Name | Type | Description | Available from version |
---|---|---|---|
BrickId | Guid | The BrickId (unique id) of the created |
public static void CreateReservation() { var binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = Int32.MaxValue; var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx")); var req = new CreateReservationRequest(); req.Credentials = new bfsapi.Credentials { UserName = "username", Password = "passworkd" }; req.identify = "identify"; var orderRef = Guid.NewGuid(); var accountId= Guid.NewGuid(); var assetId= Guid.NewGuid(); req.Entities = new[] { new bfsapi.Reservation() { Account = accountId, Asset = assetId, Comment = "Testreservation", Reference = orderRef, Order = orderRef, ReservedAmountTrade = 100M, } }; var resp = target.CreateReservations(req); } |