TaxInvoiceItem
Version: 1.33
TaxInvoiceItem is a tax item that appears on the invoice. An Invoice may or may not have one (1) or more TaxInvoiceItems on it, depending on how many tax items occur on Products or Services.
TaxInvoiceItems can be queried directly, or through the InvoiceItems which would show all invoice items. Each TaxInvoiceItem includes at least one InvoiceItemCharge.
Tax Invoice Items are one of six types of Invoice Items:
-
AdditionalFeeInvoiceItem
-
AdjustmentInvoiceItem
-
ProductInvoiceItem
-
ServiceInvoiceItem
-
TaxInvoiceItem
-
UsageInvoiceItem
Parameters
Each TaxInvoiceItem shown from the query shows information for a number of elements in the entity. The following table shows the elements, details of the elements, and brief descriptions.
Element Name | Element Type | Field Length | Description |
---|---|---|---|
queryScope |
QueryScope |
- - |
Whether default query results are overridden by QueryScope resulting in SHALLOW or DEEP query results. Refer to QueryScope for details. |
eid |
Long |
System Generated |
System generated unique identity number assigned to all entities in Gotransverse. |
invoiceItemCharges |
Sequence of InvoiceItemCharges |
- - |
Each item charged (Product on a customer's Order) can have multiple charges for example Price, Tax, and so forth. |
quantity |
Int |
As needed |
For non-serialized subscription or one-time Products, which can be purchased in quantities of one or more; this is the number of subscriptions (for example, number of seats) that have been ordered. |
unitAmount |
Decimal |
As needed |
Cost of one item. |
totalAmount |
Decimal |
As needed |
Cost of all the items. If there is only one item this amount is the same as unitAmount. |
description |
String |
255 |
A description of the Invoice Item. |
taxable |
Boolean |
Shows either: "true" |
Is the item taxable or not? YES, the item IS taxable. NO, the item is NOT taxable. |
proratedPercentage |
Decimal |
As needed |
Not used at this time. |
chargeStartDate |
dateTime |
Refer to Data Types for dateTime formats. |
The date and time the charges started. |
chargeEndDate |
dateTime |
Refer to Data Types for dateTime formats. |
The date and time the charges ended. |
lineItemType |
String |
255 |
Not used at this time. |
The dateTime format: yyyy-mm-ddThh:mm:ss.sss-06:00 The GMT offset is 6 hours. For example, 2011-01-28T16:17:22.234-06:00. Refer to Data Types for further information and for a list of dateTime formats accepted by Gotransverse.
Entity TaxInvoiceItems
The entity TaxInvoiceItems enables you to see multiple entries of the entity TaxInvoiceItems.
Element Name | Element Type | Field Length | Description |
---|---|---|---|
pageNumber |
Integer |
as needed |
Shows the current page number. |
pageSize |
Integer |
as needed |
Shows the page size. |
totalElements |
Long |
as needed |
Shows the total number of items found. |
elementCount |
Integer |
as needed |
Shows the current count of the item in the number of items that were found. |
totalPages |
Integer |
as needed |
Shows the total number of pages. |
invoiceItem |
TaxInvoiceItem |
- - |
Shows the list of TaxInvoiceItems. |
Entity InvoiceItems
The entity InvoiceItems enables you to see multiple entries of all the entities in InvoiceItems.
Element Name | Element Type | Field Length | Description |
---|---|---|---|
pageNumber |
Integer |
as needed |
Shows the current page number. |
pageSize |
Integer |
as needed |
Shows the page size. |
totalElements |
Long |
as needed |
Shows the total number of items found. |
elementCount |
Integer |
as needed |
Shows the current count of the item in the number of items that were found. |
totalPages |
Integer |
as needed |
Shows the total number of pages. |
invoiceItem |
Includes: AdditionalFeeInvoiceItem AdjustmentInvoiceItem ProductInvoiceItem ServiceInvoiceItem TaxInvoiceItem UsageInvoiceItem |
- - |
Shows the list of InvoiceItems. |
Information for the related entities:
-
Entity TaxInvoiceItems
-
Entity InvoiceItems
Query a TaxInvoiceItem
Query Key Information for SOAP and REST
Querying to see TaxInvoiceItems needs to include one of the following parameters. If you do not know the value for the parameter, query separately to learn the value.
Query Key | Value | Definition | |
---|---|---|---|
eid |
Long |
The eid number of the TaxInvoiceItem. |
|
invoiceEid |
Long |
The eid number of the Invoice. |
|
invoiceNum |
String |
The unique number of the Invoice. |
Query to Use | Query for | Parameter Name and Value | Returns |
---|---|---|---|
SimpleDataQuery |
TaxInvoiceItem |
<parameter name><parameter value> |
List of your TaxInvoiceItems for that parameter and value. |
SOAP Example Queries and Responses
SOAP Query and Response of TaxInvoiceItem Using Parameter InvoiceNum
In the following example REST query, the parameter of invoiceNum was used. The Invoice Number (in this example "80"), was learned through a previous query on Invoice.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:query xmlns="http://www.tractbilling.com/billing/1_31/domain" xmlns:ns2="http://www.tractbilling.com/billing/1_31/service"> <ns2:queryRequest queryScope="SHALLOW"> <simpleDataQuery> <type>TaxInvoiceItem</type> <parameter parameter="invoiceNum" parameterValue="80"/> </simpleDataQuery> </ns2:queryRequest> </ns2:query> </soap:Body> </soap:Envelope>
This was the response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:queryResponse xmlns="http://www.tractbilling.com/billing/1_31/domain"xmlns:ns2="http://www.tractbilling.com/billing/1_31/service"> <ns2:return successful="true"> <taxInvoiceItems pageNumber="1" pageSize="50" totalElements="1" elementCount="1" totalPages="1"> <taxInvoiceItem quantity="1" unitAmount="2.00" totalAmount="2.00" description="Flat Tax" taxable="true" lineItemType="Tax" type="TAX" eid="8877844" queryScope="SHALLOW"> <invoiceItemCharges pageNumber="1" pageSize="50" totalElements="0" elementCount="0" totalPages="0"/> </taxInvoiceItem> </taxInvoiceItems> </ns2:return> </ns2:queryResponse> </soap:Body> </soap:Envelope>
SOAP Query and Response of InvoiceItem Using Parameter InvoiceNum
In the following example SOAP query, the parameter of invoiceNum was used. The Invoice Number (in this example "111439627"), was learned through a previous query on Invoice.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:query xmlns="http://www.tractbilling.com/billing/1_31/domain" xmlns:ns2="http://www.tractbilling.com/billing/1_31/service"> <ns2:queryRequest> <simpleDataQuery startIndex="0" size="50"> <type>InvoiceItem</type> <parameter parameter="invoiceNum" parameterValue="111439627"/> </simpleDataQuery> </ns2:queryRequest> </ns2:query> </soap:Body> </soap:Envelope>
This was the response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:queryResponse xmlns="http://www.tractbilling.com/billing/1_31/domain" xmlns:ns2="http://www.tractbilling.com/billing/1_31/service"> <ns2:return successful="true"> <invoiceItems pageNumber="1" pageSize="50" totalElements="3" elementCount="3" totalPages="1"> <invoiceItem quantity="1" unitAmount="0.99000" totalAmount="0.99000" taxable="false" proratedPercentage="100.00000" chargeStartDate="2012-01-06T12:08:15-06:00" chargeEndDate="2012-02-01T00:00:00-06:00" lineItemType="Product Sale" eid="317427"> <invoiceItemCharges pageNumber="1" pageSize="50" totalElements="0" elementCount="0" totalPages="0"/> </invoiceItem> <invoiceItem quantity="5" unitAmount="0.99000" totalAmount="4.95000" taxable="false" proratedPercentage="100.00000" chargeStartDate="2012-01-06T12:08:15-06:00" chargeEndDate="2012-02-01T00:00:00-06:00" lineItemType="Product Sale" eid="317427"> <invoiceItemCharges pageNumber="1" pageSize="50" totalElements="0" elementCount="0" totalPages="0"/> </invoiceItem> <invoiceItem quantity="5" unitAmount="0.99000" totalAmount="4.95000" taxable="false" proratedPercentage="100.00000" chargeStartDate="2012-02-01T00:00:00-06:00" chargeEndDate="2012-03-01T00:00:00-06:00" lineItemType="Product Sale" eid="317427"> <invoiceItemCharges pageNumber="1" pageSize="50" totalElements="0" elementCount="0" totalPages="0"/> </invoiceItem> </invoiceItems> </ns2:return> </ns2:queryResponse> </soap:Body> </soap:Envelope>
REST Mount Point and Parameters
Query
-
GET https://my.tractbilling.com/t/s/r/1.33/taxInvoiceItems/<eid>
-
GET https://my.tractbilling.com/t/s/r/1.33/taxInvoiceItems?eid=<eid>
-
GET https://my.tractbilling.com/t/s/r/1.33/taxInvoiceItems?invoiceNum=<invoiceNum>
-
GET https://my.tractbilling.com/t/s/r/1.33/taxInvoiceItems?invoiceEid=<invoiceEid>
To see all six types of Invoice Items use the following mount points:
Query
-
GET https://my.tractbilling.com/t/s/r/1.33/invoiceItems/<eid>
-
GET https://my.tractbilling.com/t/s/r/1.33/invoiceItems?eid=<eid>
-
GET https://my.tractbilling.com/t/s/r/1.33/invoiceItems?invoiceNum=<invoiceNum>
-
GET https://my.tractbilling.com/t/s/r/1.33/invoiceItems?invoiceEid=<invoiceEid>
REST Example Queries and Responses
REST Query and Response of TaxInvoiceItem Using Parameter InvoiceNum
In the following example REST query, the parameter of invoiceNum was used. The Invoice Number (in this example "80"), was learned through a previous query on Invoice.
-
GET https://my.tractbilling.com/t/s/r/1.33/taxInvoiceItems?invoiceNum=80
This was the response (line breaks and formatting added for ease of reading):
<taxInvoiceItems xmlns:ns2="http://www.tractbilling.com/billing/1_31/domain" pageNumber="1" pageSize="50" totalElements="1" elementCount="1" totalPages="1"> <taxInvoiceItem quantity="1" unitAmount="2.00" totalAmount="2.00"description="Flat Tax" taxable="true" lineItemType="Tax" type="TAX" eid="8877844" queryScope="SHALLOW"> <ns2:invoiceItemCharges pageNumber="1" pageSize="50"totalElements="0" elementCount="0" totalPages="0"/> </taxInvoiceItem> </taxInvoiceItems>
REST Query and Response of InvoiceItem Using Parameter InvoiceNum
In the following example REST query, the parameter of invoiceNum was used. The Invoice Number (in this example "111439627"), was learned through a previous query on Invoice.
-
GET https://my.tractbilling.com/t/s/r/1.33/invoiceItems?invoiceNum=111439627
This was the response (line breaks and formatting added for ease of reading):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <invoiceItems xmlns:ns2="http://www.tractbilling.com/billing/1_31/domain" pageNumber="1" pageSize="50" totalElements="3" elementCount="3" totalPages="1"> <ns2:invoiceItem quantity="1" unitAmount="0.99000" totalAmount="0.99000" taxable="false" proratedPercentage="100.00000" chargeStartDate="2012-01-06T12:08:15-06:00" chargeEndDate="2012-02-01T00:00:00-06:00" lineItemType="Product Sale" eid="317427"> <ns2:invoiceItemCharges pageNumber="1" pageSize="50" totalElements="0" elementCount="0" totalPages="0"/> </ns2:invoiceItem> <ns2:invoiceItem quantity="5" unitAmount="0.99000" totalAmount="4.95000" taxable="false" proratedPercentage="100.00000" chargeStartDate="2012-01-06T12:08:15-06:00" chargeEndDate="2012-02-01T00:00:00-06:00" lineItemType="Product Sale" eid="317427"> <ns2:invoiceItemCharges pageNumber="1" pageSize="50" totalElements="0" elementCount="0" totalPages="0"/> </ns2:invoiceItem> <ns2:invoiceItem quantity="5" unitAmount="0.99000" totalAmount="4.95000" taxable="false" proratedPercentage="100.00000" chargeStartDate="2012-02-01T00:00:00-06:00" chargeEndDate="2012-03-01T00:00:00-06:00" lineItemType="Product Sale" eid="317427"> <ns2:invoiceItemCharges pageNumber="1" pageSize="50" totalElements="0" elementCount="0" totalPages="0"/> </ns2:invoiceItem> </invoiceItems>