The following functions are provided to allow the reseller to create/edit/get postcode software customer account details
Function Function GetPriceForInternalFullAddressUsers(ByVal Parameters$, ByVal NoUsers&, ByVal NoAreas&, ByRef PriceToCustomer As Double, ByRef PriceToReseller As Double, ByRef PriceDescToCustomer$, ByRef PriceDescToReseller$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function GetPriceForInternalThoroughfareAddressUsers(ByVal Parameters$, ByVal NoUsers&, ByVal NoAreas&, ByRef PriceToCustomer As Double, ByRef PriceToReseller As Double, ByRef PriceDescToCustomer$, ByRef PriceDescToReseller$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function GetPriceForInternalPostzonAddressUsers(ByVal Parameters$, ByVal NoUsers&, ByVal NoAreas&, ByRef PriceToCustomer As Double, ByRef PriceToReseller As Double, ByRef PriceDescToCustomer$, ByRef PriceDescToReseller$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
Function GetPriceForInternalFullAddressUsers(ByVal Parameters$, ByVal NoUsers&, ByVal NoAreas&, ByRef PriceToCustomer As Double, ByRef PriceToReseller As Double, ByRef PriceDescToCustomer$, ByRef PriceDescToReseller$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function GetPriceForInternalThoroughfareAddressUsers(ByVal Parameters$, ByVal NoUsers&, ByVal NoAreas&, ByRef PriceToCustomer As Double, ByRef PriceToReseller As Double, ByRef PriceDescToCustomer$, ByRef PriceDescToReseller$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function GetPriceForInternalPostzonAddressUsers(ByVal Parameters$, ByVal NoUsers&, ByVal NoAreas&, ByRef PriceToCustomer As Double, ByRef PriceToReseller As Double, ByRef PriceDescToCustomer$, ByRef PriceDescToReseller$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
Returns True if successful, else error in ErrorDescription$
Example code Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim Parameters$ = "" 'For future use Dim PriceToCustomer As Double = 0, PriceToReseller As Double = 0, PriceDescToCustomer$ = "", PriceDescToReseller$ = "" Dim InpNumberOfUsers& = Me.InpNumberOfUsers.Text Dim InpNumberOfAreas& = Me.InpNumberOfAreas.Text If Not CustomerPortal.GetPriceForInternalFullAddressUsers(Parameters, _ InpNumberOfUsers&, InpNumberOfAreas&, _ PriceToCustomer, PriceToReseller, PriceDescToCustomer$, _ PriceDescToReseller$, ResellerAccountID, _ ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Price to customer:" & Format(PriceToCustomer, _ "#,##0.00") & vbCrLf & PriceDescToCustomer & vbCrLf & vbCrLf & _ "Price to reseller:" & Format(PriceToReseller, "#,##0.00") & _ vbCrLf & PriceDescToReseller End If
Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim Parameters$ = "" 'For future use Dim PriceToCustomer As Double = 0, PriceToReseller As Double = 0, PriceDescToCustomer$ = "", PriceDescToReseller$ = "" Dim InpNumberOfUsers& = Me.InpNumberOfUsers.Text Dim InpNumberOfAreas& = Me.InpNumberOfAreas.Text If Not CustomerPortal.GetPriceForInternalFullAddressUsers(Parameters, _ InpNumberOfUsers&, InpNumberOfAreas&, _ PriceToCustomer, PriceToReseller, PriceDescToCustomer$, _ PriceDescToReseller$, ResellerAccountID, _ ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Price to customer:" & Format(PriceToCustomer, _ "#,##0.00") & vbCrLf & PriceDescToCustomer & vbCrLf & vbCrLf & _ "Price to reseller:" & Format(PriceToReseller, "#,##0.00") & _ vbCrLf & PriceDescToReseller End If
Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal
Dim ErrorDescription$ = "" Dim Parameters$ = "" 'For future use Dim PriceToCustomer As Double = 0, PriceToReseller As Double = 0, PriceDescToCustomer$ = "", PriceDescToReseller$ = ""
Dim InpNumberOfUsers& = Me.InpNumberOfUsers.Text Dim InpNumberOfAreas& = Me.InpNumberOfAreas.Text
If Not CustomerPortal.GetPriceForInternalFullAddressUsers(Parameters, _ InpNumberOfUsers&, InpNumberOfAreas&, _ PriceToCustomer, PriceToReseller, PriceDescToCustomer$, _ PriceDescToReseller$, ResellerAccountID, _ ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Price to customer:" & Format(PriceToCustomer, _ "#,##0.00") & vbCrLf & PriceDescToCustomer & vbCrLf & vbCrLf & _ "Price to reseller:" & Format(PriceToReseller, "#,##0.00") & _ vbCrLf & PriceDescToReseller End If
Example:
For 1 user Internal Full Address call
PriceDescToCustomer:
Full PAF £220.00 per user * 1 = £220.00 +VAT
PriceDescToReseller:
Full PAF £187.00 per user * 1 = £187.00 +VAT at 15% commission
Please note: Postcode Areas are not supported for Thoroughfare & Postzon Licenses
These are for Full address only
Function Function GetPriceForInternalFullAddressCreditPacks(ByVal Parameters$, ByVal NoOfCredits&, ByRef PriceToCustomer As Double, ByRef PriceToReseller As Double, ByRef PriceDescToCustomer$, ByRef PriceDescToReseller$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
Function GetPriceForInternalFullAddressCreditPacks(ByVal Parameters$, ByVal NoOfCredits&, ByRef PriceToCustomer As Double, ByRef PriceToReseller As Double, ByRef PriceDescToCustomer$, ByRef PriceDescToReseller$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
Example code Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim Parameters$ = "" 'For future use Dim PriceToCustomer As Double = 0, PriceToReseller As Double = 0, PriceDescToCustomer$ = "", PriceDescToReseller$ = "" Dim InpNumberOfCredits& = Me.InpNumberOfCredits.Text If Not CustomerPortal.GetPriceForInternalFullAddressCreditPacks(Parameters, _ InpNumberOfCredits&, PriceToCustomer, PriceToReseller, _ PriceDescToCustomer$, PriceDescToReseller$, _ ResellerAccountID, ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Price to customer:" & Format(PriceToCustomer, _ "#,##0.00") & vbCrLf & PriceDescToCustomer & vbCrLf & vbCrLf & _ "Price to reseller:" & Format(PriceToReseller, "#,##0.00") & _ vbCrLf & PriceDescToReseller End If
Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim Parameters$ = "" 'For future use Dim PriceToCustomer As Double = 0, PriceToReseller As Double = 0, PriceDescToCustomer$ = "", PriceDescToReseller$ = "" Dim InpNumberOfCredits& = Me.InpNumberOfCredits.Text If Not CustomerPortal.GetPriceForInternalFullAddressCreditPacks(Parameters, _ InpNumberOfCredits&, PriceToCustomer, PriceToReseller, _ PriceDescToCustomer$, PriceDescToReseller$, _ ResellerAccountID, ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Price to customer:" & Format(PriceToCustomer, _ "#,##0.00") & vbCrLf & PriceDescToCustomer & vbCrLf & vbCrLf & _ "Price to reseller:" & Format(PriceToReseller, "#,##0.00") & _ vbCrLf & PriceDescToReseller End If
Dim InpNumberOfCredits& = Me.InpNumberOfCredits.Text
If Not CustomerPortal.GetPriceForInternalFullAddressCreditPacks(Parameters, _ InpNumberOfCredits&, PriceToCustomer, PriceToReseller, _ PriceDescToCustomer$, PriceDescToReseller$, _ ResellerAccountID, ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Price to customer:" & Format(PriceToCustomer, _ "#,##0.00") & vbCrLf & PriceDescToCustomer & vbCrLf & vbCrLf & _ "Price to reseller:" & Format(PriceToReseller, "#,##0.00") & _ vbCrLf & PriceDescToReseller End If
For 6,000 Internal Full Address credits call
Full PAF credits £880.00 for * 6,000 credits + VAT
Full PAF credits £748.00 for * 6,000 credits + VAT at 15% commission
Please note: This is for Full Address only
Function Function PurchaseWebFullCreditPacks(ByVal Parameters$, ByVal NoOfCredits&, ByRef SummaryDescription$, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
Function PurchaseWebFullCreditPacks(ByVal Parameters$, ByVal NoOfCredits&, ByRef SummaryDescription$, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
Example code Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim SummaryDescription$ = "" Dim Parameters$ = "" 'For future use Dim PriceToReseller As Double = 0 Dim InpNumberOfCredits& = Me.InpNumberOfUsers.Text If Not CustomerPortal.PurchaseInternalCreditPacks(Parameters, InpNumberOfCredits&, _ SummaryDescription$, PriceToReseller, CustomerAccountID&, _ ResellerAccountID, ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Payment to us:" & Format(PriceToReseller, "#,##0.00") & _ vbCrLf & SummaryDescription$ End If
Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim SummaryDescription$ = "" Dim Parameters$ = "" 'For future use Dim PriceToReseller As Double = 0 Dim InpNumberOfCredits& = Me.InpNumberOfUsers.Text If Not CustomerPortal.PurchaseInternalCreditPacks(Parameters, InpNumberOfCredits&, _ SummaryDescription$, PriceToReseller, CustomerAccountID&, _ ResellerAccountID, ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Payment to us:" & Format(PriceToReseller, "#,##0.00") & _ vbCrLf & SummaryDescription$ End If
Dim ErrorDescription$ = "" Dim SummaryDescription$ = "" Dim Parameters$ = "" 'For future use Dim PriceToReseller As Double = 0
Dim InpNumberOfCredits& = Me.InpNumberOfUsers.Text
If Not CustomerPortal.PurchaseInternalCreditPacks(Parameters, InpNumberOfCredits&, _ SummaryDescription$, PriceToReseller, CustomerAccountID&, _ ResellerAccountID, ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Payment to us:" & Format(PriceToReseller, "#,##0.00") & _ vbCrLf & SummaryDescription$ End If
For 6,000 (2 * 500, 1 * 5,000) Internal Full Address credits call
SummaryDescription:
Full PAF Internal Lookup credits 1,000 Lookup Credits Less Commission:15% Full PAF Internal Lookup credits 5,000 Lookup Credits Less Commission:15%
Please note:
Function Function PurchaseInternalFullUsers(ByVal Parameters$, ByVal NoOfUsers&, ByVal Renewall As Boolean, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function PurchaseInternalThoroughfareUsers(ByVal Parameters$, ByVal NoOfUsers&, ByVal Renewall As Boolean, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function PurchaseInternalPostZonUsersByVal Parameters$, ByVal NoOfUsers&, ByVal Renewall As Boolean, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
Function PurchaseInternalFullUsers(ByVal Parameters$, ByVal NoOfUsers&, ByVal Renewall As Boolean, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function PurchaseInternalThoroughfareUsers(ByVal Parameters$, ByVal NoOfUsers&, ByVal Renewall As Boolean, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function PurchaseInternalPostZonUsersByVal Parameters$, ByVal NoOfUsers&, ByVal Renewall As Boolean, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
Example code Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim PriceToReseller As Double = 0 Dim InpNumberOfUsers& = Me.InpNumberOfUsers.Text Dim Parameters$ = "" 'For future use If Not CustomerPortal.PurchaseInternalFullUsers(Parameters$, InpNumberOfUsers&, _ Me.InpRenewal.Checked, PriceToReseller, CustomerAccountID&, _ ResellerAccountID, ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Payment to us:" & Format(PriceToReseller, "#,##0.00") End If
Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim PriceToReseller As Double = 0 Dim InpNumberOfUsers& = Me.InpNumberOfUsers.Text Dim Parameters$ = "" 'For future use If Not CustomerPortal.PurchaseInternalFullUsers(Parameters$, InpNumberOfUsers&, _ Me.InpRenewal.Checked, PriceToReseller, CustomerAccountID&, _ ResellerAccountID, ResellerAccountPassword, ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = "Payment to us:" & Format(PriceToReseller, "#,##0.00") End If