Command to get ban data, how other data is related to bans, and some data related to bans.
<mbapi> <command><!-- string --></command> <showXMLHeader><!-- boolean --></showXMLHeader> <params> <groupingType><!-- int --></groupingType> <generalLedgerID><!-- int --></generalLedgerID> <controls> <control> <controlType><!-- int --></controlType> <controlID><!-- int --></controlID> </control> </controls> </params> </mbapi>
<mbapi> <header> <remoteSessionID><!-- hex --></remoteSessionID> <errorCount><!-- int --></errorCount> <errors> <error> <title><!-- string --></title> <message><!-- string --></message> </error> </errors> <numResults><!-- int --></numResults> <numAffectedRows><!-- int --></numAffectedRows> </header> <results> <ledger> <ban> <banID><!-- int --></banID> <banString><!-- string --></banString> <banType><!-- int --></banType> <banActive><!-- boolean --></banActive> <banCount><!-- int --></banCount> <banDateLastUsed><!-- int --></banDateLastUsed> </ban> </ledger> </results> </mbapi>
mbapi
MBAPI request document root.
command
Required. The string GetAccountingControlRel.
showXMLHeader
Whether to show an XML header in the results.
params
GetAccountingControlRel parameters.
groupingType
Return grouping type, 0 = group by ledger entries, 1 = group by controls
generalLedgerID
Limit the data to a specific ledger row.
controls
Control Groups.
control
Control set.
controlType
Limit data to bans of this type.
0: line items 1: clients 2: invoices 3: packages 4: tax zones 5: tax zone groups 6: products 7: coupons controlID
The control id(s) you want to only get results for.
mbapi
MBAPI response document root.
header
Contains result meta data: data about the result itself.
remoteSessionID
A session ID that may be used for authentication instead of a remote access hash.
errorCount
The number of errors that occured.
errors
Contains any errors that occured.
error
Contains information relating to a single error. Occurs header errorCount times.
title
The title of the error.
message
The error message.
numResults
The number of results that have been returned. For Get commands.
numAffectedRows
The number of rows that have been affected. For Set commands.
results
Contains any results.
ledger
Contains all ban results.
ban
Contains all results for a single ban. Occurs header numResults times.
banID
The ID of the ban.
banString
The ban name for the order form. Names need not be unique. Operations are performed on IDs. Names are merely for display.
banType
The type of ban.
0: e-mail 1: ip banActive
Whether the ban is active. Inactive bans won't show up on order forms, among other obviously appropriate things.
banCount
The number of times this ban item has been "hit".
banDateLastUsed
The Unix timestamp of when the ban was last "hit".