This request retrieves a list of accounting codes.
This would be used as part of the publish mailing process. The UI has to present this for selection if it is to be included.
Elements
Data Element | Type | Length | Conditional | Description |
---|---|---|---|---|
code | String | 50 | True | The internal bill back code used to allocate mailing costs. |
Count | Int | False | Number of matches found based upon criteria used | |
Description | String | 200 | True | Full description of the accounting code |
is_accounting_default | Bit | True | Flag indicating if this is the default accounting code |
Request
<GridRequest xmlns="http://partner.informz.net/aapi/2009/08/"> <Brand id="9999">Test Brand</Brand> <User></User> <Grids> <Grid type="accounting_code"> <ReturnFields> <DataElement>accounting_code_id</DataElement> <DataElement>code</DataElement> <DataElement>description</DataElement> <DataElement>is_accounting_default</DataElement> <DataElement>is_deleted</DataElement> </ReturnFields> </Grid> </Grids> </GridRequest>
Notes
Accounting codes is an optional extension in Informz. If the extension is not enabled, these will not be available through the Informz UI.
Response
<?xml version="1.0" encoding="utf-16"?> <GridResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://partner.informz.net/aapi/2009/08/"> <Brand id="9999">Test Brand</Brand> <User></User> <Grids> <Grid type="accounting_code"> <Record row="1"> <Fields> <Field element="accounting_code_id">1039</Field> <Field element="code">111</Field> <Field element="description">Marketing Dept</Field> <Field element="is_accounting_default">1</Field> <Field element="is_deleted">0</Field> </Fields> </Record> <Record row="2"> <Fields> <Field element="accounting_code_id">1040</Field> <Field element="code">222</Field> <Field element="description">Sales Dept</Field> <Field element="is_accounting_default">0</Field> <Field element="is_deleted">0</Field> </Fields> </Record> <Record row="3"> <Fields> <Field element="accounting_code_id">1041</Field> <Field element="code">333</Field> <Field element="description">Human Resources</Field> <Field element="is_accounting_default">0</Field> <Field element="is_deleted">0</Field> </Fields> </Record> </Grid> </Grids> </GridResponse>
Notes
- Each accounting code is returned within its own row block.
- Maximum of 1,000 rows can be returned in one request.