GetTaxZoneGroups

Description

Command to get product ledger entries and their filter cycles and currencies.

Attributes

Product
modernbill
subProduct
mbapi
version
0.9
author
Kris Bailey

Example Request

	<mbapi>
		<command><!-- string --></command>
		<showXMLHeader><!-- boolean --></showXMLHeader>
		<params>
			<productLedgerID><!-- int --></productLedgerID>
			<productVariantID><!-- int --></productVariantID>
			<generalLedgerType><!-- int --></generalLedgerType>
			<journalType><!-- string --></journalType>
			<ledgerAccountID><!-- int --></ledgerAccountID>
			<productLedgerDebit><!-- double --></productLedgerDebit>
			<productLedgerDebitGreaterThan><!-- double --></productLedgerDebitGreaterThan>
			<productLedgerDebitLessThan><!-- double --></productLedgerDebitLessThan>
			<productLedgerDebitGreatest><!-- double --></productLedgerDebitGreatest>
			<productLedgerDebitLeast><!-- double --></productLedgerDebitLeast>
			<productLedgerCredit><!-- double --></productLedgerCredit>
			<productLedgerCreditGreaterThan><!-- double --></productLedgerCreditGreaterThan>
			<productLedgerCreditLessThan><!-- double --></productLedgerCreditLessThan>
			<productLedgerCreditGreatest><!-- double --></productLedgerCreditGreatest>
			<productLedgerCreditLeast><!-- double --></productLedgerCreditLeast>
			<productLedgerComment><!-- string --></productLedgerComment>
			<currencyID><!-- string --></currencyID>
			<getProductLedgerCurrenyIDs><!-- int --></getProductLedgerCurrenyIDs>
			<getProductLedgerCycleIDs><!-- int --></getProductLedgerCycleIDs>
		</params>
	</mbapi>

		

Example Response

	<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>
			<productLedgerEntries>
				<productLedgerEntry>
					<productLedgerID><!-- int --></productLedgerID>
					<productVariantID><!-- int --></productVariantID>
					<generalLedgerType><!-- int --></generalLedgerType>
					<journalType><!-- string --></journalType>
					<ledgerAccountID><!-- int --></ledgerAccountID>
					<productLedgerDebit><!-- double --></productLedgerDebit>
					<productLedgerCredit><!-- double --></productLedgerCredit>
					<productLedgerComment><!-- string --></productLedgerComment>
					<currencyID><!-- string --></currencyID>
					<currencies>
						<currency>
							<currencyID><!-- string --></currencyID>
						</currency>
					</currencies>
					<cycles>
						<cycle>
							<cycleID><!-- string --></cycleID>
						</cycle>
					</cycles>
				</productLedgerEntry>
			</productLedgerEntries>
		</results>
	</mbapi>

		

Request Elements

mbapi
Type
group
Description

MBAPI request document root.

Children
command
Type
string
Description

Required. The string GetTaxZoneGroups.

showXMLHeader
Type
boolean
Description

Whether to show an XML header in the results.

params
Type
group
Description

GetTaxZoneGroups parameters.

Children
productLedgerID
Type
int
Description

Product Ledger ID, if you want to get a specific one.

productVariantID
Type
int
Description

Product Variant ID to get all the ledger entries for.

generalLedgerType
Type
int
Description

General ledger type to search by.

journalType
Type
string
Description

Journal type of the ledger entry to search by.

ledgerAccountID
Type
int
Description

Ledger Account ID of the ledger account the entry is going to use.

productLedgerDebit
Type
double
Description

Product Ledger Debit amount.

productLedgerDebitGreaterThan
Type
double
Description

Product Ledger Debit amount to be greater than.

productLedgerDebitLessThan
Type
double
Description

Product Ledger Debit amount to be less than.

productLedgerDebitGreatest
Type
double
Description

Product Ledger Debit amount to be less than or equal to.

productLedgerDebitLeast
Type
double
Description

Product Ledger Debit amount to be greater than or equal to.

productLedgerCredit
Type
double
Description

Product Ledger Credit amount.

productLedgerCreditGreaterThan
Type
double
Description

Product Ledger Credit amount to be greater than.

productLedgerCreditLessThan
Type
double
Description

Product Ledger Credit amount to be less than.

productLedgerCreditGreatest
Type
double
Description

Product Ledger Credit amount to be less than or equal to.

productLedgerCreditLeast
Type
double
Description

Product Ledger Credit amount to be greater than or equal to.

productLedgerComment
Type
string
Description

Ledger Entry Comment

currencyID
Type
string
Description

Currency ID the entry will be made in.

getProductLedgerCurrenyIDs
Type
int
Description

Whether to return the currency ids each entry is valid for.

getProductLedgerCycleIDs
Type
int
Description

Whether to return the cycle ids each entry is valid for.

Response Elements

mbapi
Type
group
Description

MBAPI response document root.

Children
header
Type
group
Description

Contains result meta data: data about the result itself.

Children
remoteSessionID
Type
hex
Description

A session ID that may be used for authentication instead of a remote access hash.

errorCount
Type
int
Description

The number of errors that occured.

errors
Type
group
Description

Contains any errors that occured.

Children
error
Type
group
Description

Contains information relating to a single error. Occurs header errorCount times.

Children
title
Type
string
Description

The title of the error.

message
Type
string
Description

The error message.

numResults
Type
int
Description

The number of results that have been returned. For Get commands.

numAffectedRows
Type
int
Description

The number of rows that have been affected. For Set commands.

results
Type
None
Description
None
Children
productLedgerEntries
Type
None
Description
None
Children
productLedgerEntry
Type
None
Description
None
Children
productLedgerID
Type
int
Description

Product Ledger ID, if you want to get a specific one.

productVariantID
Type
int
Description

Product ID to get all the ledger entries for.

generalLedgerType
Type
int
Description

General ledger type to search by.

journalType
Type
string
Description

Journal type of the ledger entry to search by.

ledgerAccountID
Type
int
Description

Ledger Account ID of the ledger account the entry is going to use.

productLedgerDebit
Type
double
Description

Product Ledger Debit amount.

productLedgerCredit
Type
double
Description

Product Ledger Credit amount.

productLedgerComment
Type
string
Description

Ledger Entry Comment

currencyID
Type
string
Description

Currency ID the entry will be made in.

currencies
Type
group
Description

Contains the filter currency ids

Children
currency
Type
group
Description

Contains

Children
currencyID
Type
string
Description

Currency ID

cycles
Type
group
Description

Contains the filter cycle ids

Children
cycle
Type
group
Description

Contains

Children
cycleID
Type
string
Description

Cycle ID