Versions Compared

Key

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

Inputs (Array of WhiteLabel) 

NameTypeDescriptionMandatoryAvailable from version
Namestring


KeystringKey must be unique

Urlstring


Commentstring


Response rows

The account type key of the account type
NameTypeDescriptionAvailable from version
BrickIdEntitiesGuidThe BrickId (unique id) of the account typeKeystringArrayAll WhiteLabels in the request with BrickId and an array of Errors per whitelabel

Code examples

Code Block
languagec#
themeRDark
titleC# - Create WhiteLabel
linenumberstrue
collapsetrue
public static void CreateWhiteLabel()
        {
            var binding = new BasicHttpBinding();
            binding.MaxReceivedMessageSize = Int32.MaxValue;

            var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://apiurl/bfsapi.asmx"));
            var req = new bfsapi.CreateWhiteLabelRequest();
            req.Credentials = new bfsapi.Credentials
            {
                UserName = "user",
                Password = "password"
            };

            req.identify = "identifier";


            req.Entities = new bfsapi.WhiteLabel[]
            {
                new bfsapi.WhiteLabel()
                {
                    Name = "Test1",
                    Key = "testingkey",
                    Comment = "TestComment",
                    RequestReference = "ref",
                    Url = "http://someurl.com"
                },
                
            };

            var resp = target.CreateWhiteLabels(req);


        }

...