Settings.svc

Sending a Request to Settings.svc
All calls to Settings.svc require the AccessToken and the LocationToken in the request body. No other parameters in the body or headers are necessary.

Settings.svc Endpoint
Endpoint
https://{{server}}.brinkpos.net/Settings2.svc


Settings.svc Request Body
Data Name
Data Type
Data Description
AccessToken
string
Specify the AccessToken for your API account
LocationToken
string
Specify the LocationToken for the location you want to retrieve Settings from
Customfield Type
Data Name
Data Type
Data Description
Id
int
Unique Id of this customfield
FieldName
string
Name of the customfield
Value
string
Value for the customfield


This call is to retrieve an array of CashDrawer objects for the location.

CashDrawer Type
Data Name
Data Type
Data Description
DefaultBank
decimal
Default amount of cash for this CashDrawer
DrawerNumber
byte
Number of this CashDrawer
Id
int
Unique Id of this CashDrawer
IsCompulsory
bool
True if CashDrawer is compulsory, False if not
IsPublic
bool
True if CashDrawer is public, False if not
Name
string
Name of this CashDrawer
TerminalId
int
Id of the Terminal
Type
int
Returns one of the following:
  • 0 = None
  • 1 = Printerinterface
  • 2 = OPOS
  • 3 = Serial
  • 4 = PosForDotNet
This call is to retrieve an array of DayPart objects for the location.

DayPart Type
Data Name
Data Type
Data Description
Id
int
Unique Id of this DayPart
Name
string
Name of this DayPart
StartTime
DateTime
Start time of this DayPart in the location's local time
This call is to retrieve an array of Destination objects for the location.

Destination Type
Data Name
Data Type
Data Description
Id
int
Unique Id of this Destination
Description
string
Description of this Destination
KitchenDescription
string
Kitchen description of this Destination
Name
string
Name of this Destination
This call is to retrieve an array of Discount objects at the location.

Discount Type
Data Name
Data Type
Data Description
Active
bool
True if this Discount is active, False if inactive
Amount
decimal
New amount for the item this Discount is applied to
Id
int
Unique Id of this Discount
Name
string
Name of this Discount
Rate
decimal
Percentage of the Discount to be applied
Type
DiscountType
Returns one of the following:
  • Comp
  • New Price
This call is to retrieve an array of Employee objects for the location.

Employee Type
Data Name
Data Type
Data Description
Id
int
Unique Id in Brink for this Employee
Jobs
Array of EmployeeJob
Jobs assigned to this Employee
Name
string
Unique name for this Employee
PayrollId
string
Unique payroll Id for this Employee


EmployeeJob Type
Data Name
Data Type
Data Description
JobId
int
Maps to the Id of the Job of this EmployeeJob
JobUniqueId
Guid
Primary Key for Job in Brink with SMX ON
PayRate
decimal
Pay rate for the employee clocked in under this EmployeeJob
SecurityLevelId
int
Maps to the Id of the SecurityLevel of this EmployeeJob
SecurityLevelUniqueId
Guid
Primary Key for SecurityLevel in Brink with SMX ON
This call is to retrieve an array of ItemGroup objects for the location.

ItemGroup Type
Data Name
Data Type
Data Description
AlternateId
string
Alternate or external Id for this ItemGroup, if applicable
Id
int
Unique Id of this ItemGroup
IsDeleted
bool
True if this ItemGroup has been deleted, False if not deleted
Items
Array of ItemGroupItem
Items belonging to this ItemGroup
Name
string
Name of this ItemGroup


ItemGroupItem Type
Data Name
Data Type
Data Description
ItemId
int
Maps to the Item of this ItemGroupItem
This call is to retrieve an array of Item objects for the location.

Item Type
Data Name
Data Type
Data Description
Active
bool
True if this Item is active, False if inactive
Id
int
Unique Id of this Item
Name
string
Name of this Item
PLU
string
Price look-up code of this Item
Price
decimal
Price of this Item


ItemBrandAllocation Type
Data Name
Data Type
Data Description
BrandId
int
Id of the brand for this ItemBrandAllocation
Id
int
Unique Id of this ItemBrandAllocation
Weight
decimal
Weight of this ItemBrandAllocation


ItemCompositeComponent Type
Data Name
Data Type
Data Description
Id
int
Unique Id of this ItemCompositeComponent
ItemGroupId
int?
Maps to the Id of the ItemGroup of this ItemCompositeComponent
Items
Composite component items of this ItemCompositeComponent
Name
string
Name of this ItemCompositeComponent
OverridePrice
bool
True if the Item price should be overridden, False if not
Price
decimal?
Price of this ItemCompositeComponent
RollupPrice
bool
True if the price of this ItemCompositeComponent should be rolled up, False if not


ItemCompositeComponentItem Type
Data Name
Data Type
Data Description
Id
int
Unique Id of this ItemCompositeComponentItem
IsDefault
bool
True if this ItemCompositeComponentItem is the default, False if not
ItemId
int
Maps to the Id of the Item of this ItemCompositeComponentItem
OverridePrice
bool
True if the Item price should be overridden, False if not
Price
decimal?
Price of this ItemCompositeComponentItem


ItemIncludedModifier Type
Data Name
Data Type
Data Description
AutomaticallyAdd
bool
True if this Modifier is automatically added to the order, False if not
IsIncluded
bool
True if this Modifier is included on the order, False if not
ItemId
int
Maps to the Id of the Item of this Modifier
ModifierGroupId
int
Maps to the Id of the ModifierGroup this Modifier belongs to
Position
short
Ordering position of the Modifier within the Modifier Group
PrintInKitchen
bool
True if this Modifier will print on the kitchen chits, False if not
This call is to retrieve an array of Job objects for the location.

Job Type
Data Name
Data Type
Data Description
Id
int
Unique Id of this Job
JobUniqueId
Guid
Primary Key for Job in Brink with SMX ON
Name
string
Name of this Job
This call is to retrieve an array of LoyaltyReward objects for the location. There are four types of LoyaltyRewards: DiscountReward, GiftCardReward, PromotionReward, VoucherReward.

LoyaltyReward - DiscountReward Type
Data Name
Data Type
Data Description
IsActive
bool
True if this DiscountReward is active, False if not
Id
int
Unique Id of this DiscountReward
IsDeleted
bool
True if this DiscountReward is deleted, False if not
Name
string
Name of this DiscountReward
Type
byte
Returns: 0 = DiscountReward
DiscountId
int
Maps to the Id of the Discount of this DiscountReward


LoyaltyReward - GiftCardReward Type
Data Name
Data Type
Data Description
IsActive
bool
True if this GiftCardReward is active, False if not
Id
int
Unique Id of this GiftCardReward
IsDeleted
bool
True if this GiftCardReward is deleted, False if not
Name
string
Name of this GiftCardReward
Type
byte
Returns: 2 = GiftCard
Amount
decimal
Amount of this GiftCardReward


LoyaltyReward - PromotionReward Type
Data Name
Data Type
Data Description
IsActive
bool
True if this PromotionReward is active, False if not
Id
int
Unique Id of this PromotionReward
IsDeleted
bool
True if this PromotionReward is deleted, False if not
Name
string
Name of this PromotionReward
Type
byte
Returns: 1 = Promotion
PromotionId
int
Maps to the Id of the Promotion of this PromotionReward


LoyaltyReward - VoucherReward Type
Data Name
Data Type
Data Description
IsActive
bool
True if this VoucherReward is active, False if not
Id
int
Unique Id of this VoucherReward
IsDeleted
bool
True if this VoucherReward is deleted, False if not
Name
string
Name of this VoucherReward
Type
byte
Returns: 4 = Voucher
This call is to retrieve an array of ModifierCode objects for the location.

ModifierCode Type
Data Name
Data Type
Data Description
Abbreviation
string
Abbreviation for this ModifierCode
Active
boolean
True if this ModifierCode is active, False if inactive
AppliesTo
ModCodeIngredientType
Returns one of the following:
  • Ingredients
  • NonIngredients
  • Both
Id
int
Unique Id of this ModifierCode
IsDeleted
boolean
True if ModifierCode is deleted, False if not
IsSystem
boolean
Default is False (deprecated)
Name
string
Name of this ModifierCode
Type
ModCodeType
Returns one of the following:
  • Normal
  • No
  • For
  • Sub
  • OnSide
This call is to retrieve an array of ModifierGroup objects for the location.

ModifierGroup Type
Data Name
Data Type
Data Description
Description
string
Description of this ModifierGroup
DisplayName
string
Display name for this ModifierGroup
Free
byte
Number of free modifiers within this ModifierGroup allowed before charged
Id
int
Unique Id of this ModifierGroup
IsDeleted
bool
True if ModifierGroup is deleted, False if not
FlowRequired
bool
True if flow required, False if not
Items
Modifier group items in this ModifierGroup
Maximum
byte
Maximum number of modifiers allowed from this ModifierGroup
Minimum
byte
Minimum number of modifiers allowed from this ModifierGroup
Name
string
Name of this ModifierGroup
PanelId
int
Panel Id for this ModifierGroup


ModifierGroupItem Type
Data Name
Data Type
Data Description
ItemId
int
Maps to the Id of the Item of this ModifierGroupItem
Position
short
Position of this ModifierGroupItem
Price
decimal
Price of this ModifierGroupItem
PriceMethod
byte
Returns one of the following:
  • 0 = ItemPrice
  • 1 = ModifierPrice
This call is to retrieve a LocationOptions object for the location.

LocationOptions Type
Data Name
Data Type
Data Description
Address1
string
Location address
Address2
string
Location address
City
string
Location city
Country
string
Location country
Fax
string
Location fax
Latitude
decimal
Location latitude
Longitude
decimal
Location longitude
Name
string
Location name
Phone
string
Location phone
State
string
Location state
TimeZone
TimeZone
Returns the name of the TimeZone of the location
Zip
string
Location zip code
This call is to retrieve an array of PettyAccount objects for the location.

PettyAccount Type
Data Name
Data Type
Data Description
AccountType
PettyAccountType
Returns one of the following:
  • CashIn
  • CashOut
Id
int
Unique Id of this PettyAccount
Name
string
Name of this PettyAccount
This call is to retrieve an array of Promotion objects at the location.

Promotion Type
Data Name
Data Type
Data Description
Active
bool
True if this Promotion is active, False if inactive
AlternateId
string
AlternateId for this Promotion provided for customer integration
CustomFields
Array of CustomFields
Dictionary of User Defined key value pair.(Save of this field from API is in future scope)
Id
int
Unique Id of this Promotion
Name
string
Unique name of this Promotion
Type
PromotionType
Returns one of the following:
  • Bogo
  • OrderReduction
  • Coupon
  • GiftCard
  • Combo
This call is to retrieve an array of Register objects for the location.

Register Type
Data Name
Data Type
Data Description
Id
int
Unique Id of this Register
Name
string
Name of this Register
Number
int
Number of this Register
This call is to retrieve an array of RevenueCenter objects for the location.

RevenueCenter Type
Data Name
Data Type
Data Description
Active
bool
True if this RevenueCenter is active, False if inactive
Id
int
Unique Id of this RevenueCenter
Name
string
Name of this RevenueCenter
TaxIds
IdList
Maps to the Id(s) of the Tax(es) associated with this RevenueCenter
This call is to retrieve an array of Section objects for the location.

Section Type
Data Name
Data Type
Data Description
Id
int
Unique Id of this Section
Name
string
Name of this Section
This call is to retrieve an array of Surcharge objects at the location.

Surcharge Type
Data Name
Data Type
Data Description
Amount
decimal
Amount of this Surcharge
AutomaticallyApply
boolean
True if this Surcharge is automatically applied, False if not
Id
int
Unique Id of this Surcharge
Method
int
    Returns one of the following:
  • 0 = Fixed Per Order
  • 1 = Percentage Per Order
  • 2 = Fixed Per Item
  • 3 = Percentage Per Item
Name
string
Name of this Surcharge
Type
Int
Returns one of the following:
  • 0 = ServiceCharge
  • 1 = Gratuity
  • 2 = NonCashAdjustment
This call is to retrieve an array of Tax objects at the location.

Tax Type
Data Name
Data Type
Data Description
Amount
decimal
Amount of this Tax
Id
int
Unique Id of this Tax
Name
string
Name of this Tax
Type
int
Returns one of the following:
  • 0 = None
  • 1 = Percentage
  • 2 = FlatFee
This call is to retrieve an array of Tender objects for the location.

Tender Type
Data Name
Data Type
Data Description
Active
bool
True if this Tender is active, False if inactive
CardType
CardType
Returns one of the following:
  • 0 = None
  • 1 = MasterCard
  • 2 = Visa
  • 3 = American Express
  • 4 = Diners Club
  • 5 = Discover
  • 6 = enRoute
  • 7 = JCB
  • 8 = Private
Id
int
Unique Id of this Tender
Name
string
Name of this Tender
TenderType
TenderType
Returns one of the following:
  • None
  • Cash
  • CreditCard
  • GiftCard
  • GiftCertificate
  • Check
  • HouseAccount
  • External
  • Debit
This call is to retrieve an array of VoidReason objects for the location.

VoidReason Type
Data Name
Data Type
Data Description
Id
int
Unique Id of this VoidReason
Name
string
Name of this VoidReason
                
                    
                    
GetCashDrawers Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetCashDrawers.SettingsServiceReference; namespace Settings_GetCashDrawers { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetCashDrawers call var response = client.GetCashDrawers(accessToken, locationToken); //If call is successful, loop through collection of CashDrawer objects returned foreach (var item in response) { Console.WriteLine("Cash Drawer #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("TerminalId: " + item.TerminalId); Console.WriteLine("Name: " + item.Name); Console.WriteLine("DefaultBank: " + item.DefaultBank); Console.WriteLine("DrawerNumber: " + item.DrawerNumber); Console.WriteLine("IsCompulsory: " + item.IsCompulsory); Console.WriteLine("IsPublic: " + item.IsPublic); Console.WriteLine("Type: " + item.Type); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetCashDrawers Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetCashDrawers { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetCashDrawersAsync(accessToken, locationToken); //If call is successful, loop through collection of CashDrawer objects returned foreach (var item in response.Result) { Console.WriteLine("Cash Drawer #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("TerminalId: " + item.TerminalId); Console.WriteLine("Name: " + item.Name); Console.WriteLine("DefaultBank: " + item.DefaultBank); Console.WriteLine("DrawerNumber: " + item.DrawerNumber); Console.WriteLine("IsCompulsory: " + item.IsCompulsory); Console.WriteLine("IsPublic: " + item.IsPublic); Console.WriteLine("Type: " + item.Type); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); } } catch (Exception ex) { Console.WriteLine("Error calling GetCashDrawers operation: " + ex.Message); } } } }
GetCashDrawers Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetCashDrawers> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetCashDrawers> </soapenv:Body> </soapenv:Envelope>
GetCashDrawers Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetCashDrawers call res = service.GetCashDrawers(accessToken, locationToken) #If call is successful, loop through collection of CashDrawers objects returned for item in res: print('Cash Drawer #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('TerminalId: ' + str(item.TerminalId)) print('Name: ' + str(item.Name)) print('DefaultBank: ' + str(item.DefaultBank)) print('DrawerNumber: ' + str(item.DrawerNumber)) print('IsCompulsory: ' + str(item.IsCompulsory)) print('IsPublic: ' + str(item.IsPublic)) print('Type: ' + str(item.Type)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetDayParts Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetDayParts.SettingsServiceReference; namespace Settings_GetDayParts { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetDayParts call var response = client.GetDayParts(accessToken, locationToken); //If call is successful, loop through collection of DayPart objects returned foreach (var item in response) { Console.WriteLine("DayPart #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("StartTime: " + item.StartTime); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetDayParts Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetDayParts { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetDayPartsAsync(accessToken, locationToken); //If call is successful, loop through collection of DayPart objects returned foreach (var item in response.Result) { Console.WriteLine("DayPart #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("StartTime: " + item.StartTime); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); } } catch (Exception ex) { Console.WriteLine("Error calling GetDayParts operation: " + ex.Message); } } } }
GetDayParts Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetDayParts> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetDayParts> </soapenv:Body> </soapenv:Envelope>
GetDayParts Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetDayParts call res = service.GetDayParts(accessToken, locationToken) #If call is successful, loop through collection of DayPart objects returned for item in res: print('Day Part #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('StartTime: ' + str(item.StartTime)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetDestinations Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetDestinations.SettingsServiceReference; namespace Settings_GetDestinations { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetDestinations call var response = client.GetDestinations(accessToken, locationToken); //If call is successful, loop through collection of Destination objects returned foreach (var item in response) { Console.WriteLine("Destination #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Description: " + item.Description); Console.WriteLine("KitchenDescription: " + item.KitchenDescription); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetDestinations Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetDestinations { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetDestinationsAsync(accessToken, locationToken); //If call is successful, loop through collection of Destination objects returned foreach (var item in response.Result) { Console.WriteLine("Destination #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Description: " + item.Description); Console.WriteLine("KitchenDescription: " + item.KitchenDescription); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); } } catch (Exception ex) { Console.WriteLine("Error calling GetDestinations operation: " + ex.Message); } } } }
GetDestinations Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetDestinations> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetDestinations> </soapenv:Body> </soapenv:Envelope>
GetDestinations Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetDestinations call res = service.GetDestinations(accessToken, accessToken) #If call is successful, loop through collection of Destination objects returned for item in res: print('Destination #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('Description: ' + str(item.Description)) print('KitchenDescription: ' + str(item.KitchenDescription)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetDiscounts Minified Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetDiscounts.SettingsServiceReference; namespace Settings_GetDiscounts { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetDiscounts call var response = client.GetDiscounts(accessToken, locationToken); //If call is successful, loop through collection of Discount objects returned foreach (var item in response) { Console.WriteLine("Discount #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Amount: " + item.Amount); Console.WriteLine("Rate: " + item.Rate); Console.WriteLine("Type: " + item.Type); Console.WriteLine("Active: " + item.Active); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetDiscounts Minified Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetDiscounts { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetDiscountsAsync(accessToken, locationToken); //If call is successful, loop through collection of Discount objects returned foreach (var item in response.Result) { Console.WriteLine("Discount #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Amount: " + item.Amount); Console.WriteLine("Rate: " + item.Rate); Console.WriteLine("Type: " + item.Type); Console.WriteLine("Active: " + item.Active); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetDiscounts operation: " + ex.Message); } } } }
GetDiscounts Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetDiscounts> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetDiscounts> </soapenv:Body> </soapenv:Envelope>
GetDiscounts Minified Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetDiscounts call res = service.GetDiscounts(accessToken, accessToken) #If call is successful, loop through collection of Discount objects returned for item in res: print('Discount #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('Amount: ' + str(item.Amount)) print('Rate: ' + str(item.Rate)) print('Type: ' + str(item.Type)) print('Active: ' + str(item.Active)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetEmployees Minified Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetEmployees.SettingsServiceReference; namespace Settings_GetEmployees { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetEmployees call var response = client.GetEmployees(accessToken, locationToken); //If call is successful, loop through collection of Employee objects returned foreach (var item in response) { Console.WriteLine("Employee #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Jobs:"); //Loop through collection of EmployeeJob objects returned if (item.Jobs.Count > 0) { foreach (var job in item.Jobs) { Console.WriteLine("\tJobId: " + job.JobId); Console.WriteLine("\tPayRate: " + job.PayRate); Console.WriteLine("\tSecurityLevelId: " + job.SecurityLevelId); Console.WriteLine("\t------------"); } } Console.WriteLine("PayrollId: " + item.PayrollId); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetEmployees Minified Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetEmployees { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetEmployeesAsync(accessToken, locationToken); //If call is successful, loop through collection of Employee objects returned foreach (var item in response.Result) { Console.WriteLine("Employee #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Jobs:"); //Loop through collection of EmployeeJob objects returned if (item.Jobs.Count > 0) { foreach (var job in item.Jobs) { Console.WriteLine("\tJobId: " + job.JobId); Console.WriteLine("\tPayRate: " + job.PayRate); Console.WriteLine("\tSecurityLevelId: " + job.SecurityLevelId); Console.WriteLine("\t------------"); } } Console.WriteLine("PayrollId: " + item.PayrollId); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetEmployees operation: " + ex.Message); } } } }
GetEmployees Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetEmployees> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetEmployees> </soapenv:Body> </soapenv:Envelope>
GetEmployees Minified Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetEmployees call res = service.GetEmployees(accessToken, accessToken) #If call is successful, loop through collection of Employee objects returned for item in res: print('Employee #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) if(item.Jobs != None): print('Jobs:') #Loop through collection of EmployeeJob objects returned for job in item.Jobs.EmployeeJob: print('\tJobId: ' + str(job.JobId)) print('\tPayRate: ' + str(job.PayRate)) print('\tSecurityLevelId: ' + str(job.SecurityLevelId)) print('\t------------') else: print('Jobs: None') print('PayrollId: ' + str(item.PayrollId)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetItemGroups Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetItemGroups.SettingsServiceReference; namespace Settings_GetItemGroups { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetItemGroups call var response = client.GetItemGroups(accessToken, locationToken); //If call is successful, loop through collection of ItemGroup objects returned foreach (var item in response) { Console.WriteLine("Item Group #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("AlternateId: " + item.AlternateId); Console.WriteLine("Name: " + item.Name); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("Items:"); //Loop through ItemGroupItems objects returned if (item.Items.Length > 0) { foreach (var groupItem in item.Items) { Console.WriteLine("\tItemId: " + groupItem.ItemId); } } Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.Read(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetItemGroups Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetItemGroups { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetItemGroupsAsync(accessToken, locationToken); //If call is successful, loop through collection of ItemGroup objects returned foreach (var item in response.Result) { Console.WriteLine("Item Group #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("AlternateId: " + item.AlternateId); Console.WriteLine("Name: " + item.Name); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("Items:"); //Loop through ItemGroupItems objects returned if (item.Items.Length > 0) { foreach (var groupItem in item.Items) { Console.WriteLine("\tItemId: " + groupItem.ItemId); } } Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetItemGroups operation: " + ex.Message); } } } }
GetItemGroups Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetItemGroups> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetItemGroups> </soapenv:Body> </soapenv:Envelope>
GetItemGroups Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetItemGroups call res = service.GetItemGroups(accessToken, accessToken) #If call is successful, loop through collection of ItemGroup objects returned for item in res: print('Item Group #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('AlternateId: ' + str(item.AlternateId)) print('Name: ' + str(item.Name)) print('IsDeleted: ' + str(item.IsDeleted)) if(item.Items != None): print('Items:') #Loop through ItemGroupItem objects returned for groupItem in item.Items.ItemGroupItem: print('\tItemId: ' + str(groupItem.ItemId)) else: print('Items: None') print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetItems Minified Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetItems.SettingsServiceReference; namespace Settings_GetItems { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetItems call var response = client.GetItems(accessToken, locationToken); //If call is successful, loop through collection of Item objects returned foreach (var item in response) { Console.WriteLine("Item #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("PLU: " + item.PLU); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Price: " + item.Price); Console.WriteLine("Active: " + item.Active); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetItems Minified Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetItems { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetItemsAsync(accessToken, locationToken); //If call is successful, loop through collection of Item objects returned foreach (var item in response.Result) { Console.WriteLine("Item #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("PLU: " + item.PLU); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Price: " + item.Price); Console.WriteLine("Active: " + item.Active); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetItems operation: " + ex.Message); } } } }
GetItems Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetItems> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetItems> </soapenv:Body> </soapenv:Envelope>
GetItems Minified Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetItems call res = service.GetItems(accessToken, accessToken) #If call is successful, loop through collection of Item objects returned for item in res: print('Item #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('PLU: ' + str(item.PLU)) print('Name: ' + item.Name) print('Price: ' + str(item.Price)) print('Active: ' + str(item.Active)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetJobs Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetJobs.SettingsServiceReference; namespace Settings_GetJobs { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetJobs call var response = client.GetJobs(accessToken, locationToken); //If call is successful, loop through collection of Job objects returned foreach (var item in response) { Console.WriteLine("Job #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("JobUniqueId: " + item.JobUniqueId); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetJobs Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetJobs { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetJobsAsync(accessToken, locationToken); //If call is successful, loop through collection of Job objects returned foreach (var item in response.Result) { Console.WriteLine("Job #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("JobUniqueId: " + item.JobUniqueId); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetJobs operation: " + ex.Message); } } } }
GetJobs Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetJobs> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetJobs> </soapenv:Body> </soapenv:Envelope>
GetJobs Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetJobs call res = service.GetJobs(accessToken, locationToken) #If call is successful, loop through collection of Job objects returned for item in res: print('Job #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetLoyaltyRewards Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using System.ServiceModel.Channels; using Settings_GetLoyaltyRewards.SettingsServiceReference; namespace Settings_GetLoyaltyRewards { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetLoyaltyRewards call var response = client.GetLoyaltyRewards(accessToken, locationToken); //If call is successful, loop through collection of LoyaltyReward objects returned foreach (var item in response.OfType<DiscountReward>()) { Console.WriteLine("Loyalty Reward #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Type: " + item.Type); Console.WriteLine("IsActive: " + item.IsActive); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("---------------------------"); count++; } foreach (var item in response.OfType<GiftCardReward>()) { Console.WriteLine("Loyalty Reward #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Type: " + item.Type); Console.WriteLine("IsActive: " + item.IsActive); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("Amount: " + item.Amount); Console.WriteLine("---------------------------"); count++; } foreach (var item in response.OfType<PromotionReward>()) { Console.WriteLine("Loyalty Reward #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Type: " + item.Type); Console.WriteLine("IsActive: " + item.IsActive); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("PromotionId: " + item.PromotionId); Console.WriteLine("---------------------------"); count++; } foreach (var item in response.OfType<VoucherReward>()) { Console.WriteLine("Loyalty Reward #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Type: " + item.Type); Console.WriteLine("IsActive: " + item.IsActive); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetLoyaltyRewards Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetLoyaltyRewards { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetLoyaltyRewardsAsync(accessToken, locationToken); //If call is successful, loop through collection of LoyaltyReward objects returned foreach (var item in response.Result.OfType<DiscountReward>()) { Console.WriteLine("Loyalty Reward #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Type: " + item.Type); Console.WriteLine("IsActive: " + item.IsActive); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("---------------------------"); count++; } foreach (var item in response.Result.OfType<GiftCardReward>()) { Console.WriteLine("Loyalty Reward #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Type: " + item.Type); Console.WriteLine("IsActive: " + item.IsActive); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("Amount: " + item.Amount); Console.WriteLine("---------------------------"); count++; } foreach (var item in response.Result.OfType<PromotionReward>()) { Console.WriteLine("Loyalty Reward #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Type: " + item.Type); Console.WriteLine("IsActive: " + item.IsActive); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("PromotionId: " + item.PromotionId); Console.WriteLine("---------------------------"); count++; } foreach (var item in response.Result.OfType<VoucherReward>()) { Console.WriteLine("Loyalty Reward #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Type: " + item.Type); Console.WriteLine("IsActive: " + item.IsActive); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetLoyaltyRewards operation: " + ex.Message); } } } }
GetLoyaltyRewards Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetLoyaltyRewards> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetLoyaltyRewards> </soapenv:Body> </soapenv:Envelope>
GetLoyaltyRewards Sample Code
from zeep import Client #Helper function to display LoyaltyRewardType def LoyaltyRewardType(i): switcher = { 0:'DiscountReward', 1:'PromotionReward', 2:'GiftCardReward', 3:'VoucherReward', } return switcher.get(i, 'Invalid LoyalRewardType') #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetLoyaltyRewards call res = service.GetLoyaltyRewards(accessToken, locationToken) #If call is successful, loop through collection of VoidReason objects returned for item in res: reward = LoyaltyRewardType(item.Type) print('Loyalty Reward({}) #{}'.format(reward, count)) print('---------------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('Type: ' + str(item.Type)) print('IsActive: ' + str(item.IsActive)) print('IsDeleted: ' + str(item.IsDeleted)) if item.Type == 0: print('DiscountId: ' + str(item.DiscountId)) elif item.Type == 1: print('PromotionId: ' + str(item.PromotionId)) elif item.Type == 2: print('Amount: ' + str(item.Amount)) print('---------------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetModifierCodes Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetModifierCodes.SettingsServiceReference; using Exception = System.Exception; namespace Settings_GetModifierCodes { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetModifierCodes call var response = client.GetModifierCodes(accessToken, locationToken); //If call is successful, loop through collection of ModifierCode objects returned foreach (var item in response) { Console.WriteLine("Modifier Code #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Abbreviation: " + item.Abbreviation); Console.WriteLine("Type: " + item.Type); Console.WriteLine("AppliesTo: " + item.AppliesTo); Console.WriteLine("Active: " + item.Active); Console.WriteLine("IsSystem: " + item.IsSystem); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetModifierCodes Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetModifierCodes { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetModifierCodesAsync(accessToken, locationToken); //If call is successful, loop through collection of ModifierCode objects returned foreach (var item in response.Result) { Console.WriteLine("Modifier Code #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Abbreviation: " + item.Abbreviation); Console.WriteLine("Type: " + item.Type); Console.WriteLine("AppliesTo: " + item.AppliesTo); Console.WriteLine("Active: " + item.Active); Console.WriteLine("IsSystem: " + item.IsSystem); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetModifierCodes operation: " + ex.Message); } } } }
GetModifierCodes Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetModifierCodes> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetModifierCodes> </soapenv:Body> </soapenv:Envelope>
GetModifierCodes Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetModifierCodes call res = service.GetModifierCodes(accessToken, locationToken) #If call is successful, loop through collection of ModifierCode objects returned for item in res: print('Modifier Code #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('Abbreviation: ' + str(item.Abbreviation)) print('Type: ' + str(item.Type)) print('AppliesTo: ' + str(item.AppliesTo)) print('Active: ' + str(item.Active)) print('IsSystem: ' + str(item.IsSystem)) print('IsDeleted: ' + str(item.IsDeleted)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetModifierGroups Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetModifierGroups.SettingsServiceReference; namespace Settings_GetModifierGroups { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetModifierGroups call var response = client.GetModifierGroups(accessToken, locationToken); //If call is successful, loop through collection of ModifierGroup objects returned foreach (var item in response) { Console.WriteLine("Modifier Group #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Description: " + item.Description); Console.WriteLine("DisplayName: " + item.DisplayName); Console.WriteLine("Items:"); //Loop through collection of ModifierGroupItem objects returned if (item.Items != null) { foreach (var modifierGroupItem in item.Items) { Console.WriteLine("\tPosition: " + modifierGroupItem.Position); Console.WriteLine("\tItemId: " + modifierGroupItem.ItemId); Console.WriteLine("\tPrice: " + modifierGroupItem.Price); Console.WriteLine("\tPriceMethod: " + modifierGroupItem.PriceMethod); Console.WriteLine("\t------------"); } } Console.WriteLine("Minimum: " + item.Minimum); Console.WriteLine("Maximum: " + item.Maximum); Console.WriteLine("Free: " + item.Free); Console.WriteLine("PanelId: " + item.PanelId); Console.WriteLine("FlowRequired: " + item.FlowRequired); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetModifierGroups Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetModifierGroups { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetModifierGroupsAsync(accessToken, locationToken); //If call is successful, loop through collection of ModifierGroup objects returned foreach (var item in response.Result) { Console.WriteLine("Modifier Group #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Description: " + item.Description); Console.WriteLine("DisplayName: " + item.DisplayName); Console.WriteLine("Items:"); //Loop through collection of ModifierGroupItem objects returned if (item.Items != null) { foreach (var modifierGroupItem in item.Items) { Console.WriteLine("\tPosition: " + modifierGroupItem.Position); Console.WriteLine("\tItemId: " + modifierGroupItem.ItemId); Console.WriteLine("\tPrice: " + modifierGroupItem.Price); Console.WriteLine("\tPriceMethod: " + modifierGroupItem.PriceMethod); Console.WriteLine("\t------------"); } } Console.WriteLine("Minimum: " + item.Minimum); Console.WriteLine("Maximum: " + item.Maximum); Console.WriteLine("Free: " + item.Free); Console.WriteLine("PanelId: " + item.PanelId); Console.WriteLine("FlowRequired: " + item.FlowRequired); Console.WriteLine("IsDeleted: " + item.IsDeleted); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetModifierGroups operation: " + ex.Message); } } } }
GetModifierGroups Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetModifierGroups> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetModifierGroups> </soapenv:Body> </soapenv:Envelope>
GetModifierGroups Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetModifierGroups call res = service.GetModifierGroups(accessToken, locationToken) #If call is successful, loop through collection of ModifierGroup objects returned for item in res: print('Modifier Group #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('Description: ' + str(item.Description)) print('DisplayName: ' + str(item.DisplayName)) if(item.Items != None): print('Items:') #Loop through collection of ModifierGroupItem objects returned for modifierGroupItem in item.Items.ModifierGroupItem: print('\tPosition: ' + str(modifierGroupItem.Position)) print('\tItemId: ' + str(modifierGroupItem.ItemId)) print('\tPrice: ' + str(modifierGroupItem.Price)) print('\tPriceMethod: ' + str(modifierGroupItem.PriceMethod)) print('\t------------') else: print('Items: None') print('Minimum: ' + str(item.Minimum)) print('Maximum: ' + str(item.Maximum)) print('Free: ' + str(item.Free)) print('PanelId: ' + str(item.PanelId)) print('FlowRequired: ' + str(item.FlowRequired)) print('IsDeleted: ' + str(item.IsDeleted)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetOptions Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetOptions.SettingsServiceReference; namespace Settings_GetOptions { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetOptions call var response = client.GetOptions(accessToken, locationToken); var location = response.Location; //If call is successful, list Location details Console.WriteLine("Name: " + location.Name); Console.WriteLine("Address1: " + location.Address1); Console.WriteLine("Address2: " + location.Address2); Console.WriteLine("City: " + location.City); Console.WriteLine("State: " + location.State); Console.WriteLine("Zip: " + location.Zip); Console.WriteLine("Country: " + location.Country); Console.WriteLine("Latitude: " + location.Latitude); Console.WriteLine("Longitude: " + location.Longitude); Console.WriteLine("Phone: " + location.Phone); Console.WriteLine("Fax: " + location.Fax); Console.WriteLine("TimeZone: " + location.TimeZone); Console.WriteLine("---------------------------"); Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetOptions Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetOptions { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetOptionsAsync(accessToken, locationToken); var location = response.Result.Location; //If call is successful, list Location details Console.WriteLine("Name: " + location.Name); Console.WriteLine("Address1: " + location.Address1); Console.WriteLine("Address2: " + location.Address2); Console.WriteLine("City: " + location.City); Console.WriteLine("State: " + location.State); Console.WriteLine("Zip: " + location.Zip); Console.WriteLine("Country: " + location.Country); Console.WriteLine("Latitude: " + location.Latitude); Console.WriteLine("Longitude: " + location.Longitude); Console.WriteLine("Phone: " + location.Phone); Console.WriteLine("Fax: " + location.Fax); Console.WriteLine("TimeZone: " + location.TimeZone); Console.WriteLine("---------------------------"); Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetOptions operation: " + ex.Message); } } } }
GetOptions Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetOptions> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetOptions> </soapenv:Body> </soapenv:Envelope>
GetOptions Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' try: #Include tokens in request body and make GetOptions call res = service.GetOptions(accessToken, locationToken) location = res.Location #If call is successful, list Location details print('Name: ' + str(location.Name)) print('Address1: ' + str(location.Address1)) print('Address2: ' + str(location.Address2)) print('City: ' + str(location.City)) print('State: ' + str(location.State)) print('Zip: ' + str(location.Zip)) print('Country: ' + str(location.Country)) print('Latitude: ' + str(location.Latitude)) print('Longitude: ' + str(location.Longitude)) print('Phone: ' + str(location.Phone)) print('Fax: ' + str(location.Fax)) print('TimeZone: ' + str(location.TimeZone)) print('---------------------------') print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetPettyAccounts Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetPettyAccounts.SettingsServiceReference; namespace Settings_GetPettyAccounts { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetPettyAccounts call var response = client.GetPettyAccounts(accessToken, locationToken); //If call is successful, loop through collection of PettyAccount objects returned foreach (var item in response) { Console.WriteLine("Petty Account #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("AccountType: " + item.AccountType); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetPettyAccounts Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetPettyAccounts { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetPettyAccountsAsync(accessToken, locationToken); //If call is successful, loop through collection of PettyAccount objects returned foreach (var item in response.Result) { Console.WriteLine("Petty Account #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("AccountType: " + item.AccountType); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetPettyAccounts operation: " + ex.Message); } } } }
GetPettyAccounts Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetPettyAccounts> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetPettyAccounts> </soapenv:Body> </soapenv:Envelope>
GetPettyAccounts Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetPettyAccounts call res = service.GetPettyAccounts(accessToken, locationToken) #If call is successful, loop through collection of PettyAccount objects returned for item in res: print('Petty Account #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('AccountType: ' + str(item.AccountType)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetPromotions Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetPromotions.SettingsServiceReference; namespace Settings_GetPromotions { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetPromotions call var response = client.GetPromotions(accessToken, locationToken); //If call is successful, loop through collection of Promotion objects returned foreach (var item in response) { Console.WriteLine("Promotion #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("AlternateId: " + item.AlternateId); if (item.CustomFields != null) { foreach (var customfield in item.CustomFields) { Console.WriteLine("customfield: "); Console.WriteLine("\tId: " + customfield.Id); Console.WriteLine("\tFieldName: " + customfield.FieldName); Console.WriteLine("\tValue: " + customfield.Value); Console.WriteLine("\t-----------------------"); } } Console.WriteLine("Name: " + item.Name); Console.WriteLine("Active: " + item.Active); Console.WriteLine("Type: " + item.Type); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetPromotions Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetPromotions { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetPromotionsAsync(accessToken, locationToken); //If call is successful, loop through collection of Promotion objects returned foreach (var item in response.Result) { Console.WriteLine("Promotion #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("AlternateId: " + item.AlternateId); if (item.CustomFields != null) { foreach (var customfield in item.CustomFields) { Console.WriteLine("customfield: "); Console.WriteLine("\tId: " + customfield.Id); Console.WriteLine("\tFieldName: " + customfield.FieldName); Console.WriteLine("\tValue: " + customfield.Value); Console.WriteLine("\t-----------------------"); } } Console.WriteLine("Name: " + item.Name); Console.WriteLine("Active: " + item.Active); Console.WriteLine("Type: " + item.Type); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetPromotions operation: " + ex.Message); } } } }
GetPromotions Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetPromotions> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetPromotions> </soapenv:Body> </soapenv:Envelope>
GetPromotions Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetPromotions call res = service.GetPromotions(accessToken, locationToken) #If call is successful, loop through collection of Promotion objects returned for item in res: print('Promotion #' + str(count)) print('AlternateId: ' + str(item.AlternateId)) print('---------------------------') if(item.CustomFields != None): #Loop through collection of ItemCustomField objects returned for change in item.CustomFields: print('\tId: ' + str(change.Id)) print('\tFieldName: ' + str(change.FieldName)) print('\tValue: ' + str(change.Value)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('Active: ' + str(item.Active)) print('Type: ' + str(item.Type)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetRegisters Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetRegisters.SettingsServiceReference; namespace Settings_GetRegisters { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetRegisters call var response = client.GetRegisters(accessToken, locationToken); //If call is successful, loop through collection of Register objects returned foreach (var item in response) { Console.WriteLine("Register #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Number: " + item.Number); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetRegisters Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetRegisters { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetRegistersAsync(accessToken, locationToken); //If call is successful, loop through collection of Register objects returned foreach (var item in response.Result) { Console.WriteLine("Register #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Number: " + item.Number); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetRegisters operation: " + ex.Message); } } } }
GetRegisters Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetRegisters> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetRegisters> </soapenv:Body> </soapenv:Envelope>
GetRegisters Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetRegisters call res = service.GetRegisters(accessToken, locationToken) #If call is successful, loop through collection of Register objects returned for item in res: print('Register #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('Number: ' + str(item.Number)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetRevenueCenters Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetRevenueCenters.SettingsServiceReference; namespace Settings_GetRevenueCenters { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetRevenueCenters call var response = client.GetRevenueCenters(accessToken, locationToken); //If call is successful, loop through collection of RevenueCenter objects returned foreach (var item in response) { Console.WriteLine("Revenue Center #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("TaxIds:"); //Loop through TaxIds returned if (item.TaxIds != null) { foreach (var id in item.TaxIds) { Console.WriteLine("\tId: " + id); } } Console.WriteLine("Active: " + item.Active); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetRevenueCenters Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetRevenueCenters { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetRevenueCentersAsync(accessToken, locationToken); //If call is successful, loop through collection of RevenueCenter objects returned foreach (var item in response.Result) { Console.WriteLine("Revenue Center #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("TaxIds:"); //Loop through TaxIds returned if (item.TaxIds != null) { foreach (var id in item.TaxIds) { Console.WriteLine("\tId: " + id); } } Console.WriteLine("Active: " + item.Active); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetRevenueCenters operation: " + ex.Message); } } } }
GetRevenueCenters Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetRevenueCenters> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetRevenueCenters> </soapenv:Body> </soapenv:Envelope>
GetRevenueCenters Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetRevenueCenters call res = service.GetRevenueCenters(accessToken, locationToken) #If call is successful, loop through collection of RevenueCenter objects returned for item in res: print('Revenue Center #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) if(item.TaxIds != None): print('TaxIds:') #Loop through TaxIds returned for id in item.TaxIds.int: print('\tId: ' + str(id)) else: print('TaxIds: None') print('Active: ' + str(item.Active)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetSections Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetSections.SettingsServiceReference; namespace Settings_GetSections { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetSections call var response = client.GetSections(accessToken, locationToken); //If call is successful, loop through collection of Section objects returned foreach (var item in response) { Console.WriteLine("Section #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetSections Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetSections { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetSectionsAsync(accessToken, locationToken); //If call is successful, loop through collection of Section objects returned foreach (var item in response.Result) { Console.WriteLine("Section #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetSections operation: " + ex.Message); } } } }
GetSections Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetSections> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetSections> </soapenv:Body> </soapenv:Envelope>
GetSections Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetSections call res = service.GetSections(accessToken, locationToken) #If call is successful, loop through collection of Section objects returned for item in res: print('Section #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetSurcharges Minified Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetSurcharges.SettingsServiceReference; namespace Settings_GetSurcharges { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetSurcharges call var response = client.GetSurcharges(accessToken, locationToken); //If call is successful, loop through collection of Surcharge objects returned foreach (var item in response) { Console.WriteLine("Surcharge #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Amount: " + item.Amount); Console.WriteLine("AutomaticallyApply: " + item.AutomaticallyApply); Console.WriteLine("Method: " + item.Method); Console.WriteLine("Type: " + item.Type); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetSurcharges Minified Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetSurcharges { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetSurchargesAsync(accessToken, locationToken); //If call is successful, loop through collection of Surcharge objects returned foreach (var item in response.Result) { Console.WriteLine("Surcharge #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Amount: " + item.Amount); Console.WriteLine("AutomaticallyApply: " + item.AutomaticallyApply); Console.WriteLine("Method: " + item.Method); Console.WriteLine("Type: " + item.Type); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetSurcharges operation: " + ex.Message); } } } }
GetSurcharges Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetSurcharges> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetSurcharges> </soapenv:Body> </soapenv:Envelope>
GetSurcharges Minified Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetSurcharges call res = service.GetSurcharges(accessToken, locationToken) #If call is successful, loop through collection of Surcharge objects returned for item in res: print('Surcharge #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('Amount: ' + str(item.Amount)) print('AutomaticallyApply: ' + str(item.AutomaticallyApply)) print('StartDate: ' + str(item.StartDate)) print('TerminalTypes: ' + str(item.TerminalTypes)) print('EnforceDateRanges: ' + str(item.EnforceDateRanges)) print('EnforceDays: ' + str(item.EnforceDays)) print('Prompt: ' + str(item.Prompt)) if(item.TaxIds != None): print('TaxIds:') #Loop through TaxIds returned for id in item.TaxIds.int: print('\tId: ' + str(id)) else: print('TaxIds: None') if(item.ValidDestinationIds != None): print('ValidDestinationIds:') #Loop through ValidDestinationIds returned for id in item.ValidDestinationIds.int: print('\tId: ' + str(id)) else: print('ValidDestinationIds: None') print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetTaxes Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetTaxes.SettingsServiceReference; namespace Settings_GetTaxes { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetTaxes call var response = client.GetTaxes(accessToken, locationToken); //If call is successful, loop through collection of Tax objects returned foreach (var item in response) { Console.WriteLine("Tax #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Amount: " + item.Amount); Console.WriteLine("Type: " + item.Type); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetTaxes Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetTaxes { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetTaxesAsync(accessToken, locationToken); //If call is successful, loop through collection of Tax objects returned foreach (var item in response.Result) { Console.WriteLine("Tax #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("Amount: " + item.Amount); Console.WriteLine("Type: " + item.Type); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetTaxes operation: " + ex.Message); } } } }
GetTaxes Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetTaxes> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetTaxes> </soapenv:Body> </soapenv:Envelope>
GetTaxes Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetTaxes call res = service.GetTaxes(accessToken, locationToken) #If call is successful, loop through collection of Tax objects returned for item in res: print('Tax #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('Amount: ' + str(item.Amount)) print('Type: ' + str(item.Type)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetTenders Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetTenders.SettingsServiceReference; namespace Settings_GetTenders { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetTenders call var response = client.GetTenders(accessToken, locationToken); //If call is successful, loop through collection of Tender objects returned foreach (var item in response) { Console.WriteLine("Tender #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("DefaultAmount: " + item.DefaultAmount); Console.WriteLine("Active: " + item.Active); Console.WriteLine("TenderType: " + item.TenderType); Console.WriteLine("CardType: " + item.CardType); Console.WriteLine("ReconciliationMethod: " + item.ReconciliationMethod); Console.WriteLine("MinimumAccountDigits: " + item.MinimumAccountDigits); Console.WriteLine("MaximumAccountDigits: " + item.MaximumAccountDigits); Console.WriteLine("MaxTipPercent: " + item.MaxTipPercent); Console.WriteLine("VarianceAmount:" + item.VarianceAmount); Console.WriteLine("AllowChange: " + item.AllowChange); Console.WriteLine("AllowTips: " + item.AllowTips); Console.WriteLine("OpenDrawer: " + item.OpenDrawer); Console.WriteLine("RequiresAuthorization: " + item.RequiresAuthorization); Console.WriteLine("SignatureCapture: " + item.SignatureCapture); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetTenders Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetTenders { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetTendersAsync(accessToken, locationToken); //If call is successful, loop through collection of Tender objects returned foreach (var item in response.Result) { Console.WriteLine("Tender #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("DefaultAmount: " + item.DefaultAmount); Console.WriteLine("Active: " + item.Active); Console.WriteLine("TenderType: " + item.TenderType); Console.WriteLine("CardType: " + item.CardType); Console.WriteLine("ReconciliationMethod: " + item.ReconciliationMethod); Console.WriteLine("MinimumAccountDigits: " + item.MinimumAccountDigits); Console.WriteLine("MaximumAccountDigits: " + item.MaximumAccountDigits); Console.WriteLine("MaxTipPercent: " + item.MaxTipPercent); Console.WriteLine("VarianceAmount:" + item.VarianceAmount); Console.WriteLine("AllowChange: " + item.AllowChange); Console.WriteLine("AllowTips: " + item.AllowTips); Console.WriteLine("OpenDrawer: " + item.OpenDrawer); Console.WriteLine("RequiresAuthorization: " + item.RequiresAuthorization); Console.WriteLine("SignatureCapture: " + item.SignatureCapture); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetTenders operation: " + ex.Message); } } } }
GetTenders Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetTenders> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetTenders> </soapenv:Body> </soapenv:Envelope>
GetTenders Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetTenders call res = service.GetTenders(accessToken, accessToken) #If call is successful, loop through collection of Tender objects returned for item in res: print('Tax #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('DefaultAmount: ' + str(item.DefaultAmount)) print('Active: ' + str(item.Active)) print('TenderType: ' + str(item.TenderType)) print('ReconciliationMethod: ' + str(item.ReconciliationMethod)) print('MinimumAccountDigits: ' + str(item.MinimumAccountDigits)) print('MaximumAccountDigits: ' + str(item.MaximumAccountDigits)) print('MaxTipPercent: ' + str(item.MaxTipPercent)) print('VarianceAmount: ' + str(item.VarianceAmount)) print('AllowChange: ' + str(item.AllowChange)) print('AllowTips: ' + str(item.AllowTips)) print('OpenDrawer: ' + str(item.OpenDrawer)) print('RequiresAuthorization: ' + str(item.RequiresAuthorization)) print('SignatureCapture: ' + str(item.SignatureCapture)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)

                
                    
                    
GetVoidReasons Sample Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using Settings_GetVoidReasons.SettingsServiceReference; namespace Settings_GetVoidReasons { class Program { static void Main(string[] args) { //Connect to Settings service client var client = new SettingsWebServiceClient(); //Set security protocol to TLS 1.2 System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; using (var scope = new OperationContextScope(client.InnerChannel)) { //Include tokens in request body String accessToken = @"AccessToken"; String locationToken = @"LocationToken"; int count = 1; try { //Make GetVoidReasons call var response = client.GetVoidReasons(accessToken, locationToken); //If call is successful, loop through collection of VoidReason objects returned foreach (var item in response) { Console.WriteLine("Void Reason #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } catch (Exception e) { Console.WriteLine("Error Message: " + e.Message); Console.ReadKey(); } } } } }
GetVoidReasons Sample Code
using ServiceReference2; using System.Diagnostics.Contracts; using System.ServiceModel; using System.ServiceModel.Channels; namespace Settings_GetVoidReasons { class Program { public static ServiceCollection services = new ServiceCollection(); public static void AddSettingServiceClient() { services.AddTransient<ISettingsWebService>((provider) => { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; EndpointAddress endpointAddress = new EndpointAddress("{YOUR_WSDL_URL_GOES_HERE}"); ChannelFactory<ISettingsWebService> factory = new ChannelFactory<ISettingsWebService>(binding, endpointAddress); return factory.CreateChannel(); }); } static void Main(string[] args) { AddSettingServiceClient(); ISettingsWebService client = services.BuildServiceProvider().GetRequiredService<ISettingsWebService>(); try { int count = 1; using (OperationContextScope scope = new OperationContextScope((IContextChannel)client)) { OperationContext context = OperationContext.Current; HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty(); string accessToken = 'AccessToken'; string locationToken = 'LocationToken'; context.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var response = client.GetVoidReasonsAsync(accessToken, locationToken); //If call is successful, loop through collection of VoidReason objects returned foreach (var item in response.Result) { Console.WriteLine("Void Reason #" + count); Console.WriteLine("---------------------------"); Console.WriteLine("Id: " + item.Id); Console.WriteLine("Name: " + item.Name); Console.WriteLine("---------------------------"); count++; } Console.WriteLine("End"); Console.ReadKey(); } } catch (Exception ex) { Console.WriteLine("Error calling GetVoidReasons operation: " + ex.Message); } } } }
GetVoidReasons Sample Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:GetVoidReasons> <tem:accessToken>AccessToken</tem:accessToken> <tem:locationToken>LocationToken</tem:locationToken> </tem:GetVoidReasons> </soapenv:Body> </soapenv:Envelope>
GetVoidReasons Sample Code
from zeep import Client #Connect to Settings service client client = Client(wsdl='{YOUR_WSDL_URL_GOES_HERE}') service = client.create_service( '{http://tempuri.org/}BasicHttpBinding_ISettingsWebService', 'https://{YourStack}.brinkpos.net/Settings.svc' ) accessToken = 'AccessToken' locationToken = 'LocationToken' count = 1 try: #Include tokens in request body and make GetVoidReasons call res = service.GetVoidReasons(accessToken, locationToken) #If call is successful, loop through collection of VoidReason objects returned for item in res: print('Void Reason #' + str(count)) print('---------------------------') print('Id: ' + str(item.Id)) print('Name: ' + str(item.Name)) print('---------------------------') count += 1 print('End') except Exception as e: print('Error Message: ' + e.message)