The following functions are provided to allow the reseller to create/edit/get postcode software customer account details
Functions GetPriceForWebFullAddressCreditPacks(Parameters$, PricesXML$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function GetPriceForWebThoroughfareAddressCreditPacks(Parameters$, PricesXML$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function GetPriceForWebPostZonAddressCreditPacks(Parameters$, PricesXML$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
GetPriceForWebFullAddressCreditPacks(Parameters$, PricesXML$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function GetPriceForWebThoroughfareAddressCreditPacks(Parameters$, PricesXML$, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function GetPriceForWebPostZonAddressCreditPacks(Parameters$, PricesXML$, 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 PricesXML$ = "" 'Prices are returned in this , and can be displayed or used for own referance 'When purchasing, the top top is ID=1, second line is ID=2, etc... If Not CustomerPortal.GetPriceForWebFullAddressCreditPacks(Parameters, _ PricesXML$, ResellerAccountID, ResellerAccountPassword, _ ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = PricesXML$ & vbCrLf & vbCrLf & _ "When purchasing, set LineNoFromPrices=1 for top line, second line is LineNoFromPrices=2, etc..." & vbCrLf & "Prices are +VAT, less Reseller commission is applied at point of sale" End If
Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim Parameters$ = "" 'For future use Dim PricesXML$ = "" 'Prices are returned in this , and can be displayed or used for own referance 'When purchasing, the top top is ID=1, second line is ID=2, etc... If Not CustomerPortal.GetPriceForWebFullAddressCreditPacks(Parameters, _ PricesXML$, ResellerAccountID, ResellerAccountPassword, _ ErrorDescription) Then MsgBox("Error returned:" & ErrorDescription) Else Me.InpResult.Text = PricesXML$ & vbCrLf & vbCrLf & _ "When purchasing, set LineNoFromPrices=1 for top line, second line is LineNoFromPrices=2, etc..." & vbCrLf & "Prices are +VAT, less Reseller commission is applied at point of sale" End If
Please note:
Example:
Get price for Full Address Web Credits
PricesXML:
£40 per 800 £95 per 2,500 £175 per 5,000 £380 per 12,500 £690 per 25,000 £1,900 per 100,000
When making a call to purchase a pack, simply supply the line number for the appropriate pack. Thus to purchase 5,000 credits, the line number would be 3. See functions below to purchase web packs.
Function Function PurchaseWebFullCreditPacks(ByVal Parameters$, ByVal LineNoFromPrices&, ByRef SummaryDescription$, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function PurchaseWebThoroughfareCreditPacks(ByVal Parameters$, ByVal LineNoFromPrices&, ByRef SummaryDescription$, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function PurchaseWebPostZonCreditPacks(ByVal Parameters$, ByVal LineNoFromPrices&, ByRef SummaryDescription$, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean
Function PurchaseWebFullCreditPacks(ByVal Parameters$, ByVal LineNoFromPrices&, ByRef SummaryDescription$, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function PurchaseWebThoroughfareCreditPacks(ByVal Parameters$, ByVal LineNoFromPrices&, ByRef SummaryDescription$, ByRef PaymentNeededToUs As Double, ByVal CustomerAccountID&, ByVal ResellerAccountID&, ByVal ResellerAccountPassword$, ByRef ErrorDescription$) As Boolean Function PurchaseWebPostZonCreditPacks(ByVal Parameters$, ByVal LineNoFromPrices&, 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 LineNoFromPrices& = Me.InpLineNoFromPrices.Text If Not CustomerPortal.PurchaseWebFullCreditPacks(Parameters, LineNoFromPrices&, _ 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 LineNoFromPrices& = Me.InpLineNoFromPrices.Text If Not CustomerPortal.PurchaseWebFullCreditPacks(Parameters, LineNoFromPrices&, _ 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