GetTaxZones

Description

This class is an instantion of the Command class, that executes a command pertaining to fetching tax zone information, in the default case from the database. This class should only be instantiated by dispatchMBAPI() found in include/mbapi/mbapi.php. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetTaxZones command:

Attributes

package
modernbill
subpackage
mbapi
version
0.1
author
Vic Fryzel
author
Andy Christ

Example Request

	<mbapi>
		<command><!-- None --></command>
		<showXMLHeader><!-- None --></showXMLHeader>
		<params>
			<taxZoneID><!-- int --></taxZoneID>
			<countriesISO2><!-- string --></countriesISO2>
			<taxZoneName><!-- string --></taxZoneName>
			<taxZoneAmountLessThan><!-- double --></taxZoneAmountLessThan>
			<taxZoneAmount><!-- double --></taxZoneAmount>
			<taxZoneAmountGreaterThan><!-- double --></taxZoneAmountGreaterThan>
			<taxZoneDescription><!-- string --></taxZoneDescription>
			<taxZoneActive><!-- int --></taxZoneActive>
			<ledgerAccountID><!-- int --></ledgerAccountID>
			<taxZoneStackable><!-- int --></taxZoneStackable>
			<getTaxZoneGroupData><!-- int --></getTaxZoneGroupData>
			<sortDir><!-- None --></sortDir>
			<sortColumn><!-- None --></sortColumn>
			<recordOffset><!-- None --></recordOffset>
			<numRecords><!-- None --></numRecords>
		</params>
	</mbapi>

		

Example Response

None
		

Request Elements

mbapi
Type
None
Description
None
Children
command
Type
None
Description
None
showXMLHeader
Type
None
Description
None
params
Type
None
Description
None
Children
taxZoneID
Type
int
Description

The ID of the tax zone to fetch. This will always select at most 1 zone.

countriesISO2
Type
string
Description

The 2 character ISO 3166 code for the country associated with the zones to fetch.

taxZoneName
Type
string
Description

The name of the tax to fetch. This is the pipe-delimited list of states/regions that will be taxed in the above country code. This can also be a to represent all regions in the country.

taxZoneAmountLessThan
Type
double
Description

The maximum tax represented as a decimal number. 17.5 = 17.5%

taxZoneAmount
Type
double
Description

The exact tax represented as a decimal number. 17.5 = 17.5%

taxZoneAmountGreaterThan
Type
double
Description

The minimum tax represented as a decimal number. 17.5 = 17.5%

taxZoneDescription
Type
string
Description

The description of the tax zones to fetch. This is searched with a LIKE clause.

taxZoneActive
Type
int
Description

Set to 1 to retrieve only zones that are active.

ledgerAccountID
Type
int
Description

Set to a ledger account id to retrieve tax zones that submit into a certain ledger account.

taxZoneStackable
Type
int
Description

Sets whether a tax zone is stackable or not.

getTaxZoneGroupData
Type
int
Description

Set to 1 to retrieve the data for the tax zone groups this zone is related to.

sortDir
Type
None
Description
None
sortColumn
Type
None
Description
None
recordOffset
Type
None
Description
None
numRecords
Type
None
Description
None

Response Elements

None