ReversedInvoiceAdjustmentApplication

Version: 1.33

reversedInvoiceAdjustmentApplication is an optional Entity and is the result of reversing a credit adjustment on an Invoice. reversedInvoiceAdjustmentApplication can be queried directly or as part of AdjustmentApplications.

Links to related Entities:

  • See Adjustment to create any adjustment.

  • See AddInvoiceApplicationToAdjustment to put a manual credit adjustment on an invoice.

  • See NegativeInvoiceAdjustmentApplication, which is an adjustment created for negative Invoices.

  • See StandardInvoiceAdjustmentApplication, to query a credit adjustment.

  • See ReverseInvoiceApplicationFromAdjustment to perform the command call of the reversing the credit adjustment (which results in reversedInvoiceAdjustmentApplication).

  • See WriteOffAdjustmentApplication, which is a write off adjustment.

Parameters

When you query AdjustmentApplications, the following table provides information about the values returned from the query for all the ReversedInvoiceAdjustmentApplications (the StandardInvoiceAdjustmentApplication show slightly different information):

Parameters
Element Name Query Key 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

Y

Long

System Generated

System generated unique identity number assigned to the AdjustmentApplication.

accountAdjustment

 

Adjustment

- -

The original credit adjustment.

appliedOn

Y

dateTime

Refer to Data Types for dateTime formats.

The date and time at which the Adjustment was applied to the Invoice.

amount

 

Decimal

As needed

The amount of the Adjustment.

invoice

Y

Invoice

- -

The invoice affected by the credit adjustment.

reversedApplication

 

StandardInvoiceAdjustmentApplication

- -

The credit adjustment (StandardInvoiceAdjustmentApplication) that is partially or completely being reversed.

Entity AdjustmentApplications

The entity AdjustmentApplications enables you to see multiple pages of the entity ReversedInvoiceAdjustmentApplication (as well as the other types).

Elements
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.

Select one:

standardInvoiceAdjustmentApplication

reversedInvoiceAdjustmentApplication

negativeInvoiceAdjustmentApplication

writeOffAdjustmentApplicatio

Either:

StandardInvoiceAdjustmentApplication OR

ReversedInvoiceAdjustmentApplication OR

NegativeInvoiceAdjustmentApplication OR

WriteOffAdjustmentApplication

- -

Shows the list of standardInvoiceAdjustmentApplication OR

reversedInvoiceAdjustmentApplication OR

negativeInvoiceAdjustmentApplication OR

writeOffAdjustmentApplication

Entity ReversedInvoiceAdjustmentApplications

The entity ReversedInvoiceAdjustmentApplications enables you to see multiple pages of the entity ReversedInvoiceAdjustmentApplication.

Elements
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.

reversedInvoiceAdjustmentApplication

ReversedInvoiceAdjustmentApplication

- -

Shows the list of reversedInvoiceAdjustmentApplication.

Information for the related Entity of AdjustmentApplications and reversedInvoiceAdjustmentApplications:

  • Entity AdjustmentApplications

  • Entity ReversedInvoiceAdjustmentApplications

Query for a Reversed Invoice Adjustment Application

Query Reversed Invoice Adjustment Applications as a group, or query for Adjustment Applications which includes all types of Adjustment Applications.

Query Key Information for SOAP and REST

Querying to see reversedInvoiceAdjustmentApplications or AdjustmentApplications needs to include one of the following parameters from the relevant table. If you do not know the value for the parameter, query separately to learn the value.

Query Key Parameters - reversedInvoiceAdjustmentApplication
Query Key Value Definition

eid

Long

The unique eid number for the NegativeInvoiceAdjustmentApplication.

adjustmentEid

Long

The unique eid number for the Adjustment.

billingAccountEid

Long

The unique eid number of the BillingAccount.

accountNum

String

The assigned BillingAccount number.

invoiceEid

Long

The unique eid number of the Invoice.

invoiceNum

String

The assigned Invoice number.

occurredOn

DateTime

The date and time of the Negative Invoice Adjustment.

unappliedAmount

BigDec

The amount (if any) of funds on the Billing Account, which is unapplied.

Query Key Parameters - AdjustmentApplication
Query Key Value Definition

eid

Long

The unique eid number for the AdjustmentApplication.

adjustmentEid

Long

The unique eid number for the Adjustment.

billingAccountEid

Long

The unique eid number of the BillingAccount.

accountNum

String

The assigned BillingAccount number.

occurredOn

DateTime

The date and time of the Adjustment

unappliedAmount

BigDec

The amount (if any) of funds on the Billing Account, which is unapplied.

type

- -

The type of AdjustmentApplication. See AdjustmentApplicationType for choices.

Query to Use

Query
Query Query For Parameter Name and Value Returns

SimpleDataQuery

ReversedInvoiceAdjustmentApplication

<parameter name><parameter value>

List of your Reversed Invoice Adjustment Applications for that parameter name and value.

SimpleDataQuery

AdjustmentApplication

<parameter name><parameter value>

List of your Adjustment Applications for that parameter name and value.

SOAP Example Query and Response

In the following example SOAP query, the parameter of the AccountNum (in this example "2") was used.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.tractbilling.com/billing/1_31/service" ">
    <soapenv:Header/>
    <soapenv:Body>
        <ser:query>
            <ser:queryRequest>
                <dom:simpleDataQuery>
                    <dom:type>AdjustmentApplication</dom:type>
                    <dom:whereClause clause="accountNum eq '2'"/>
                </dom:simpleDataQuery>
            </ser:queryRequest>
        </ser:query>
    </soapenv:Body>
</soapenv: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">
                <adjustmentApplications pageNumber="1" pageSize="50" totalElements="6" elementCount="6" totalPages="1">
                    <standardInvoiceAdjustmentApplication reversed="false" appliedOn="2015-01-19T15:37:22.000-06:00" amount="29.99" type="INVOICE" eid="6" queryScope="SHALLOW">
                        <accountAdjustment eid="9" queryScope="EID"/>
                        <invoice eid="5" queryScope="EID"/>
                    </standardInvoiceAdjustmentApplication>
                    <standardInvoiceAdjustmentApplication reversed="false" appliedOn="2015-01-19T15:38:02.000-06:00" amount="20.00" type="INVOICE" eid="7" queryScope="SHALLOW">
                        <accountAdjustment eid="8" queryScope="EID"/>
                        <invoice eid="6" queryScope="EID"/>
                    </standardInvoiceAdjustmentApplication>
                    <standardInvoiceAdjustmentApplication reversed="true" appliedOn="2015-01-19T15:39:16.000-06:00" amount="9.98" type="INVOICE" eid="8" queryScope="SHALLOW">
                        <accountAdjustment eid="8" queryScope="EID"/>
                        <invoice eid="5" queryScope="EID"/>
                    </standardInvoiceAdjustmentApplication>
                    <reversedInvoiceAdjustmentApplication appliedOn="2015-01-19T15:39:27.000-06:00" amount="-9.98" type="REVERSED" eid="9" queryScope="SHALLOW">
                        <accountAdjustment eid="8" queryScope="EID"/>
                        <invoice eid="5" queryScope="EID"/>
                        <reversedApplication reversed="true" appliedOn="2015-01-19T15:39:16.000-06:00" amount="9.98" type="INVOICE" eid="8" queryScope="SHALLOW">
                            <accountAdjustment eid="8" queryScope="EID"/>
                            <invoice eid="5" queryScope="EID"/>
                        </reversedApplication>
                    </reversedInvoiceAdjustmentApplication>
                    <standardInvoiceAdjustmentApplication reversed="false" appliedOn="2015-01-19T15:57:46.000-06:00" amount="29.99" type="INVOICE" eid="10" queryScope="SHALLOW">
                        <accountAdjustment eid="11" queryScope="EID"/>
                        <invoice eid="8" queryScope="EID"/>
                    </standardInvoiceAdjustmentApplication>
                    <standardInvoiceAdjustmentApplication reversed="false" appliedOn="2015-01-19T16:02:34.000-06:00" amount="29.99" type="INVOICE" eid="11" queryScope="SHALLOW">
                        <accountAdjustment eid="11" queryScope="EID"/>
                        <invoice eid="9" queryScope="EID"/>
                    </standardInvoiceAdjustmentApplication>
                </adjustmentApplications>
            </ns2:return>
        </ns2:queryResponse>
    </soap:Body>
</soap:Envelope>

REST Mount Point and Parameters

Use either the mount point for reversedInvoiceAdjustmentApplications or AdjustmentApplications.

Query

  • GET https://my.tractbilling.com/t/s/r/1.33/reversedInvoiceAdjustmentApplications/<eid>

  • GET https://my.tractbilling.com/t/s/r/1.33/reversedInvoiceAdjustmentApplications?eid=<eid>

  • GET https://my.tractbilling.com/t/s/r/1.33/reversedInvoiceAdjustmentApplications?adjustmentEid=<adjustmentEid>

  • GET https://my.tractbilling.com/t/s/r/1.33/reversedInvoiceAdjustmentApplications?billingAccountEid=<billingAccountEid>

  • GET https://my.tractbilling.com/t/s/r/1.33/reversedInvoiceAdjustmentApplications?accountNum=<accountNum>

  • GET https://my.tractbilling.com/t/s/r/1.33/reversedInvoiceAdjustmentApplications?invoiceEid=<invoiceEid>

  • GET https://my.tractbilling.com/t/s/r/1.33/reversedInvoiceAdjustmentApplications?invoiceNum=<invoiceNum>

  • GET https://my.tractbilling.com/t/s/r/1.33/reversedInvoiceAdjustmentApplications?occurredOn=<occurredOn>

  • GET https://my.tractbilling.com/t/s/r/1.33/reversedInvoiceAdjustmentApplications?unappliedAmount=<unappliedAmount>

Query

  • GET https://my.tractbilling.com/t/s/r/1.33/adjustmentApplications/<eid>

  • GET https://my.tractbilling.com/t/s/r/1.33/adjustmentApplications?eid=<eid>

  • GET https://my.tractbilling.com/t/s/r/1.33/adjustmentApplications?adjustmentEid=<adjustmentEid>

  • GET https://my.tractbilling.com/t/s/r/1.33/adjustmentApplications?billingAccountEid=<billingAccountEid>

  • GET https://my.tractbilling.com/t/s/r/1.33/adjustmentApplications?accountNum=<accountNum>

  • GET https://my.tractbilling.com/t/s/r/1.33/adjustmentApplications?occurredOn=<occurredOn>

  • GET https://my.tractbilling.com/t/s/r/1.33/adjustmentApplications?unappliedAmount=<unappliedAmount>

  • GET https://my.tractbilling.com/t/s/r/1.33/adjustmentApplications?type=<type>

REST Example Query and Response

In the following example REST query, the parameter of the AccountNum (in this example "2" was used.

Query

GET https://my.tractbilling.com/t/s/r/1.33/adjustmentApplications?accountNum=2

This was the response:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ns2:adjustmentApplications xmlns:ns2="http://www.tractbilling.com/billing/1_31/domain/rest" xmlns:ns3="http://www.tractbilling.com/billing/1_31/domain" pageNumber="1" pageSize="50" totalElements="6" elementCount="6" totalPages="1">
    <ns3:standardInvoiceAdjustmentApplication reversed="false" appliedOn="2015-01-19T15:37:22.000-06:00" amount="29.99" type="INVOICE" eid="6" queryScope="SHALLOW">
        <ns3:accountAdjustment eid="9" queryScope="EID"/>
        <ns3:invoice eid="5" queryScope="EID"/>
    </ns3:standardInvoiceAdjustmentApplication>
    <ns3:standardInvoiceAdjustmentApplication reversed="false" appliedOn="2015-01-19T15:38:02.000-06:00" amount="20.00" type="INVOICE" eid="7" queryScope="SHALLOW">
        <ns3:accountAdjustment eid="8" queryScope="EID"/>
        <ns3:invoice eid="6" queryScope="EID"/>
    </ns3:standardInvoiceAdjustmentApplication>
    <ns3:standardInvoiceAdjustmentApplication reversed="true" appliedOn="2015-01-19T15:39:16.000-06:00" amount="9.98" type="INVOICE" eid="8" queryScope="SHALLOW">
        <ns3:accountAdjustment eid="8" queryScope="EID"/>
        <ns3:invoice eid="5" queryScope="EID"/>
    </ns3:standardInvoiceAdjustmentApplication>
    <ns3:reversedInvoiceAdjustmentApplication appliedOn="2015-01-19T15:39:27.000-06:00" amount="-9.98" type="REVERSED" eid="9" queryScope="SHALLOW">
        <ns3:accountAdjustment eid="8" queryScope="EID"/>
        <ns3:invoice eid="5" queryScope="EID"/>
        <ns3:reversedApplication reversed="true" appliedOn="2015-01-19T15:39:16.000-06:00" amount="9.98" type="INVOICE" eid="8" queryScope="SHALLOW">
            <ns3:accountAdjustment eid="8" queryScope="EID"/>
            <ns3:invoice eid="5" queryScope="EID"/>
        </ns3:reversedApplication>
    </ns3:reversedInvoiceAdjustmentApplication>
    <ns3:standardInvoiceAdjustmentApplication reversed="false" appliedOn="2015-01-19T15:57:46.000-06:00" amount="29.99" type="INVOICE" eid="10" queryScope="SHALLOW">
        <ns3:accountAdjustment eid="11" queryScope="EID"/>
        <ns3:invoice eid="8" queryScope="EID"/>
    </ns3:standardInvoiceAdjustmentApplication>
    <ns3:standardInvoiceAdjustmentApplication reversed="false" appliedOn="2015-01-19T16:02:34.000-06:00" amount="29.99" type="INVOICE" eid="11" queryScope="SHALLOW">
        <ns3:accountAdjustment eid="11" queryScope="EID"/>
        <ns3:invoice eid="9" queryScope="EID"/>
    </ns3:standardInvoiceAdjustmentApplication>
</ns2:adjustmentApplications>