Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Inputs (Array[]) inherits from EntityBase

...

NameTypeDescriptionAvailable from version
EntitiesArrayAll allocation orders in the request is returned along with each allocation orders BrickId, and array of Errors per allocation order 

Code examples

Code Block
languagec#
themeRDark
titleC# - Get all account types from Create Subscription Orders in a BFS instance
linenumberstrue
collapsetrue
 public static void CreateSubscriptionOrders()
        {
            var binding = new BasicHttpBinding();
            binding.MaxReceivedMessageSize = Int32.MaxValue;
            var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx"));
            var req = new bfsapi.CreateSubscriptionOrderRequest()
            {

                Credentials = new bfsapi.Credentials
                {
                    UserName = "apiuser",
                    Password = "apiuser"
                },
                identify = "adfadfasdf"
            };
            
            req.Entities = new bfsapi.SubscriptionOrder[]
            {
                new bfsapi.SubscriptionOrder
                {
                    Account = new Guid("feb20b2e-e6df-4add-abd9-e9281f792600"),
                    CashCurrencyCode = "SEK",
                    Instrument = new Guid("b87ebb9d-47f9-41cd-aa43-8401a548fba8"),
                    CashAmount = 100M,
                    ExecutionInterfaceSettingKey = "Manual",
                    IsUnitOrder = false,
                    LastPaymentDate = new DateTime(2016,4,10,0,0,0,DateTimeKind.Utc),
                    ReserveAssets = true


                },
            };

            var res = target.CreateSubscriptionOrders(req);


        }

...

Blog Posts
sortcreation
contenttitles
labelsgetaccounttypescreatesubscriptionorders