Reseller Portal SOAP Web Service - External License Managment
The following functions are provided to allow the reseller to create/edit/get postcode software customer account details
Get Price of External Use Packs
Function 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
Parameters
Parameter name | Description |
---|---|
Parameters | Not used. For future use |
ResellerAccountID | This is the account ID of your reseller account |
ResellerAccountPassword | Your reseller account password |
Returns
Returns True if success, else error in ErrorDescription$
Name | Description |
---|---|
PricesXML | contains XML listing our prices |
ErrorDescription | Any error that may have occurred |
Example code |
Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" If Not CustomerPortal.GetPriceForWebFullAddressCreditPacks(Parameters, _ |
Please note:
- The credit level is returned when searching for an address. Therefore this can be monitored to detect low levels, and thus topped up.
- Any price changes will be reflected in this call, thus will always give correct prices
Example:
Get price for Full Address Web Credits
Returns:
PricesXML:
<b>£<netPrice>40</netPrice></b> per <size>800</size><br>
<b>£<netPrice>95</netPrice></b> per <size>2,500</size><br>
<b>£<netPrice>175</netPrice></b> per <size>5,000</size><br>
<b>£<netPrice>380</netPrice></b> per <size>12,500</size><br>
<b>£<netPrice>690</netPrice></b> per <size>25,000</size><br>
<b>£<netPrice>1,900</netPrice></b> per <size>100,000</size><br>
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.
Purchase Web Credit Packs
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
Parameters
Returns
Returns True if success, else error in ErrorDescription$
Name | Description |
---|---|
PaymentNeededToUs | Price to the reseller, including VAT. This is the figure that should be paid to us |
SummaryDescription | Text Description of purchase, see below |
ErrorDescription | Any error that may have occurred |
Example code |
Dim CustomerPortal As New CustomerPortal.WebServiceCustomerPortal Dim ErrorDescription$ = "" Dim LineNoFromPrices& = Me.InpLineNoFromPrices.Text If Not CustomerPortal.PurchaseWebFullCreditPacks(Parameters, LineNoFromPrices&, _ |
Please note:
- We give immediate access to this license, and therefore expect immediate automatic payment from your system. This is a condition of use of this service. An Invoice and Remittance advice is sent to e-mail address on reseller account
- Please put the customers account number in any bank transactions for us to reconcile easily
- For testing post purchases against TEST accounts only.
- Use DoCommand function to clear any test transactions after testing
- The credit level is returned when searching for an address. Therefore this can be monitored to detect low levels, and thus topped up.