CreditMemoMod(3.0)

Some fields in a CreditMemoMod request cannot be cleared. If any of the following fields is included in a credit-memo modify request, it must contain a value:

Within CreditMemoLineMod or CreditMemoLineGroupMod:

(For more details about what it means for a field to be clearable or not clearable, see Modify, delete, and void requests and responses.)


Request

Response

XMLOps

VB.NET

C#

Tag Type Max length Implementation Required

ICreditMemoMod

Some fields in a CreditMemoMod request cannot be cleared. If any of the following fields is included in a credit-memo modify request, it must contain a value: CustomerRef ARAccountRef TemplateRef TxnDate IsPending DueDate ShipDate ItemSalesTaxRef IsToBePrinted Within CreditMemoLineMod or CreditMemoLineGroupMod: ItemRef Quantity Rate Amount SalesTaxCodeRef OverrideItemAccountRef (For more details about what it means for a field to be clearable or not clearable, see the QB SDK Programmer’s Guide (PDF, 9.6 MB).)
    3.0  

TxnID

QuickBooks generates a unique TxnID for each transaction that is added to QuickBooks. A TxnID returned from a request can be used to refer to the transaction in subsequent requests. Notice that you cannot supply the TxnID of a TimeTracking transaction to TransactionQueryRq requests. If you do, you get an error stating that no such record could be found, even though the transaction is in QuickBooks. This behavior reflects the behavior in the QuicKBooks UI in the Find window.
IQBIDType     Y

EditSequence

A number that the server generates and assigns to this object. Every time the object is changed, the server will change its EditSequence value. When you try to modify a list object, you must provide its EditSequence. The server compares the EditSequence you provide with the EditSequence in memory to make sure you are dealing with the latest copy of the object. If you are not, the server will reject the request and return an error. Because EditSequence is only used to check whether two objects match, there is no reason to interpret its value.
IQBStringType 16 chars   Y

CustomerRef

The customer list includes information about the QuickBooks user’s customers and the individual jobs that are being performed for them. A CustomerRef aggregate refers to one of the customers (or customer jobs) on the list. In a request, if a CustomerRef aggregate includes both FullName and ListID, FullName will be ignored. Special cases to note: In SalesReceipt and ReceivePayment requests, CustomerRef refers to the customer or customer job to which the payment is credited. In a TimeTracking request, CustomerRef refers to the customer or customer job to which this time could be billed. If IsBillable is set to true, CustomerRef is required in TimeTrackingAdd. In an ExpenseLineAdd request, if AccountRef refers to an A/P account, CustomerRef must refer to a vendor (not to a customer). If AccountRef refers to any other type of account, the CustomerRef must refer to a customer.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 209 chars    

ClassRef

Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default. A ClassRef aggregate refers to one of these named classes. For example, in a TimeTracking message, ClassRef refers to the QuickBooks class into which the timed activity falls. If a ClassRef aggregate includes both FullName and ListID, FullName will be ignored. In an InvoiceAdd request, if you specify a ClassRef for the whole invoice, that same ClassRef is automatically used in the line items. If you want to clear that (that is, have NO ClassRef for the line item, you can clear it in the line item by simply not specifying it in the line item.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

ARAccountRef

Refers to an accounts receivable account in the QuickBooks file. (The AccountType of this account will be AccountsReceivable.) If an ARAccountRef aggregate includes both FullName and ListID, FullName will be ignored. If this field is in a transaction that links to other transactions, make sure this ARAccountRef matches the ARAccountRef used in the other transactions. For example, in an ARRefundCreditCard transaction, the ARAccountRef of the credit card refund transaction must match the ARAccountRef used in each of the linked credit transactions.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

TemplateRef

QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A TemplateRef element refers to one of these templates.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars    

TxnDate

The date of the transaction. In some cases, if you leave TxnDate out of an -Add message, QuickBooks will prefill TxnDate with the date of the last-saved transaction of the same type.
IQBDateType      

RefNumber

A string of characters that refers to this transaction and that can be arbitrarily changed by the QuickBooks user. In a BillPaymentCheckAdd request, if you want to set the check number, use RefNumber.Note (especially relevant to CheckAdd requests): When RefNumber is left blank in an SDK transaction add request (that is, or ), the RefNumber will be left blank in QuickBooks. This behavior is new as of QBFC3. It used to select the next sequential reference number since the last one used by QuickBooks, as though no RefNumber had been provided. This is especially relevant to CheckAdd requests because with the current behavior, you will not know the number until the check is printed.
IQBStringType 11 chars    

BillAddress

Whatever address you specify in this aggregate must not result in an address greater than 5 lines, otherwise you’ll get a runtime error, because QuickBooks doesn’t support addresses more than 5 lines. There are two ways to specify an address within this aggregate: Using Addr1 through Addr3 along with the other possible aggregate elements, such as City, State, Postalcode. Using Addr1, Addr2, Addr3, Addr4, and Addr5 to fully specify the address. If you use this so called “address block” approach, you cannot use any other address elements, such as City, State, etc. (Note: this approach is not valid for EmployeeAdd/Mod/Query) If you use the address block approach above, the lines Addr1…Addr5 are each printed as a separate line on the transaction, and the values are returned in the Ret object under the aggregate ShipAddressBlock or BillAddressBlock.
IAddress      

Addr1

The first line of an address.
IQBStringType 41 chars    

Addr2

The second line of an address (if a second line is needed).
IQBStringType 41 chars    

Addr3

The third line of an address (if a third line is needed).
IQBStringType 41 chars    

Addr4

The fourth line of an address (if a fourth line is needed).
IQBStringType 41 chars 2.0  

Addr5

The fifth line of an address (if a fifth line is needed).
IQBStringType 41 chars 6.0  

City

The city name in an address.
IQBStringType 31 chars    

State

The state name in an address.
IQBStringType 21 chars    

PostalCode

The postal code in an address.
IQBStringType 13 chars    

Country

The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)
IQBStringType 31 chars    

Note

In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.
IQBStringType 41 chars 6.0  

ShipAddress

Whatever address you specify in this aggregate must not result in an address greater than 5 lines, otherwise you’ll get a runtime error, because QuickBooks doesn’t support addresses more than 5 lines. There are two ways to specify an address within this aggregate: Using Addr1 through Addr3 along with the other possible aggregate elements, such as City, State, Postalcode. Using Addr1, Addr2, Addr3, Addr4, and Addr5 to fully specify the address. If you use this so called “address block” approach, you cannot use any other address elements, such as City, State, etc. (Note: this approach is not valid for EmployeeAdd/Mod/Query) If you use the address block approach above, the lines Addr1…Addr5 are each printed as a separate line on the transaction, and the values are returned in the Ret object under the aggregate ShipAddressBlock or BillAddressBlock.
IAddress      

Addr1

The first line of an address.
IQBStringType 41 chars    

Addr2

The second line of an address (if a second line is needed).
IQBStringType 41 chars    

Addr3

The third line of an address (if a third line is needed).
IQBStringType 41 chars    

Addr4

The fourth line of an address (if a fourth line is needed).
IQBStringType 41 chars 2.0  

Addr5

The fifth line of an address (if a fifth line is needed).
IQBStringType 41 chars 6.0  

City

The city name in an address.
IQBStringType 31 chars    

State

The state name in an address.
IQBStringType 21 chars    

PostalCode

The postal code in an address.
IQBStringType 13 chars    

Country

The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)
IQBStringType 31 chars    

Note

In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.
IQBStringType 41 chars 6.0  

IsPending

If IsPending is set to true, the credit memo has not been completed. Within QuickBooks, you can change the IsPending status for a credit memo by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.
IQBBoolType      

PONumber

Purchase order number.
IQBStringType 25 chars    

TermsRef

Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a TermsRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars    

DueDate

The date on which payment is due.
IQBDateType      

SalesRepRef

A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A SalesRepRef refers to a person on the SalesRep list. In a request, if a SalesRepRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 5 chars    

FOB

QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.
IQBStringType 13 chars    

ShipDate

The date when the product was, or will be, shipped.
IQBDateType      

ShipMethodRef

A shipping method, for example, standard mail or overnight delivery. A ShipMethodRef aggregate refers to an item on the ShipMethod list. In a request, if a ShipMethodRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 15 chars    

ItemSalesTaxRef

A sales-tax item is used to calculate a single sales tax that is collected at a specified rate and paid to a single agency. (Compare with the ItemSalesTaxGroupAdd message.) An ItemSalesTaxRef aggregate refers to an item on this list. In a request, if an ItemSalesTaxRef aggregate includes both FullName and ListID, FullName will be ignored. Taxes can be reflected in transaction line items The following information refers to invoices specifically, but it also applies to sales receipts. Generally its best to assign a tax item or tax group item to an invoice and allow QuickBooks to apply the same tax to all taxable items on the invoice. However in some situations multiple tax combinations are required, so this method doesn’t work. In this case one must use techniques to apply the taxes in the invoice itself as line items. Using lines to apply taxes isn’t always straight forward. When applying taxes as line items, only single tax items can be used, tax groups can only be used for the entire invoice. If you have multiple taxes which apply to all taxable items, and one or more other taxes that only apply to some of the items on an invoice its better to use a tax group which applies to the entire invoice for the taxes which applies to all taxable items and then apply the other taxes in the invoice itself. One applies a tax or tax group to an entire invoice by using the ItemSalesTaxRef aggregate. One can use subtotals to apply a single tax line to multiple items in an invoice, but the tax is only applied automatically for the first tax line after the subtotal line. Any other tax lines which need to be applied to the subtotal line must supply their own amount. If you don’t supply an amount the amount comes out as zero and the tax line is useless. When one does supply an amount, the amount of tax on the subtotal also shows up in the rate column for that tax line. There isn’t any way for the rate to show up as anything other than the amount of the tax. If you have a complicated tax situation where no single tax applies to all taxable items on the invoice, you must choose a zero percent tax to apply for the entire invoice. It is recommended to name such a tax item “Tax Calculated On Invoice” so that it’s clear that the tax is not being applied by QuickBooks on the entire invoice.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars    

Memo

The memo does not print on the credit memo, but does appear in the account register and the customer register.
IQBStringType 4095 chars    

CustomerMsgRef

A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A CustomerMsgRef aggregate refers to one of the messages on the CustomerMsg list. In a request, if a CustomerMsgRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 101 chars    

IsToBePrinted

If IsToBePrinted is set to true, this transaction is on a list of forms to be printed later. The user can then choose to print all these forms at once. Notice that setting this field to true does not actually perform the printing. Only the QuickBooks user can do that from within QuickBooks. This cannot be done from the SDK. Setting this field to false does not prevent the QuickBooks user from printing the transaction later. It simply results in the transaction NOT being placed in the list of transactions to be printed.
IQBBoolType      

IsToBeEmailed

If this is set to true, at runtime the customer referenced in this transaction will be checked for a valid email address. If there is no valid email address, the request will fail. If there is a valid email address currently in QuickBooks for the customer, and the request succeeds, the transaction will be added to QuickBook’s list of forms to be emailed, possibly in a batch. Notice that setting this field to true does not actually perform the emailing. Only the QuickBooks user can do that from within QuickBooks. This cannot be done from the SDK. Setting this field to false does not prevent the QuickBooks user from emailing the transaction later. It simply results in the transaction NOT being placed in the list of transactions to be emailed.
IQBBoolType   6.0  

IsTaxIncluded

For future use with international versions of QuickBooks.
IQBBoolType   6.0 CA.png uk.png  

CustomerSalesTaxCodeRef

Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a CustomerSalesTaxCodeRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 3 chars    

Other

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

ExchangeRate

The exchange rate is the market price for which this currency can be exchanged for the currency used by the QuickBooks company file as the “home” currency. The exchange rate should be considered a snapshot of the rates in effect at the AsOfDate. You can update the exchange rate using the exchange rate property when you add a transaction. However, you need to obtain and supply the exchange rate. If you are using USD (United States Dollars) as the home currency and are connected to the Internet, you can download the current exchange rates for all active currencies automatically in the QuickBooks UI by selecting Lists->Currency->Activities->Download latest exchange rates. (Currently, you can’t do this in the SDK.)
IQBFloatType   8.0  

ORCreditMemoLineModList

IORCreditMemoLineModList      

(List

of IORCreditMemoLineMod Objects)
       

CreditMemoLineMod

Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.
ICreditMemoLineMod      

TxnLineID

Identification number of the transaction line. (TxnLineID is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, TxnLineID is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the TxnLineID to -1.
IQBIDType     Y

ItemRef

Depending on the request containing it, ItemRef can refer to an item on any Item list such as ItemDiscount, ItemInventory, and so forth, or it may accept only a subset of item types. For example, here are some requests that impose limits on what items ItemRef can refer to. For PurchaseOrder and Bill requests, ItemRef cannot refer to discount items or sales-tax items For VehicleMilageAdd requests, the ItemRef must refer to a service item or an other charge item. For BillingRateAdd requests, the ItemRef must refer to a service item. You can use an ItemQuery request to get information about all the items that are set up in the QuickBooks file. “Items” are line items used for fast entry on sales and purchase forms. They include services and goods that a business buys and sells, as well as special items that perform calculations–for example, subtotal, discount, and sales-tax items. Note: In a request, if an ItemRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType      

Desc

A descriptive text field.
IQBStringType 4095 chars    

Quantity

Quantity For transactions: If an item line add on a transaction request specifies Quantity and Amount but not Rate, QuickBooks will use Quantity and Amount to calculate Rate. Likewise, if a request specifies Quantity and Rate but not Amount, QuickBooks will calculate the Amount. If a transaction add request includes a reference to an ItemDiscount item, do not include a Quantity element as well, or you will get an error. For Item requests: Quantity indicates how many of this item there are.
IQBQuanType      

UnitOfMeasure

In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!
IQBStringType 31 chars 7.0  

OverrideUOMSetRef

When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you cannot change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.
IQBBaseRef   7.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   7.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 7.0  

ORRatePriceLevel

IORRatePriceLevel      

Rate

If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity cannot be cleared.)
IQBPriceType      

RatePercent

Indicates the price of something as a percent.
IQBPercentType      

PriceLevelRef

You can use price levels to specify custom pricing for specific customers. Once you create a price level for a customer, QuickBooks will automatically use the custom price in new invoices, sales receipts, sales orders or credit memos for that customer. You can override this automatic feature, however, when you create the invoices, sales receipts, etc.) The user can now specify a price level on line items in the following supported sales transactions: invoices, sales receipts, credit memos, and sales orders. Notice that the response data for the affected sales transaction does not list the price level that was used. The response simply lists the Rate for the item, which was set using the price level.
IQBBaseRef   4.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   4.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 4.0  

ClassRef

Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default. A ClassRef aggregate refers to one of these named classes. For example, in a TimeTracking message, ClassRef refers to the QuickBooks class into which the timed activity falls. If a ClassRef aggregate includes both FullName and ListID, FullName will be ignored. In an InvoiceAdd request, if you specify a ClassRef for the whole invoice, that same ClassRef is automatically used in the line items. If you want to clear that (that is, have NO ClassRef for the line item, you can clear it in the line item by simply not specifying it in the line item.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

Amount

A monetary amount.
IQBAmountType      

InventorySiteRef

Site where inventory is located.
IQBBaseRef   10.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   10.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 10.0  

InventorySiteLocationRef

Location within the Inventory Site.
IQBBaseRef   12.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   12.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 12.0  

ORSerialLotNumber

IORSerialLotNumber   11.0  

SerialNumber

The serial number of the asset.
IQBStringType 4095 chars    

LotNumber

The lot number of the asset.
IQBStringType 40 chars    

ServiceDate

Indicates the date on which the QuickBooks user performs the service for the customer.
IQBDateType      

SalesTaxCodeRef

Each item on a sales form is assigned a sales-tax code that indicates whether the item is taxable or non-taxable, and why. Two general codes, which can be modified but not deleted, appear on the sales-tax code list by default: Non-taxable (Name = NON; Desc = Non-Taxable; IsTaxable = false) Taxable (Name = TAX; Desc = Taxable; IsTaxable = true) A sales-tax code can be deleted only if it is no longer associated with any customer, item, or transaction. If the “Do You Charge Sales Tax?” preference within QuickBooks is set to No, QuickBooks will assign the default non-taxable sales-tax code to all sales. A SalesTaxCodeRef aggregate refers to a sales-tax code on the list. In a request, if a SalesTaxCodeRef aggregate includes both FullName and ListID, FullName will be ignored. In a Customer message, SalesTaxCodeRef refers to the sales-tax code that will be used for items related to this customer. In an ItemInventory message, SalesTaxCodeRef refers to the type of sales tax that will be charged for this item, if it is a taxable item and if sales tax is set up within QuickBooks.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 3 chars    

OverrideItemAccountRef

Refers to a QuickBooks account. If you are using QB Online edition, you cannot specify an accounts receivable account here. If an OverrideItemAccountRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

Other1

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

Other2

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

CreditMemoLineGroupMod

Represents a previously defined group of lines in the credit memo. Compare with CreditMemoLine, which represents just one line in the credit memo.
ICreditMemoLineGroupMod      

TxnLineID

Identification number of the transaction line. (TxnLineID is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, TxnLineID is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the TxnLineID to -1.
IQBIDType     Y

ItemGroupRef

ItemGroup objects represent items that are grouped together for fast entry, and an ItemGroupRef aggregate refers to one of these item groups. In a request, if an ItemGroupRef aggregate includes both FullName and ListID, FullName will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars    

Quantity

Quantity For transactions: If an item line add on a transaction request specifies Quantity and Amount but not Rate, QuickBooks will use Quantity and Amount to calculate Rate. Likewise, if a request specifies Quantity and Rate but not Amount, QuickBooks will calculate the Amount. If a transaction add request includes a reference to an ItemDiscount item, do not include a Quantity element as well, or you will get an error. For Item requests: Quantity indicates how many of this item there are.
IQBQuanType      

UnitOfMeasure

In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!
IQBStringType 31 chars 7.0  

OverrideUOMSetRef

When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you cannot change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.
IQBBaseRef   7.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   7.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 7.0  

CreditMemoLineModList

A list of ICreditMemoLineRet objects, each representing one line in the credit memo.
ICreditMemoLineModList      

(List

of ICreditMemoLineMod Objects)
       

TxnLineID

Identification number of the transaction line. (TxnLineID is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, TxnLineID is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the TxnLineID to -1.
IQBIDType     Y

ItemRef

Depending on the request containing it, ItemRef can refer to an item on any Item list such as ItemDiscount, ItemInventory, and so forth, or it may accept only a subset of item types. For example, here are some requests that impose limits on what items ItemRef can refer to. For PurchaseOrder and Bill requests, ItemRef cannot refer to discount items or sales-tax items For VehicleMilageAdd requests, the ItemRef must refer to a service item or an other charge item. For BillingRateAdd requests, the ItemRef must refer to a service item. You can use an ItemQuery request to get information about all the items that are set up in the QuickBooks file. “Items” are line items used for fast entry on sales and purchase forms. They include services and goods that a business buys and sells, as well as special items that perform calculations–for example, subtotal, discount, and sales-tax items. Note: In a request, if an ItemRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType      

Desc

A descriptive text field.
IQBStringType 4095 chars    

Quantity

Quantity For transactions: If an item line add on a transaction request specifies Quantity and Amount but not Rate, QuickBooks will use Quantity and Amount to calculate Rate. Likewise, if a request specifies Quantity and Rate but not Amount, QuickBooks will calculate the Amount. If a transaction add request includes a reference to an ItemDiscount item, do not include a Quantity element as well, or you will get an error. For Item requests: Quantity indicates how many of this item there are.
IQBQuanType      

UnitOfMeasure

In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!
IQBStringType 31 chars 7.0  

OverrideUOMSetRef

When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you cannot change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.
IQBBaseRef   7.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   7.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 7.0  

ORRatePriceLevel

IORRatePriceLevel      

Rate

If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity cannot be cleared.)
IQBPriceType      

RatePercent

Indicates the price of something as a percent.
IQBPercentType      

PriceLevelRef

You can use price levels to specify custom pricing for specific customers. Once you create a price level for a customer, QuickBooks will automatically use the custom price in new invoices, sales receipts, sales orders or credit memos for that customer. You can override this automatic feature, however, when you create the invoices, sales receipts, etc.) The user can now specify a price level on line items in the following supported sales transactions: invoices, sales receipts, credit memos, and sales orders. Notice that the response data for the affected sales transaction does not list the price level that was used. The response simply lists the Rate for the item, which was set using the price level.
IQBBaseRef   4.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   4.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 4.0  

ClassRef

Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default. A ClassRef aggregate refers to one of these named classes. For example, in a TimeTracking message, ClassRef refers to the QuickBooks class into which the timed activity falls. If a ClassRef aggregate includes both FullName and ListID, FullName will be ignored. In an InvoiceAdd request, if you specify a ClassRef for the whole invoice, that same ClassRef is automatically used in the line items. If you want to clear that (that is, have NO ClassRef for the line item, you can clear it in the line item by simply not specifying it in the line item.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

Amount

A monetary amount.
IQBAmountType      

InventorySiteRef

Site where inventory is located.
IQBBaseRef   10.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   10.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 10.0  

InventorySiteLocationRef

Location within the Inventory Site.
IQBBaseRef   12.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   12.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 12.0  

ORSerialLotNumber

IORSerialLotNumber   11.0  

SerialNumber

The serial number of the asset.
IQBStringType 4095 chars    

LotNumber

The lot number of the asset.
IQBStringType 40 chars    

ServiceDate

Indicates the date on which the QuickBooks user performs the service for the customer.
IQBDateType      

SalesTaxCodeRef

Each item on a sales form is assigned a sales-tax code that indicates whether the item is taxable or non-taxable, and why. Two general codes, which can be modified but not deleted, appear on the sales-tax code list by default: Non-taxable (Name = NON; Desc = Non-Taxable; IsTaxable = false) Taxable (Name = TAX; Desc = Taxable; IsTaxable = true) A sales-tax code can be deleted only if it is no longer associated with any customer, item, or transaction. If the “Do You Charge Sales Tax?” preference within QuickBooks is set to No, QuickBooks will assign the default non-taxable sales-tax code to all sales. A SalesTaxCodeRef aggregate refers to a sales-tax code on the list. In a request, if a SalesTaxCodeRef aggregate includes both FullName and ListID, FullName will be ignored. In a Customer message, SalesTaxCodeRef refers to the sales-tax code that will be used for items related to this customer. In an ItemInventory message, SalesTaxCodeRef refers to the type of sales tax that will be charged for this item, if it is a taxable item and if sales tax is set up within QuickBooks.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 3 chars    

OverrideItemAccountRef

Refers to a QuickBooks account. If you are using QB Online edition, you cannot specify an accounts receivable account here. If an OverrideItemAccountRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

Other1

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

Other2

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

IncludeRetElementList

You use this if you want to limit the data that will be returned in the response. In this list, you specify the name of each top-level element or aggregate that you want to be returned in the response to the request. You cannot specify fields within an aggregate, for example, you cannot specify a City within an Address: you must specify Address and will get the entire address. The names specified in the list are not parsed, so you must be especially careful to supply valid names, properly cased. No error is returned in the status code if you specify an invalid name. Notice that if you want to return custom data or private data extensions, you must specify the DataExtRet element and you must supply the OwnerID set to either a value of 0 (custom data) or the GUID for the private data.
IBSTRList 50 chars 4.0  
Tag Type Max length Implementation Required

IResponse

Some fields in a CreditMemoMod request cannot be cleared. If any of the following fields is included in a credit-memo modify request, it must contain a value: CustomerRef ARAccountRef TemplateRef TxnDate IsPending DueDate ShipDate ItemSalesTaxRef IsToBePrinted Within CreditMemoLineMod or CreditMemoLineGroupMod: ItemRef Quantity Rate Amount SalesTaxCodeRef OverrideItemAccountRef (For more details about what it means for a field to be clearable or not clearable, see the QB SDK Programmer’s Guide (PDF, 9.6 MB).)
    3.0  

StatusCode

A number that corresponds to a statusSeverity and statusMessage. Five status codes relate directly to signon messages: 2000, 2010, 2020, 2030, and 2040. For details about these and other statusCode values that can be returned, see the statusCode table on the Error Codes page.
IQBIntType     Y

StatusSeverity

One of the following values: INFO The request was completed, and the results are consistent with what your application expected. WARNING The request was completed, but the results might not be consistent with what you expected. ERROR The request was not completed. No data will appear in the server’s response after the statusMessage.
IQBStringType     Y

StatusMessage

A user-readable explanation of the success or error condition that is indicated by the statusCode. For details about the statusMessage values that can be returned, see the “Explanation” column of the statusCode table on the Error Codes page.
IQBStringType     Y

Detail

ICreditMemoRet      

TxnID

QuickBooks generates a unique TxnID for each transaction that is added to QuickBooks. A TxnID returned from a request can be used to refer to the transaction in subsequent requests. Notice that you cannot supply the TxnID of a TimeTracking transaction to TransactionQueryRq requests. If you do, you get an error stating that no such record could be found, even though the transaction is in QuickBooks. This behavior reflects the behavior in the QuicKBooks UI in the Find window.
IQBIDType     Y

TimeCreated

Time the object was created.
IQBDateTimeType     Y

TimeModified

Time the object was last modified.
IQBDateTimeType     Y

EditSequence

A number that the server generates and assigns to this object. Every time the object is changed, the server will change its EditSequence value. When you try to modify a list object, you must provide its EditSequence. The server compares the EditSequence you provide with the EditSequence in memory to make sure you are dealing with the latest copy of the object. If you are not, the server will reject the request and return an error. Because EditSequence is only used to check whether two objects match, there is no reason to interpret its value.
IQBStringType 16 chars   Y

TxnNumber

An identifying number for this transaction.
IQBIntType      

CustomerRef

The customer list includes information about the QuickBooks user’s customers and the individual jobs that are being performed for them. A CustomerRef aggregate refers to one of the customers (or customer jobs) on the list. In a request, if a CustomerRef aggregate includes both FullName and ListID, FullName will be ignored. Special cases to note: In SalesReceipt and ReceivePayment requests, CustomerRef refers to the customer or customer job to which the payment is credited. In a TimeTracking request, CustomerRef refers to the customer or customer job to which this time could be billed. If IsBillable is set to true, CustomerRef is required in TimeTrackingAdd. In an ExpenseLineAdd request, if AccountRef refers to an A/P account, CustomerRef must refer to a vendor (not to a customer). If AccountRef refers to any other type of account, the CustomerRef must refer to a customer.
IQBBaseRef     Y

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 209 chars    

ClassRef

Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default. A ClassRef aggregate refers to one of these named classes. For example, in a TimeTracking message, ClassRef refers to the QuickBooks class into which the timed activity falls. If a ClassRef aggregate includes both FullName and ListID, FullName will be ignored. In an InvoiceAdd request, if you specify a ClassRef for the whole invoice, that same ClassRef is automatically used in the line items. If you want to clear that (that is, have NO ClassRef for the line item, you can clear it in the line item by simply not specifying it in the line item.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

ARAccountRef

Refers to an accounts receivable account in the QuickBooks file. (The AccountType of this account will be AccountsReceivable.) If an ARAccountRef aggregate includes both FullName and ListID, FullName will be ignored. If this field is in a transaction that links to other transactions, make sure this ARAccountRef matches the ARAccountRef used in the other transactions. For example, in an ARRefundCreditCard transaction, the ARAccountRef of the credit card refund transaction must match the ARAccountRef used in each of the linked credit transactions.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

TemplateRef

QuickBooks templates specify how to print certain transactions. A template query returns the names of all templates that have been defined in QuickBooks. A TemplateRef element refers to one of these templates.
IQBBaseRef   3.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   3.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 3.0  

TxnDate

The date of the transaction. In some cases, if you leave TxnDate out of an -Add message, QuickBooks will prefill TxnDate with the date of the last-saved transaction of the same type.
IQBDateType     Y

RefNumber

A string of characters that refers to this transaction and that can be arbitrarily changed by the QuickBooks user. In a BillPaymentCheckAdd request, if you want to set the check number, use RefNumber.Note (especially relevant to CheckAdd requests): When RefNumber is left blank in an SDK transaction add request (that is, or ), the RefNumber will be left blank in QuickBooks. This behavior is new as of QBFC3. It used to select the next sequential reference number since the last one used by QuickBooks, as though no RefNumber had been provided. This is especially relevant to CheckAdd requests because with the current behavior, you will not know the number until the check is printed.
IQBStringType 11 chars    

BillAddress

Whatever address you specify in this aggregate must not result in an address greater than 5 lines, otherwise you’ll get a runtime error, because QuickBooks doesn’t support addresses more than 5 lines. There are two ways to specify an address within this aggregate: Using Addr1 through Addr3 along with the other possible aggregate elements, such as City, State, Postalcode. Using Addr1, Addr2, Addr3, Addr4, and Addr5 to fully specify the address. If you use this so called “address block” approach, you cannot use any other address elements, such as City, State, etc. (Note: this approach is not valid for EmployeeAdd/Mod/Query) If you use the address block approach above, the lines Addr1…Addr5 are each printed as a separate line on the transaction, and the values are returned in the Ret object under the aggregate ShipAddressBlock or BillAddressBlock.
IAddress      

Addr1

The first line of an address.
IQBStringType 41 chars    

Addr2

The second line of an address (if a second line is needed).
IQBStringType 41 chars    

Addr3

The third line of an address (if a third line is needed).
IQBStringType 41 chars    

Addr4

The fourth line of an address (if a fourth line is needed).
IQBStringType 41 chars 2.0  

Addr5

The fifth line of an address (if a fifth line is needed).
IQBStringType 41 chars 6.0  

City

The city name in an address.
IQBStringType 31 chars    

State

The state name in an address.
IQBStringType 21 chars    

PostalCode

The postal code in an address.
IQBStringType 13 chars    

Country

The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)
IQBStringType 31 chars    

Note

In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.
IQBStringType 41 chars 6.0  

BillAddressBlock

The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.
IAddressBlock   6.0  

Addr1

The first line of an address.
IQBStringType 41 chars    

Addr2

The second line of an address (if a second line is needed).
IQBStringType 41 chars    

Addr3

The third line of an address (if a third line is needed).
IQBStringType 41 chars    

Addr4

The fourth line of an address (if a fourth line is needed).
IQBStringType 41 chars    

Addr5

The fifth line of an address (if a fifth line is needed).
IQBStringType 41 chars    

ShipAddress

Whatever address you specify in this aggregate must not result in an address greater than 5 lines, otherwise you’ll get a runtime error, because QuickBooks doesn’t support addresses more than 5 lines. There are two ways to specify an address within this aggregate: Using Addr1 through Addr3 along with the other possible aggregate elements, such as City, State, Postalcode. Using Addr1, Addr2, Addr3, Addr4, and Addr5 to fully specify the address. If you use this so called “address block” approach, you cannot use any other address elements, such as City, State, etc. (Note: this approach is not valid for EmployeeAdd/Mod/Query) If you use the address block approach above, the lines Addr1…Addr5 are each printed as a separate line on the transaction, and the values are returned in the Ret object under the aggregate ShipAddressBlock or BillAddressBlock.
IAddress      

Addr1

The first line of an address.
IQBStringType 41 chars    

Addr2

The second line of an address (if a second line is needed).
IQBStringType 41 chars    

Addr3

The third line of an address (if a third line is needed).
IQBStringType 41 chars    

Addr4

The fourth line of an address (if a fourth line is needed).
IQBStringType 41 chars 2.0  

Addr5

The fifth line of an address (if a fifth line is needed).
IQBStringType 41 chars 6.0  

City

The city name in an address.
IQBStringType 31 chars    

State

The state name in an address.
IQBStringType 21 chars    

PostalCode

The postal code in an address.
IQBStringType 13 chars    

Country

The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)
IQBStringType 31 chars    

Note

In a BillAddress or ShipAddress aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.
IQBStringType 41 chars 6.0  

ShipAddressBlock

The address expressed as an address block of Addr1 through Addr5, depending on the number of lines in the original request that created the address.
IAddressBlock   6.0  

Addr1

The first line of an address.
IQBStringType 41 chars    

Addr2

The second line of an address (if a second line is needed).
IQBStringType 41 chars    

Addr3

The third line of an address (if a third line is needed).
IQBStringType 41 chars    

Addr4

The fourth line of an address (if a fourth line is needed).
IQBStringType 41 chars    

Addr5

The fifth line of an address (if a fifth line is needed).
IQBStringType 41 chars    

IsPending

If IsPending is set to true, the credit memo has not been completed. Within QuickBooks, you can change the IsPending status for a credit memo by choosing “Mark Credit Memo As Pending” or “Mark Credit Memo As Final” from the Edit menu.
IQBBoolType      

PONumber

Purchase order number.
IQBStringType 25 chars    

TermsRef

Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a TermsRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars    

DueDate

The date on which payment is due.
IQBDateType      

SalesRepRef

A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A SalesRepRef refers to a person on the SalesRep list. In a request, if a SalesRepRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 5 chars    

FOB

QuickBooks uses the term FOB, “freight on board,” to indicate the place from which the product is shipped. The FOB has no accounting implications.
IQBStringType 13 chars    

ShipDate

The date when the product was, or will be, shipped.
IQBDateType      

ShipMethodRef

A shipping method, for example, standard mail or overnight delivery. A ShipMethodRef aggregate refers to an item on the ShipMethod list. In a request, if a ShipMethodRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 15 chars    

Subtotal

The total of all the credit-memo lines, before taxes are applied. (By contrast, a subtotal item (an ItemSubtotal object) gives only the total of the amounts in the lines that appear above it.)
IQBAmountType      

ItemSalesTaxRef

A sales-tax item is used to calculate a single sales tax that is collected at a specified rate and paid to a single agency. (Compare with the ItemSalesTaxGroupAdd message.) An ItemSalesTaxRef aggregate refers to an item on this list. In a request, if an ItemSalesTaxRef aggregate includes both FullName and ListID, FullName will be ignored. Taxes can be reflected in transaction line items The following information refers to invoices specifically, but it also applies to sales receipts. Generally its best to assign a tax item or tax group item to an invoice and allow QuickBooks to apply the same tax to all taxable items on the invoice. However in some situations multiple tax combinations are required, so this method doesn’t work. In this case one must use techniques to apply the taxes in the invoice itself as line items. Using lines to apply taxes isn’t always straight forward. When applying taxes as line items, only single tax items can be used, tax groups can only be used for the entire invoice. If you have multiple taxes which apply to all taxable items, and one or more other taxes that only apply to some of the items on an invoice its better to use a tax group which applies to the entire invoice for the taxes which applies to all taxable items and then apply the other taxes in the invoice itself. One applies a tax or tax group to an entire invoice by using the ItemSalesTaxRef aggregate. One can use subtotals to apply a single tax line to multiple items in an invoice, but the tax is only applied automatically for the first tax line after the subtotal line. Any other tax lines which need to be applied to the subtotal line must supply their own amount. If you don’t supply an amount the amount comes out as zero and the tax line is useless. When one does supply an amount, the amount of tax on the subtotal also shows up in the rate column for that tax line. There isn’t any way for the rate to show up as anything other than the amount of the tax. If you have a complicated tax situation where no single tax applies to all taxable items on the invoice, you must choose a zero percent tax to apply for the entire invoice. It is recommended to name such a tax item “Tax Calculated On Invoice” so that it’s clear that the tax is not being applied by QuickBooks on the entire invoice.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars    

SalesTaxPercentage

The percentage charged for sales tax.
IQBPercentType      

SalesTaxTotal

The total amount of sales tax charged.
IQBAmountType      

TotalAmount

Subtotal plus SalesTaxTotal.
IQBAmountType      

CreditRemaining

Available credit.
IQBAmountType   2.0  

CurrencyRef

The currency object contains all of the information needed by QuickBooks to display and use. For built-in currencies, the name and currency code values are internationally accepted values and thus are not editable. The comma format is editable, as is the IsActive status. For user-defined currencies, every value in the object is editable including name and currency code. When used with PriceLevels, the CurrencyRef should only be used with “per item” price levels.
IQBBaseRef   8.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   8.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 64 chars 8.0  

ExchangeRate

The exchange rate is the market price for which this currency can be exchanged for the currency used by the QuickBooks company file as the “home” currency. The exchange rate should be considered a snapshot of the rates in effect at the AsOfDate. You can update the exchange rate using the exchange rate property when you add a transaction. However, you need to obtain and supply the exchange rate. If you are using USD (United States Dollars) as the home currency and are connected to the Internet, you can download the current exchange rates for all active currencies automatically in the QuickBooks UI by selecting Lists->Currency->Activities->Download latest exchange rates. (Currently, you can’t do this in the SDK.)
IQBFloatType   8.0  

CreditRemainingInHomeCurrency

The amount of the remaining credit, expressed in units of the current home currency.
IQBAmountType   8.0  

Memo

The memo does not print on the credit memo, but does appear in the account register and the customer register.
IQBStringType 4095 chars    

CustomerMsgRef

A standard message such as “Thank you for your business,” or “Please sign and return this estimate to indicate your approval.” A customer message can be included at the bottom of a form. A CustomerMsgRef aggregate refers to one of the messages on the CustomerMsg list. In a request, if a CustomerMsgRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 101 chars    

IsToBePrinted

If IsToBePrinted is set to true, this transaction is on a list of forms to be printed later. The user can then choose to print all these forms at once. Notice that setting this field to true does not actually perform the printing. Only the QuickBooks user can do that from within QuickBooks. This cannot be done from the SDK. Setting this field to false does not prevent the QuickBooks user from printing the transaction later. It simply results in the transaction NOT being placed in the list of transactions to be printed.
IQBBoolType      

IsToBeEmailed

If this is set to true, at runtime the customer referenced in this transaction will be checked for a valid email address. If there is no valid email address, the request will fail. If there is a valid email address currently in QuickBooks for the customer, and the request succeeds, the transaction will be added to QuickBook’s list of forms to be emailed, possibly in a batch. Notice that setting this field to true does not actually perform the emailing. Only the QuickBooks user can do that from within QuickBooks. This cannot be done from the SDK. Setting this field to false does not prevent the QuickBooks user from emailing the transaction later. It simply results in the transaction NOT being placed in the list of transactions to be emailed.
IQBBoolType   6.0  

IsTaxIncluded

For future use with international versions of QuickBooks.
IQBBoolType   6.0 CA.png uk.png  

CustomerSalesTaxCodeRef

Refers to the sales-tax code for sales related to this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax code indicates whether an item is taxable or non-taxable, and why. In a request, if a CustomerSalesTaxCodeRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 3 chars    

Other

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

ExternalGUID

Allows for the attachment of a user defined GUID value.
IQBGUIDType   9.0  

LinkedTxnList

If the IncludeLinkedTxns flag is set to true in a query, or if you create an item receipt that links to other transactionsthen the returned object will include a list of linked transactions, if any exist. If no linked transactions exist, the ILinkedTxnList object will be empty. The list of linked transactions is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.
ILinkedTxnList   1.1  

(List

of ILinkedTxn Objects)
       

TxnID

QuickBooks generates a unique TxnID for each transaction that is added to QuickBooks. A TxnID returned from a request can be used to refer to the transaction in subsequent requests. Notice that you cannot supply the TxnID of a TimeTracking transaction to TransactionQueryRq requests. If you do, you get an error stating that no such record could be found, even though the transaction is in QuickBooks. This behavior reflects the behavior in the QuicKBooks UI in the Find window.
IQBIDType     Y

TxnType

The type of transaction.
IQBENTxnTypeType     Y

TxnDate

The date of the transaction. In some cases, if you leave TxnDate out of an -Add message, QuickBooks will prefill TxnDate with the date of the last-saved transaction of the same type.
IQBDateType     Y

RefNumber

A string of characters that refers to this transaction and that can be arbitrarily changed by the QuickBooks user. In a BillPaymentCheckAdd request, if you want to set the check number, use RefNumber.Note (especially relevant to CheckAdd requests): When RefNumber is left blank in an SDK transaction add request (that is, or ), the RefNumber will be left blank in QuickBooks. This behavior is new as of QBFC3. It used to select the next sequential reference number since the last one used by QuickBooks, as though no RefNumber had been provided. This is especially relevant to CheckAdd requests because with the current behavior, you will not know the number until the check is printed.
IQBStringType 20 chars    

LinkType

Indicates the nature of the link between the transactions: ltAMTTYPE means the two transactions are linked based on an amount value (for example an invoice linked to a payment). ltQUANTYPE means the two transactions are linked based on a quantity. This affects transactions that are linked to sales orders, estimates and purchase orders. For example, an invoice might be created from a sales order, based on the quantity of items received.
IQBENLinkTypeType   3.0  

Amount

A monetary amount.
IQBAmountType     Y

ORCreditMemoLineRetList

IORCreditMemoLineRetList      

(List

of IORCreditMemoLineRet Objects)
       

CreditMemoLineRet

Represents one line in the credit memo. Compare with CreditMemoGroupLine, which represents a previously defined group of lines in the credit memo.
ICreditMemoLineRet      

TxnLineID

Identification number of the transaction line. (TxnLineID is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, TxnLineID is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the TxnLineID to -1.
IQBIDType     Y

ItemRef

Depending on the request containing it, ItemRef can refer to an item on any Item list such as ItemDiscount, ItemInventory, and so forth, or it may accept only a subset of item types. For example, here are some requests that impose limits on what items ItemRef can refer to. For PurchaseOrder and Bill requests, ItemRef cannot refer to discount items or sales-tax items For VehicleMilageAdd requests, the ItemRef must refer to a service item or an other charge item. For BillingRateAdd requests, the ItemRef must refer to a service item. You can use an ItemQuery request to get information about all the items that are set up in the QuickBooks file. “Items” are line items used for fast entry on sales and purchase forms. They include services and goods that a business buys and sells, as well as special items that perform calculations–for example, subtotal, discount, and sales-tax items. Note: In a request, if an ItemRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType      

Desc

A descriptive text field.
IQBStringType 4095 chars    

Quantity

Quantity For transactions: If an item line add on a transaction request specifies Quantity and Amount but not Rate, QuickBooks will use Quantity and Amount to calculate Rate. Likewise, if a request specifies Quantity and Rate but not Amount, QuickBooks will calculate the Amount. If a transaction add request includes a reference to an ItemDiscount item, do not include a Quantity element as well, or you will get an error. For Item requests: Quantity indicates how many of this item there are.
IQBQuanType      

UnitOfMeasure

In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!
IQBStringType 31 chars 7.0  

OverrideUOMSetRef

When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you cannot change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.
IQBBaseRef   7.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   7.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 7.0  

ORRate

IORRate      

Rate

If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity cannot be cleared.)
IQBPriceType      

RatePercent

Indicates the price of something as a percent.
IQBPercentType      

ClassRef

Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default. A ClassRef aggregate refers to one of these named classes. For example, in a TimeTracking message, ClassRef refers to the QuickBooks class into which the timed activity falls. If a ClassRef aggregate includes both FullName and ListID, FullName will be ignored. In an InvoiceAdd request, if you specify a ClassRef for the whole invoice, that same ClassRef is automatically used in the line items. If you want to clear that (that is, have NO ClassRef for the line item, you can clear it in the line item by simply not specifying it in the line item.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

Amount

A monetary amount.
IQBAmountType      

InventorySiteRef

Site where inventory is located.
IQBBaseRef   10.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   10.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 10.0  

InventorySiteLocationRef

Location within the Inventory Site.
IQBBaseRef   12.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   12.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 12.0  

ORSerialLotNumber

IORSerialLotNumber   11.0  

SerialNumber

The serial number of the asset.
IQBStringType 4095 chars    

LotNumber

The lot number of the asset.
IQBStringType 40 chars    

ExpirationDateForSerialLotNumber

The expiration date of the inventory serial/lot number. Expiration Date is supported from QB Desktop 2023 version 3 (USA & Canada) and SDK 16.0.
IQBStringType 1099 chars 16.0 CA.png us.png  

ServiceDate

Indicates the date on which the QuickBooks user performs the service for the customer.
IQBDateType      

SalesTaxCodeRef

Each item on a sales form is assigned a sales-tax code that indicates whether the item is taxable or non-taxable, and why. Two general codes, which can be modified but not deleted, appear on the sales-tax code list by default: Non-taxable (Name = NON; Desc = Non-Taxable; IsTaxable = false) Taxable (Name = TAX; Desc = Taxable; IsTaxable = true) A sales-tax code can be deleted only if it is no longer associated with any customer, item, or transaction. If the “Do You Charge Sales Tax?” preference within QuickBooks is set to No, QuickBooks will assign the default non-taxable sales-tax code to all sales. A SalesTaxCodeRef aggregate refers to a sales-tax code on the list. In a request, if a SalesTaxCodeRef aggregate includes both FullName and ListID, FullName will be ignored. In a Customer message, SalesTaxCodeRef refers to the sales-tax code that will be used for items related to this customer. In an ItemInventory message, SalesTaxCodeRef refers to the type of sales tax that will be charged for this item, if it is a taxable item and if sales tax is set up within QuickBooks.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 3 chars    

Other1

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

Other2

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

CreditCardTxnInfo

Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element CreditCardTxnInputInfo” data is the data from the original qbmsXML request. The “CreditCardTxnResultInfo” is the data from the original qbmsXML response.
ICreditCardTxnInfo   7.0  

CreditCardTxnInputInfo

This contains data originally supplied in the QBMS transaction request. This information block should not be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.
ICreditCardTxnInputInfo     Y

CreditCardNumber

Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.
IQBStringType 25 chars   Y

ExpirationMonth

The month when the credit card expires.
IQBIntType 12 chars   Y

ExpirationYear

The year when the credit card expires.
IQBIntType     Y

NameOnCard

The name on the customer’s credit card.
IQBStringType 41 chars   Y

CreditCardAddress

The address associated with this credit card.
IQBStringType 41 chars    

CreditCardPostalCode

The postal code associated with the address for this credit card.
IQBStringType 18 chars    

CommercialCardCode

This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.
IQBStringType 24 chars    

TransactionMode

Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).
IQBENTransactionModeType   6.0  

CreditCardTxnType

Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.
IQBENCreditCardTxnTypeType   7.0  

CreditCardTxnResultInfo

This contains data returned in the QBMS transaction response. This information block should not be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.
ICreditCardTxnResultInfo     Y

ResultCode

This contains the status code returned in the original QBMS transaction response.
IQBIntType     Y

ResultMessage

This contains the status message returned in the original QBMS transaction response.
IQBStringType 60 chars   Y

CreditCardTransID

This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq. You should also save this transaction ID and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you are intending to save the transaction data in QuickBooks.
IQBStringType 24 chars   Y

MerchantAccountNumber

This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.
IQBStringType 32 chars   Y

AuthorizationCode

The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.
IQBStringType 12 chars    

AVSStreet

This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there is not a match, or avssNotAvailable if the card issuer does not support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.
IQBENAVSStreetType      

AVSZip

This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there is not a match, or avszNotAvailable if the card issuer does not support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.
IQBENAVSZipType      

CardSecurityCodeMatch

This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there is not a match.
IQBENCardSecurityCodeMatchType   6.0  

ReconBatchID

This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.
IQBStringType 84 chars    

PaymentGroupingCode

Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.
IQBIntType      

PaymentStatus

Indicates whether the transaction is known to have been successfully processed by the card issuer, with the value “psCompleted” indicating success. That is, there was a response sent to QBMS and from QBMS to the application indicating success. The value “psUnknown” indicates that such a response was not received. If “Unknown” is returned, the transaction may have been successfully or unsuccessfully processed at the card issuer: there simply was no response (possibly due to network errors).
IQBENPaymentStatusType     Y

TxnAuthorizationTime

Timestamp indicating the time in which the card processor authorized the transaction.
IQBDateTimeType     Y

TxnAuthorizationStamp

This value is used to support the credit card transaction Reconcile feature within QuickBooks.
IQBIntType      

ClientTransID

This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.
IQBStringType 16 chars 6.0  

DataExtRetList

A list of IDataExtRet objects, each of which represents a field that has been added to QuickBooks as a data extension.
IDataExtRetList   2.0  

(List

of IDataExtRet Objects)
       

OwnerID

OwnerID refers to the owner of a data extension, and must be 0 or a valid GUID. (Custom fields, which are visible in the QuickBooks UI, always have an OwnerID of 0. ) Usually you would keep your application’s GUID confidential to prevent other applications from accessing your data extensions. But if you want to share data extensions with another application, the applications need to use the same GUID. In this case, each application could use two GUIDs, one for shared data extensions and one for confidential data extensions. (An application can have any number of GUIDs.) When you share a data extension with another application, the other application must know both the OwnerID and the DataExtName, as these together form a data extension’s unique name.
IQBGUIDType      

DataExtName

The name of the data extension. If this is a custom field, DataExtName will be visible as a label in the QuickBooks user interface. Also because OwnerID and DataExtName together make the data extension unique, and because custom fields all have the same OwnerID of zero, the DataExtName must be a unique value among existing custom fields. In contrast, the DataExtName for private data extensions must be unique only for the specified OwnerID GUID.
IQBStringType 31 chars   Y

DataExtType

The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, DataExtType must be detSTR255TYPE.
IQBENDataExtTypeType     Y

DataExtValue

The data in this field. The maximum length of DataExtValue will depend on the DataExtType of this data extension. For example, if DataExtType is STR255TYPE, the maximum length of DataExtValue is 255 characters. If DataExtType is STR1024TYPE, the maximum size of DataExtValue is 1KB.
IQBStringType     Y

CreditMemoLineGroupRet

Represents a previously defined group of lines in the credit memo. Compare with CreditMemoLine, which represents just one line in the credit memo.
ICreditMemoLineGroupRet      

TxnLineID

Identification number of the transaction line. (TxnLineID is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, TxnLineID is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the TxnLineID to -1.
IQBIDType   3.0 Y

ItemGroupRef

ItemGroup objects represent items that are grouped together for fast entry, and an ItemGroupRef aggregate refers to one of these item groups. In a request, if an ItemGroupRef aggregate includes both FullName and ListID, FullName will be ignored. You can use an ItemGroupQuery request to get information about all the item groups that are set up in the QuickBooks file.
IQBBaseRef     Y

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars    

Desc

A descriptive text field.
IQBStringType 4095 chars    

Quantity

Quantity For transactions: If an item line add on a transaction request specifies Quantity and Amount but not Rate, QuickBooks will use Quantity and Amount to calculate Rate. Likewise, if a request specifies Quantity and Rate but not Amount, QuickBooks will calculate the Amount. If a transaction add request includes a reference to an ItemDiscount item, do not include a Quantity element as well, or you will get an error. For Item requests: Quantity indicates how many of this item there are.
IQBQuanType      

UnitOfMeasure

In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!
IQBStringType 31 chars 7.0  

OverrideUOMSetRef

When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you cannot change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.
IQBBaseRef   7.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   7.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 7.0  

IsPrintItemsInGroup

If true, a list of this group’s individual items their amounts will appear on printed forms.
IQBBoolType     Y

TotalAmount

Total amount of money paid or received. In a receive payment add transaction that has payment amount elements (such as AppliedToTxnAdd lines) you must supply a TotalAmount and the sum of all the PaymentAmount elements must not be greater than the TotalAmount.
IQBAmountType     Y

CreditMemoLineRetList

A list of ICreditMemoLineRet objects, each representing one line in the credit memo.
ICreditMemoLineRetList      

(List

of ICreditMemoLineRet Objects)
       

TxnLineID

Identification number of the transaction line. (TxnLineID is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, TxnLineID is always returned as zero.) If you need to add a new transaction line in a transaction Mod request, you can do so by setting the TxnLineID to -1.
IQBIDType     Y

ItemRef

Depending on the request containing it, ItemRef can refer to an item on any Item list such as ItemDiscount, ItemInventory, and so forth, or it may accept only a subset of item types. For example, here are some requests that impose limits on what items ItemRef can refer to. For PurchaseOrder and Bill requests, ItemRef cannot refer to discount items or sales-tax items For VehicleMilageAdd requests, the ItemRef must refer to a service item or an other charge item. For BillingRateAdd requests, the ItemRef must refer to a service item. You can use an ItemQuery request to get information about all the items that are set up in the QuickBooks file. “Items” are line items used for fast entry on sales and purchase forms. They include services and goods that a business buys and sells, as well as special items that perform calculations–for example, subtotal, discount, and sales-tax items. Note: In a request, if an ItemRef aggregate includes both FullName and ListID, FullName will be ignored.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType      

Desc

A descriptive text field.
IQBStringType 4095 chars    

Quantity

Quantity For transactions: If an item line add on a transaction request specifies Quantity and Amount but not Rate, QuickBooks will use Quantity and Amount to calculate Rate. Likewise, if a request specifies Quantity and Rate but not Amount, QuickBooks will calculate the Amount. If a transaction add request includes a reference to an ItemDiscount item, do not include a Quantity element as well, or you will get an error. For Item requests: Quantity indicates how many of this item there are.
IQBQuanType      

UnitOfMeasure

In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!
IQBStringType 31 chars 7.0  

OverrideUOMSetRef

When you modify a transaction line to change the unit of measure used in that line, you use this aggregate to specify the UOM set within which you are choosing an available unit of measure. The “override” here refers to the unit within the set, not the UOM Set itself, which you cannot change or override–the UOM set that can be set or changed only in the item itself via an Item Mod request.
IQBBaseRef   7.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   7.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 7.0  

ORRate

IORRate      

Rate

If you specify both Rate and Amount in a request, the Rate you provide will be ignored, and you will receive a warning. If you specify both Quantity and Amount in an Add request, QuickBooks will use them to calculate Rate. (Rate, Amount, and Quantity cannot be cleared.)
IQBPriceType      

RatePercent

Indicates the price of something as a percent.
IQBPercentType      

ClassRef

Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default. A ClassRef aggregate refers to one of these named classes. For example, in a TimeTracking message, ClassRef refers to the QuickBooks class into which the timed activity falls. If a ClassRef aggregate includes both FullName and ListID, FullName will be ignored. In an InvoiceAdd request, if you specify a ClassRef for the whole invoice, that same ClassRef is automatically used in the line items. If you want to clear that (that is, have NO ClassRef for the line item, you can clear it in the line item by simply not specifying it in the line item.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 159 chars    

Amount

A monetary amount.
IQBAmountType      

InventorySiteRef

Site where inventory is located.
IQBBaseRef   10.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   10.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 10.0  

InventorySiteLocationRef

Location within the Inventory Site.
IQBBaseRef   12.0  

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType   12.0  

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 31 chars 12.0  

ORSerialLotNumber

IORSerialLotNumber   11.0  

SerialNumber

The serial number of the asset.
IQBStringType 4095 chars    

LotNumber

The lot number of the asset.
IQBStringType 40 chars    

ExpirationDateForSerialLotNumber

The expiration date of the inventory serial/lot number. Expiration Date is supported from QB Desktop 2023 version 3 (USA & Canada) and SDK 16.0.
IQBStringType 1099 chars 16.0 CA.png us.png  

ServiceDate

Indicates the date on which the QuickBooks user performs the service for the customer.
IQBDateType      

SalesTaxCodeRef

Each item on a sales form is assigned a sales-tax code that indicates whether the item is taxable or non-taxable, and why. Two general codes, which can be modified but not deleted, appear on the sales-tax code list by default: Non-taxable (Name = NON; Desc = Non-Taxable; IsTaxable = false) Taxable (Name = TAX; Desc = Taxable; IsTaxable = true) A sales-tax code can be deleted only if it is no longer associated with any customer, item, or transaction. If the “Do You Charge Sales Tax?” preference within QuickBooks is set to No, QuickBooks will assign the default non-taxable sales-tax code to all sales. A SalesTaxCodeRef aggregate refers to a sales-tax code on the list. In a request, if a SalesTaxCodeRef aggregate includes both FullName and ListID, FullName will be ignored. In a Customer message, SalesTaxCodeRef refers to the sales-tax code that will be used for items related to this customer. In an ItemInventory message, SalesTaxCodeRef refers to the type of sales tax that will be charged for this item, if it is a taxable item and if sales tax is set up within QuickBooks.
IQBBaseRef      

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

FullName

FullName (along with ListID) is a way to identify a list object. The FullName is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. FullName values are not case-sensitive.
IQBStringType 3 chars    

Other1

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

Other2

Other, Other1, and Other2 are standard QuickBooks custom fields available to transactions. The Other field is a transaction-level field, like the FOB field, PO Number field, and so forth. This field appears only once for the transaction: you can write to it and modify it. The Other1 and Other2 fields exist at the line item level; each line item has them, and you can write or modify the value in each line. These custom fields are available for immediate use: you don’t need to enable these in the transaction template to be able to access them via SDK. (However, those Other, Other1, Other2 fields and their values are viewable and printable in QuickBooks only if the transaction template has these enabled!) Note: you cannot use DataExtDef to define Other, Other1, Other2 for the transaction. There is no need to in any case. Those are automatically available. Notice that the Other, Other1, and Other2 names are the real SDK names for those custom fields: that is, their DataExtName value will always be Other, Other1, or Other2. Even if the user has re-labelled those custom fields to something else, such as “Barracks Number”, or “Max Headroom”, or even “Pleni Potentiary”. This re-labelling has no effect on the SDK. You’ll always write to them or modify them as Other, Other1, or Other2.
IQBStringType 29 chars 6.0  

CreditCardTxnInfo

Contains data from the credit card transaction used in the payment. This data originates from a previous qbmsXML credit card transaction. The data following the element CreditCardTxnInputInfo” data is the data from the original qbmsXML request. The “CreditCardTxnResultInfo” is the data from the original qbmsXML response.
ICreditCardTxnInfo   7.0  

CreditCardTxnInputInfo

This contains data originally supplied in the QBMS transaction request. This information block should not be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.
ICreditCardTxnInputInfo     Y

CreditCardNumber

Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.
IQBStringType 25 chars   Y

ExpirationMonth

The month when the credit card expires.
IQBIntType 12 chars   Y

ExpirationYear

The year when the credit card expires.
IQBIntType     Y

NameOnCard

The name on the customer’s credit card.
IQBStringType 41 chars   Y

CreditCardAddress

The address associated with this credit card.
IQBStringType 41 chars    

CreditCardPostalCode

The postal code associated with the address for this credit card.
IQBStringType 18 chars    

CommercialCardCode

This optional field is used only for Visa and Master Card commercial cards. There are three types of these cards: purchase, corporate, and business. Normally, special lower transaction fee rates apply when these cards are used and this field is filled out. If this field is left blank, then the usual (and higher) discount rate applies.
IQBStringType 24 chars    

TransactionMode

Indicates whether this transaction came from a card swipe (tmCardPresent) or not (tmCardNotPresent).
IQBENTransactionModeType   6.0  

CreditCardTxnType

Indicates the QBMS transaction from which the current transaction data originated, for example, Charge, Authorization, Capture, Refund, VoiceAuthorization, or Void.
IQBENCreditCardTxnTypeType   7.0  

CreditCardTxnResultInfo

This contains data returned in the QBMS transaction response. This information block should not be used in CreditMemo requests for QuickBooks 2007 and new versions. Instead, use the ARRefundCreditCard request.
ICreditCardTxnResultInfo     Y

ResultCode

This contains the status code returned in the original QBMS transaction response.
IQBIntType     Y

ResultMessage

This contains the status message returned in the original QBMS transaction response.
IQBStringType 60 chars   Y

CreditCardTransID

This transaction ID is returned from the credit card processor. You should save this value for any possible QBMS SDK transaction requests that need it, for example, CustomerCreditCardTxnVoidRq, or CustomerCreditCardCaptureRq. You should also save this transaction ID and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you are intending to save the transaction data in QuickBooks.
IQBStringType 24 chars   Y

MerchantAccountNumber

This is the QBMS account number of the merchant who is running the transaction using the customer’s credit card. It is returned from the transaction request and should be stored for subsequent transactions, such as using it in the QB SDK SalesReceiptAdd, ReceivePaymentAdd, ARRefundCreditCard requests to save the transaction data in QuickBooks.
IQBStringType 32 chars   Y

AuthorizationCode

The authorization code is returned from the credit card processor to indicate that the charge will be paid by the card issuer. In a voice authorization request (CustomerCreditCardVoiceAuthRq), the authorization code is supplied by the card issuer over the telephone.
IQBStringType 12 chars    

AVSStreet

This field contains the value avssPass if the street address supplied in the transaction request matches the customer’s address on file at the card issuer. It contains the value avssFail if there is not a match, or avssNotAvailable if the card issuer does not support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.
IQBENAVSStreetType      

AVSZip

This field contains the value avszPass if the customer postal ZIP code supplied in the transaction request matches the customer’s postal code recognized at the card issuer. It contains the value avszFail if there is not a match, or avszNotAvailable if the card issuer does not support AVS. Note: This field was required in qbXML 4.1, but is optional in qbXML 5.0 and later.
IQBENAVSZipType      

CardSecurityCodeMatch

This field contains the value Pass if the card security code supplied in the transaction request matches the card security code recognized for that credit card number at the card issuer. It contains the value Fail if there is not a match.
IQBENCardSecurityCodeMatchType   6.0  

ReconBatchID

This value is returned by QBMS from the transaction request, and is used internally by the QuickBooks/QBMS Recon (reconcile) feature. You should save this value without modification and include it in the QB SDK SalesReceiptAdd or ReceivePaymentAdd requests if you want to save the transaction data in QuickBooks.
IQBStringType 84 chars    

PaymentGroupingCode

Internal code needed for the QuickBooks reconciliation feature, if integrating with QuickBooks. This value is returned in the QBMS response to a QBMS transaction request, and must be subsequently supplied by your application in the QB SDK ReceivePaymentAdd or SalesReceiptAdd request.
IQBIntType      

PaymentStatus

Indicates whether the transaction is known to have been successfully processed by the card issuer, with the value “psCompleted” indicating success. That is, there was a response sent to QBMS and from QBMS to the application indicating success. The value “psUnknown” indicates that such a response was not received. If “Unknown” is returned, the transaction may have been successfully or unsuccessfully processed at the card issuer: there simply was no response (possibly due to network errors).
IQBENPaymentStatusType     Y

TxnAuthorizationTime

Timestamp indicating the time in which the card processor authorized the transaction.
IQBDateTimeType     Y

TxnAuthorizationStamp

This value is used to support the credit card transaction Reconcile feature within QuickBooks.
IQBIntType      

ClientTransID

This value is returned from QBMS transactions for future use by the QuickBooks Reconciliation feature.
IQBStringType 16 chars 6.0  

DataExtRetList

A list of IDataExtRet objects, each of which represents a field that has been added to QuickBooks as a data extension.
IDataExtRetList   2.0  

(List

of IDataExtRet Objects)
       

OwnerID

OwnerID refers to the owner of a data extension, and must be 0 or a valid GUID. (Custom fields, which are visible in the QuickBooks UI, always have an OwnerID of 0. ) Usually you would keep your application’s GUID confidential to prevent other applications from accessing your data extensions. But if you want to share data extensions with another application, the applications need to use the same GUID. In this case, each application could use two GUIDs, one for shared data extensions and one for confidential data extensions. (An application can have any number of GUIDs.) When you share a data extension with another application, the other application must know both the OwnerID and the DataExtName, as these together form a data extension’s unique name.
IQBGUIDType      

DataExtName

The name of the data extension. If this is a custom field, DataExtName will be visible as a label in the QuickBooks user interface. Also because OwnerID and DataExtName together make the data extension unique, and because custom fields all have the same OwnerID of zero, the DataExtName must be a unique value among existing custom fields. In contrast, the DataExtName for private data extensions must be unique only for the specified OwnerID GUID.
IQBStringType 31 chars   Y

DataExtType

The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, DataExtType must be detSTR255TYPE.
IQBENDataExtTypeType     Y

DataExtValue

The data in this field. The maximum length of DataExtValue will depend on the DataExtType of this data extension. For example, if DataExtType is STR255TYPE, the maximum length of DataExtValue is 255 characters. If DataExtType is STR1024TYPE, the maximum size of DataExtValue is 1KB.
IQBStringType     Y

DataExtRetList

A list of IDataExtRet objects, each of which represents a field that has been added to QuickBooks as a data extension.
IDataExtRetList   2.0  

(List

of IDataExtRet Objects)
       

OwnerID

OwnerID refers to the owner of a data extension, and must be 0 or a valid GUID. (Custom fields, which are visible in the QuickBooks UI, always have an OwnerID of 0. ) Usually you would keep your application’s GUID confidential to prevent other applications from accessing your data extensions. But if you want to share data extensions with another application, the applications need to use the same GUID. In this case, each application could use two GUIDs, one for shared data extensions and one for confidential data extensions. (An application can have any number of GUIDs.) When you share a data extension with another application, the other application must know both the OwnerID and the DataExtName, as these together form a data extension’s unique name.
IQBGUIDType      

DataExtName

The name of the data extension. If this is a custom field, DataExtName will be visible as a label in the QuickBooks user interface. Also because OwnerID and DataExtName together make the data extension unique, and because custom fields all have the same OwnerID of zero, the DataExtName must be a unique value among existing custom fields. In contrast, the DataExtName for private data extensions must be unique only for the specified OwnerID GUID.
IQBStringType 31 chars   Y

DataExtType

The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, DataExtType must be detSTR255TYPE.
IQBENDataExtTypeType     Y

DataExtValue

The data in this field. The maximum length of DataExtValue will depend on the DataExtType of this data extension. For example, if DataExtType is STR255TYPE, the maximum length of DataExtValue is 255 characters. If DataExtType is STR1024TYPE, the maximum size of DataExtValue is 1KB.
IQBStringType     Y

DataExtRetList

A list of IDataExtRet objects, each of which represents a field that has been added to QuickBooks as a data extension.
IDataExtRetList   2.0  

(List

of IDataExtRet Objects)
       

OwnerID

OwnerID refers to the owner of a data extension, and must be 0 or a valid GUID. (Custom fields, which are visible in the QuickBooks UI, always have an OwnerID of 0. ) Usually you would keep your application’s GUID confidential to prevent other applications from accessing your data extensions. But if you want to share data extensions with another application, the applications need to use the same GUID. In this case, each application could use two GUIDs, one for shared data extensions and one for confidential data extensions. (An application can have any number of GUIDs.) When you share a data extension with another application, the other application must know both the OwnerID and the DataExtName, as these together form a data extension’s unique name.
IQBGUIDType      

DataExtName

The name of the data extension. If this is a custom field, DataExtName will be visible as a label in the QuickBooks user interface. Also because OwnerID and DataExtName together make the data extension unique, and because custom fields all have the same OwnerID of zero, the DataExtName must be a unique value among existing custom fields. In contrast, the DataExtName for private data extensions must be unique only for the specified OwnerID GUID.
IQBStringType 31 chars   Y

DataExtType

The field’s data type, which corresponds to a qbXML data type. In an IDataExtDefAdd request object, if this is a custom field, DataExtType must be detSTR255TYPE.
IQBENDataExtTypeType     Y

DataExtValue

The data in this field. The maximum length of DataExtValue will depend on the DataExtType of this data extension. For example, if DataExtType is STR255TYPE, the maximum length of DataExtValue is 255 characters. If DataExtType is STR1024TYPE, the maximum size of DataExtValue is 1KB.
IQBStringType     Y

Detail

IErrorRecovery   11.0  

ORListOwnerTxn

IORListOwnerTxn     Y

ListID

Along with FullName, ListID is a way to identify a list object. When a list object is added to QuickBooks through the SDK or through the QuickBooks user interface, the server assigns it a ListID. A ListID is not unique across lists, but it is unique across each particular type of list. For example, two customers could not have the same ListID, and a customer could not have the same ListID as an employee (because Customer and Employee are both name lists). But a customer could have the same ListID as a non-inventory item.
IQBIDType      

OwnerID

Refers to the owner of a data extension: If OwnerID is 0, this is a public data extension, also known as a custom field. Custom fields appear in the QuickBooks UI. If OwnerID is a GUID, for example {6B063959-81B0-4622-85D6-F548C8CCB517}, this field is a private data extension defined by an integrated application. Private data extensions do not appear in the QuickBooks UI. Note that OwnerID values are not case-sensitive, meaning that if you enter an OwnerID value with lower-case letters, the value will be saved and returned with upper-case letters. When you share a private data extension with another application, the other application must know both the OwnerID and the DataExtName, as these together form a data extension’s unique name.
IQBGUIDType      

TxnID

QuickBooks generates a unique TxnID for each transaction that is added to QuickBooks. A TxnID returned from a request can be used to refer to the transaction in subsequent requests. Notice that you cannot supply the TxnID of a TimeTracking transaction to TransactionQueryRq requests. If you do, you get an error stating that no such record could be found, even though the transaction is in QuickBooks. This behavior reflects the behavior in the QuicKBooks UI in the Find window.
IQBIDType      

TxnNumber

An identifying number for this transaction.
IQBIntType      

EditSequence

A number that the server generates and assigns to this object. Every time the object is changed, the server will change its EditSequence value. When you try to modify a list object, you must provide its EditSequence. The server compares the EditSequence you provide with the EditSequence in memory to make sure you are dealing with the latest copy of the object. If you are not, the server will reject the request and return an error. Because EditSequence is only used to check whether two objects match, there is no reason to interpret its value.
IQBStringType 16 chars    

ExternalGUID

Allows for the attachment of a user defined GUID value.
IQBGUIDType      

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="17.0"?>
<QBXML>
        <QBXMLMsgsRq onError="stopOnError">
                <CreditMemoModRq>
                        <CreditMemoMod> <!-- required -->
                                <TxnID >IDTYPE</TxnID> <!-- required -->
                                <EditSequence >STRTYPE</EditSequence> <!-- required -->
                                <CustomerRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </CustomerRef>
                                <ClassRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </ClassRef>
                                <ARAccountRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </ARAccountRef>
                                <TemplateRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </TemplateRef>
                                <TxnDate >DATETYPE</TxnDate> <!-- optional -->
                                <RefNumber >STRTYPE</RefNumber> <!-- optional -->
                                <BillAddress> <!-- optional -->
                                        <Addr1 >STRTYPE</Addr1> <!-- optional -->
                                        <Addr2 >STRTYPE</Addr2> <!-- optional -->
                                        <Addr3 >STRTYPE</Addr3> <!-- optional -->
                                        <Addr4 >STRTYPE</Addr4> <!-- optional -->
                                        <Addr5 >STRTYPE</Addr5> <!-- optional -->
                                        <City >STRTYPE</City> <!-- optional -->
                                        <State >STRTYPE</State> <!-- optional -->
                                        <PostalCode >STRTYPE</PostalCode> <!-- optional -->
                                        <Country >STRTYPE</Country> <!-- optional -->
                                        <Note >STRTYPE</Note> <!-- optional -->
                                </BillAddress>
                                <ShipAddress> <!-- optional -->
                                        <Addr1 >STRTYPE</Addr1> <!-- optional -->
                                        <Addr2 >STRTYPE</Addr2> <!-- optional -->
                                        <Addr3 >STRTYPE</Addr3> <!-- optional -->
                                        <Addr4 >STRTYPE</Addr4> <!-- optional -->
                                        <Addr5 >STRTYPE</Addr5> <!-- optional -->
                                        <City >STRTYPE</City> <!-- optional -->
                                        <State >STRTYPE</State> <!-- optional -->
                                        <PostalCode >STRTYPE</PostalCode> <!-- optional -->
                                        <Country >STRTYPE</Country> <!-- optional -->
                                        <Note >STRTYPE</Note> <!-- optional -->
                                </ShipAddress>
                                <IsPending >BOOLTYPE</IsPending> <!-- optional -->
                                <PONumber >STRTYPE</PONumber> <!-- optional -->
                                <TermsRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </TermsRef>
                                <DueDate >DATETYPE</DueDate> <!-- optional -->
                                <SalesRepRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </SalesRepRef>
                                <FOB >STRTYPE</FOB> <!-- optional -->
                                <ShipDate >DATETYPE</ShipDate> <!-- optional -->
                                <ShipMethodRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </ShipMethodRef>
                                <ItemSalesTaxRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </ItemSalesTaxRef>
                                <Memo >STRTYPE</Memo> <!-- optional -->
                                <CustomerMsgRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </CustomerMsgRef>
                                <IsToBePrinted >BOOLTYPE</IsToBePrinted> <!-- optional -->
                                <IsToBeEmailed >BOOLTYPE</IsToBeEmailed> <!-- optional -->
                                <IsTaxIncluded >BOOLTYPE</IsTaxIncluded> <!-- optional -->
                                <CustomerSalesTaxCodeRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </CustomerSalesTaxCodeRef>
                                <Other >STRTYPE</Other> <!-- optional -->
                                <ExchangeRate >FLOATTYPE</ExchangeRate> <!-- optional -->
                                <!-- BEGIN OR -->
                                        <CreditMemoLineMod> <!-- optional -->
                                                <TxnLineID >IDTYPE</TxnLineID> <!-- required -->
                                                <ItemRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </ItemRef>
                                                <Desc >STRTYPE</Desc> <!-- optional -->
                                                <Quantity >QUANTYPE</Quantity> <!-- optional -->
                                                <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional -->
                                                <OverrideUOMSetRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </OverrideUOMSetRef>
                                                <!-- BEGIN OR -->
                                                        <Rate >PRICETYPE</Rate> <!-- optional -->
                                                <!-- OR -->
                                                        <RatePercent >PERCENTTYPE</RatePercent> <!-- optional -->
                                                <!-- OR -->
                                                        <PriceLevelRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </PriceLevelRef>
                                                <!-- END OR -->
                                                <ClassRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </ClassRef>
                                                <Amount >AMTTYPE</Amount> <!-- optional -->
                                                <InventorySiteRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </InventorySiteRef>
                                                <InventorySiteLocationRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </InventorySiteLocationRef>
                                                <!-- BEGIN OR -->
                                                        <SerialNumber >STRTYPE</SerialNumber> <!-- optional -->
                                                <!-- OR -->
                                                        <LotNumber >STRTYPE</LotNumber> <!-- optional -->
                                                <!-- END OR -->
                                                <ServiceDate >DATETYPE</ServiceDate> <!-- optional -->
                                                <SalesTaxCodeRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </SalesTaxCodeRef>
                                                <OverrideItemAccountRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </OverrideItemAccountRef>
                                                <Other1 >STRTYPE</Other1> <!-- optional -->
                                                <Other2 >STRTYPE</Other2> <!-- optional -->
                                        </CreditMemoLineMod>
                                <!-- OR -->
                                        <CreditMemoLineGroupMod> <!-- optional -->
                                                <TxnLineID >IDTYPE</TxnLineID> <!-- required -->
                                                <ItemGroupRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </ItemGroupRef>
                                                <Quantity >QUANTYPE</Quantity> <!-- optional -->
                                                <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional -->
                                                <OverrideUOMSetRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </OverrideUOMSetRef>
                                                <CreditMemoLineMod> <!-- optional, may repeat -->
                                                        <TxnLineID >IDTYPE</TxnLineID> <!-- required -->
                                                        <ItemRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </ItemRef>
                                                        <Desc >STRTYPE</Desc> <!-- optional -->
                                                        <Quantity >QUANTYPE</Quantity> <!-- optional -->
                                                        <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional -->
                                                        <OverrideUOMSetRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </OverrideUOMSetRef>
                                                        <!-- BEGIN OR -->
                                                                <Rate >PRICETYPE</Rate> <!-- optional -->
                                                        <!-- OR -->
                                                                <RatePercent >PERCENTTYPE</RatePercent> <!-- optional -->
                                                        <!-- OR -->
                                                                <PriceLevelRef> <!-- optional -->
                                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                                </PriceLevelRef>
                                                        <!-- END OR -->
                                                        <ClassRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </ClassRef>
                                                        <Amount >AMTTYPE</Amount> <!-- optional -->
                                                        <InventorySiteRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </InventorySiteRef>
                                                        <InventorySiteLocationRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </InventorySiteLocationRef>
                                                        <!-- BEGIN OR -->
                                                                <SerialNumber >STRTYPE</SerialNumber> <!-- optional -->
                                                        <!-- OR -->
                                                                <LotNumber >STRTYPE</LotNumber> <!-- optional -->
                                                        <!-- END OR -->
                                                        <ServiceDate >DATETYPE</ServiceDate> <!-- optional -->
                                                        <SalesTaxCodeRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </SalesTaxCodeRef>
                                                        <OverrideItemAccountRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </OverrideItemAccountRef>
                                                        <Other1 >STRTYPE</Other1> <!-- optional -->
                                                        <Other2 >STRTYPE</Other2> <!-- optional -->
                                                </CreditMemoLineMod>
                                        </CreditMemoLineGroupMod>
                                <!-- END OR -->
                        </CreditMemoMod>
                        <IncludeRetElement >STRTYPE</IncludeRetElement> <!-- optional, may repeat -->
                </CreditMemoModRq>

                <CreditMemoModRs statusCode="INTTYPE" statusSeverity="STRTYPE" statusMessage="STRTYPE">
                        <CreditMemoRet> <!-- optional -->
                                <TxnID >IDTYPE</TxnID> <!-- required -->
                                <TimeCreated >DATETIMETYPE</TimeCreated> <!-- required -->
                                <TimeModified >DATETIMETYPE</TimeModified> <!-- required -->
                                <EditSequence >STRTYPE</EditSequence> <!-- required -->
                                <TxnNumber >INTTYPE</TxnNumber> <!-- optional -->
                                <CustomerRef> <!-- required -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </CustomerRef>
                                <ClassRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </ClassRef>
                                <ARAccountRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </ARAccountRef>
                                <TemplateRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </TemplateRef>
                                <TxnDate >DATETYPE</TxnDate> <!-- required -->
                                <RefNumber >STRTYPE</RefNumber> <!-- optional -->
                                <BillAddress> <!-- optional -->
                                        <Addr1 >STRTYPE</Addr1> <!-- optional -->
                                        <Addr2 >STRTYPE</Addr2> <!-- optional -->
                                        <Addr3 >STRTYPE</Addr3> <!-- optional -->
                                        <Addr4 >STRTYPE</Addr4> <!-- optional -->
                                        <Addr5 >STRTYPE</Addr5> <!-- optional -->
                                        <City >STRTYPE</City> <!-- optional -->
                                        <State >STRTYPE</State> <!-- optional -->
                                        <PostalCode >STRTYPE</PostalCode> <!-- optional -->
                                        <Country >STRTYPE</Country> <!-- optional -->
                                        <Note >STRTYPE</Note> <!-- optional -->
                                </BillAddress>
                                <BillAddressBlock> <!-- optional -->
                                        <Addr1 >STRTYPE</Addr1> <!-- optional -->
                                        <Addr2 >STRTYPE</Addr2> <!-- optional -->
                                        <Addr3 >STRTYPE</Addr3> <!-- optional -->
                                        <Addr4 >STRTYPE</Addr4> <!-- optional -->
                                        <Addr5 >STRTYPE</Addr5> <!-- optional -->
                                </BillAddressBlock>
                                <ShipAddress> <!-- optional -->
                                        <Addr1 >STRTYPE</Addr1> <!-- optional -->
                                        <Addr2 >STRTYPE</Addr2> <!-- optional -->
                                        <Addr3 >STRTYPE</Addr3> <!-- optional -->
                                        <Addr4 >STRTYPE</Addr4> <!-- optional -->
                                        <Addr5 >STRTYPE</Addr5> <!-- optional -->
                                        <City >STRTYPE</City> <!-- optional -->
                                        <State >STRTYPE</State> <!-- optional -->
                                        <PostalCode >STRTYPE</PostalCode> <!-- optional -->
                                        <Country >STRTYPE</Country> <!-- optional -->
                                        <Note >STRTYPE</Note> <!-- optional -->
                                </ShipAddress>
                                <ShipAddressBlock> <!-- optional -->
                                        <Addr1 >STRTYPE</Addr1> <!-- optional -->
                                        <Addr2 >STRTYPE</Addr2> <!-- optional -->
                                        <Addr3 >STRTYPE</Addr3> <!-- optional -->
                                        <Addr4 >STRTYPE</Addr4> <!-- optional -->
                                        <Addr5 >STRTYPE</Addr5> <!-- optional -->
                                </ShipAddressBlock>
                                <IsPending >BOOLTYPE</IsPending> <!-- optional -->
                                <PONumber >STRTYPE</PONumber> <!-- optional -->
                                <TermsRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </TermsRef>
                                <DueDate >DATETYPE</DueDate> <!-- optional -->
                                <SalesRepRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </SalesRepRef>
                                <FOB >STRTYPE</FOB> <!-- optional -->
                                <ShipDate >DATETYPE</ShipDate> <!-- optional -->
                                <ShipMethodRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </ShipMethodRef>
                                <Subtotal >AMTTYPE</Subtotal> <!-- optional -->
                                <ItemSalesTaxRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </ItemSalesTaxRef>
                                <SalesTaxPercentage >PERCENTTYPE</SalesTaxPercentage> <!-- optional -->
                                <SalesTaxTotal >AMTTYPE</SalesTaxTotal> <!-- optional -->
                                <TotalAmount >AMTTYPE</TotalAmount> <!-- optional -->
                                <CreditRemaining >AMTTYPE</CreditRemaining> <!-- optional -->
                                <CurrencyRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </CurrencyRef>
                                <ExchangeRate >FLOATTYPE</ExchangeRate> <!-- optional -->
                                <CreditRemainingInHomeCurrency >AMTTYPE</CreditRemainingInHomeCurrency> <!-- optional -->
                                <Memo >STRTYPE</Memo> <!-- optional -->
                                <CustomerMsgRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </CustomerMsgRef>
                                <IsToBePrinted >BOOLTYPE</IsToBePrinted> <!-- optional -->
                                <IsToBeEmailed >BOOLTYPE</IsToBeEmailed> <!-- optional -->
                                <IsTaxIncluded >BOOLTYPE</IsTaxIncluded> <!-- optional -->
                                <CustomerSalesTaxCodeRef> <!-- optional -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                </CustomerSalesTaxCodeRef>
                                <Other >STRTYPE</Other> <!-- optional -->
                                <ExternalGUID >GUIDTYPE</ExternalGUID> <!-- optional -->
                                <LinkedTxn> <!-- optional, may repeat -->
                                        <TxnID >IDTYPE</TxnID> <!-- required -->
                                        <!-- TxnType may have one of the following values: ARRefundCreditCard, Bill, BillPaymentCheck, BillPaymentCreditCard, BuildAssembly, Charge, Check, CreditCardCharge, CreditCardCredit, CreditMemo, Deposit, Estimate, InventoryAdjustment, Invoice, ItemReceipt, JournalEntry, LiabilityAdjustment, Paycheck, PayrollLiabilityCheck, PurchaseOrder, ReceivePayment, SalesOrder, SalesReceipt, SalesTaxPaymentCheck, Transfer, VendorCredit, YTDAdjustment -->
                                        <TxnType >ENUMTYPE</TxnType> <!-- required -->
                                        <TxnDate >DATETYPE</TxnDate> <!-- required -->
                                        <RefNumber >STRTYPE</RefNumber> <!-- optional -->
                                        <!-- LinkType may have one of the following values: AMTTYPE, QUANTYPE -->
                                        <LinkType >ENUMTYPE</LinkType> <!-- optional -->
                                        <Amount >AMTTYPE</Amount> <!-- required -->
                                </LinkedTxn>
                                <!-- BEGIN OR -->
                                        <CreditMemoLineRet> <!-- optional -->
                                                <TxnLineID >IDTYPE</TxnLineID> <!-- required -->
                                                <ItemRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </ItemRef>
                                                <Desc >STRTYPE</Desc> <!-- optional -->
                                                <Quantity >QUANTYPE</Quantity> <!-- optional -->
                                                <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional -->
                                                <OverrideUOMSetRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </OverrideUOMSetRef>
                                                <!-- BEGIN OR -->
                                                        <Rate >PRICETYPE</Rate> <!-- optional -->
                                                <!-- OR -->
                                                        <RatePercent >PERCENTTYPE</RatePercent> <!-- optional -->
                                                <!-- END OR -->
                                                <ClassRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </ClassRef>
                                                <Amount >AMTTYPE</Amount> <!-- optional -->
                                                <InventorySiteRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </InventorySiteRef>
                                                <InventorySiteLocationRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </InventorySiteLocationRef>
                                                <!-- BEGIN OR -->
                                                        <SerialNumber >STRTYPE</SerialNumber> <!-- optional -->
                                                <!-- OR -->
                                                        <LotNumber >STRTYPE</LotNumber> <!-- optional -->
                                                <!-- END OR -->
                                                <ExpirationDateForSerialLotNumber>STRTYPE</ExpirationDateForSerialLotNumber>
                                                <ServiceDate >DATETYPE</ServiceDate> <!-- optional -->
                                                <SalesTaxCodeRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </SalesTaxCodeRef>
                                                <Other1 >STRTYPE</Other1> <!-- optional -->
                                                <Other2 >STRTYPE</Other2> <!-- optional -->
                                                <CreditCardTxnInfo> <!-- optional -->
                                                        <CreditCardTxnInputInfo> <!-- required -->
                                                                <CreditCardNumber >STRTYPE</CreditCardNumber> <!-- required -->
                                                                <ExpirationMonth >INTTYPE</ExpirationMonth> <!-- required -->
                                                                <ExpirationYear >INTTYPE</ExpirationYear> <!-- required -->
                                                                <NameOnCard >STRTYPE</NameOnCard> <!-- required -->
                                                                <CreditCardAddress >STRTYPE</CreditCardAddress> <!-- optional -->
                                                                <CreditCardPostalCode >STRTYPE</CreditCardPostalCode> <!-- optional -->
                                                                <CommercialCardCode >STRTYPE</CommercialCardCode> <!-- optional -->
                                                                <!-- TransactionMode may have one of the following values: CardNotPresent [DEFAULT], CardPresent -->
                                                                <TransactionMode >ENUMTYPE</TransactionMode> <!-- optional -->
                                                                <!-- CreditCardTxnType may have one of the following values: Authorization, Capture, Charge, Refund, VoiceAuthorization -->
                                                                <CreditCardTxnType >ENUMTYPE</CreditCardTxnType> <!-- optional -->
                                                        </CreditCardTxnInputInfo>
                                                        <CreditCardTxnResultInfo> <!-- required -->
                                                                <ResultCode >INTTYPE</ResultCode> <!-- required -->
                                                                <ResultMessage >STRTYPE</ResultMessage> <!-- required -->
                                                                <CreditCardTransID >STRTYPE</CreditCardTransID> <!-- required -->
                                                                <MerchantAccountNumber >STRTYPE</MerchantAccountNumber> <!-- required -->
                                                                <AuthorizationCode >STRTYPE</AuthorizationCode> <!-- optional -->
                                                                <!-- AVSStreet may have one of the following values: Pass, Fail, NotAvailable -->
                                                                <AVSStreet >ENUMTYPE</AVSStreet> <!-- optional -->
                                                                <!-- AVSZip may have one of the following values: Pass, Fail, NotAvailable -->
                                                                <AVSZip >ENUMTYPE</AVSZip> <!-- optional -->
                                                                <!-- CardSecurityCodeMatch may have one of the following values: Pass, Fail, NotAvailable -->
                                                                <CardSecurityCodeMatch >ENUMTYPE</CardSecurityCodeMatch> <!-- optional -->
                                                                <ReconBatchID >STRTYPE</ReconBatchID> <!-- optional -->
                                                                <PaymentGroupingCode >INTTYPE</PaymentGroupingCode> <!-- optional -->
                                                                <!-- PaymentStatus may have one of the following values: Unknown, Completed -->
                                                                <PaymentStatus >ENUMTYPE</PaymentStatus> <!-- required -->
                                                                <TxnAuthorizationTime >DATETIMETYPE</TxnAuthorizationTime> <!-- required -->
                                                                <TxnAuthorizationStamp >INTTYPE</TxnAuthorizationStamp> <!-- optional -->
                                                                <ClientTransID >STRTYPE</ClientTransID> <!-- optional -->
                                                        </CreditCardTxnResultInfo>
                                                </CreditCardTxnInfo>
                                                <DataExtRet> <!-- optional, may repeat -->
                                                        <OwnerID >GUIDTYPE</OwnerID> <!-- optional -->
                                                        <DataExtName >STRTYPE</DataExtName> <!-- required -->
                                                        <!-- DataExtType may have one of the following values: AMTTYPE, DATETIMETYPE, INTTYPE, PERCENTTYPE, PRICETYPE, QUANTYPE, STR1024TYPE, STR255TYPE -->
                                                        <DataExtType >ENUMTYPE</DataExtType> <!-- required -->
                                                        <DataExtValue >STRTYPE</DataExtValue> <!-- required -->
                                                </DataExtRet>
                                        </CreditMemoLineRet>
                                <!-- OR -->
                                        <CreditMemoLineGroupRet> <!-- optional -->
                                                <TxnLineID >IDTYPE</TxnLineID> <!-- required -->
                                                <ItemGroupRef> <!-- required -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </ItemGroupRef>
                                                <Desc >STRTYPE</Desc> <!-- optional -->
                                                <Quantity >QUANTYPE</Quantity> <!-- optional -->
                                                <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional -->
                                                <OverrideUOMSetRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </OverrideUOMSetRef>
                                                <IsPrintItemsInGroup >BOOLTYPE</IsPrintItemsInGroup> <!-- required -->
                                                <TotalAmount >AMTTYPE</TotalAmount> <!-- required -->
                                                <CreditMemoLineRet> <!-- optional, may repeat -->
                                                        <TxnLineID >IDTYPE</TxnLineID> <!-- required -->
                                                        <ItemRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </ItemRef>
                                                        <Desc >STRTYPE</Desc> <!-- optional -->
                                                        <Quantity >QUANTYPE</Quantity> <!-- optional -->
                                                        <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional -->
                                                        <OverrideUOMSetRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </OverrideUOMSetRef>
                                                        <!-- BEGIN OR -->
                                                                <Rate >PRICETYPE</Rate> <!-- optional -->
                                                        <!-- OR -->
                                                                <RatePercent >PERCENTTYPE</RatePercent> <!-- optional -->
                                                        <!-- END OR -->
                                                        <ClassRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </ClassRef>
                                                        <Amount >AMTTYPE</Amount> <!-- optional -->
                                                        <InventorySiteRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </InventorySiteRef>
                                                        <InventorySiteLocationRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </InventorySiteLocationRef>
                                                        <!-- BEGIN OR -->
                                                                <SerialNumber >STRTYPE</SerialNumber> <!-- optional -->
                                                        <!-- OR -->
                                                                <LotNumber >STRTYPE</LotNumber> <!-- optional -->
                                                        <!-- END OR -->
                                                        <ExpirationDateForSerialLotNumber>STRTYPE</ExpirationDateForSerialLotNumber>
                                                        <ServiceDate >DATETYPE</ServiceDate> <!-- optional -->
                                                        <SalesTaxCodeRef> <!-- optional -->
                                                                <ListID >IDTYPE</ListID> <!-- optional -->
                                                                <FullName >STRTYPE</FullName> <!-- optional -->
                                                        </SalesTaxCodeRef>
                                                        <Other1 >STRTYPE</Other1> <!-- optional -->
                                                        <Other2 >STRTYPE</Other2> <!-- optional -->
                                                        <CreditCardTxnInfo> <!-- optional -->
                                                                <CreditCardTxnInputInfo> <!-- required -->
                                                                        <CreditCardNumber >STRTYPE</CreditCardNumber> <!-- required -->
                                                                        <ExpirationMonth >INTTYPE</ExpirationMonth> <!-- required -->
                                                                        <ExpirationYear >INTTYPE</ExpirationYear> <!-- required -->
                                                                        <NameOnCard >STRTYPE</NameOnCard> <!-- required -->
                                                                        <CreditCardAddress >STRTYPE</CreditCardAddress> <!-- optional -->
                                                                        <CreditCardPostalCode >STRTYPE</CreditCardPostalCode> <!-- optional -->
                                                                        <CommercialCardCode >STRTYPE</CommercialCardCode> <!-- optional -->
                                                                        <!-- TransactionMode may have one of the following values: CardNotPresent [DEFAULT], CardPresent -->
                                                                        <TransactionMode >ENUMTYPE</TransactionMode> <!-- optional -->
                                                                        <!-- CreditCardTxnType may have one of the following values: Authorization, Capture, Charge, Refund, VoiceAuthorization -->
                                                                        <CreditCardTxnType >ENUMTYPE</CreditCardTxnType> <!-- optional -->
                                                                </CreditCardTxnInputInfo>
                                                                <CreditCardTxnResultInfo> <!-- required -->
                                                                        <ResultCode >INTTYPE</ResultCode> <!-- required -->
                                                                        <ResultMessage >STRTYPE</ResultMessage> <!-- required -->
                                                                        <CreditCardTransID >STRTYPE</CreditCardTransID> <!-- required -->
                                                                        <MerchantAccountNumber >STRTYPE</MerchantAccountNumber> <!-- required -->
                                                                        <AuthorizationCode >STRTYPE</AuthorizationCode> <!-- optional -->
                                                                        <!-- AVSStreet may have one of the following values: Pass, Fail, NotAvailable -->
                                                                        <AVSStreet >ENUMTYPE</AVSStreet> <!-- optional -->
                                                                        <!-- AVSZip may have one of the following values: Pass, Fail, NotAvailable -->
                                                                        <AVSZip >ENUMTYPE</AVSZip> <!-- optional -->
                                                                        <!-- CardSecurityCodeMatch may have one of the following values: Pass, Fail, NotAvailable -->
                                                                        <CardSecurityCodeMatch >ENUMTYPE</CardSecurityCodeMatch> <!-- optional -->
                                                                        <ReconBatchID >STRTYPE</ReconBatchID> <!-- optional -->
                                                                        <PaymentGroupingCode >INTTYPE</PaymentGroupingCode> <!-- optional -->
                                                                        <!-- PaymentStatus may have one of the following values: Unknown, Completed -->
                                                                        <PaymentStatus >ENUMTYPE</PaymentStatus> <!-- required -->
                                                                        <TxnAuthorizationTime >DATETIMETYPE</TxnAuthorizationTime> <!-- required -->
                                                                        <TxnAuthorizationStamp >INTTYPE</TxnAuthorizationStamp> <!-- optional -->
                                                                        <ClientTransID >STRTYPE</ClientTransID> <!-- optional -->
                                                                </CreditCardTxnResultInfo>
                                                        </CreditCardTxnInfo>
                                                        <DataExtRet> <!-- optional, may repeat -->
                                                                <OwnerID >GUIDTYPE</OwnerID> <!-- optional -->
                                                                <DataExtName >STRTYPE</DataExtName> <!-- required -->
                                                                <!-- DataExtType may have one of the following values: AMTTYPE, DATETIMETYPE, INTTYPE, PERCENTTYPE, PRICETYPE, QUANTYPE, STR1024TYPE, STR255TYPE -->
                                                                <DataExtType >ENUMTYPE</DataExtType> <!-- required -->
                                                                <DataExtValue >STRTYPE</DataExtValue> <!-- required -->
                                                        </DataExtRet>
                                                </CreditMemoLineRet>
                                                <DataExtRet> <!-- optional, may repeat -->
                                                        <OwnerID >GUIDTYPE</OwnerID> <!-- optional -->
                                                        <DataExtName >STRTYPE</DataExtName> <!-- required -->
                                                        <!-- DataExtType may have one of the following values: AMTTYPE, DATETIMETYPE, INTTYPE, PERCENTTYPE, PRICETYPE, QUANTYPE, STR1024TYPE, STR255TYPE -->
                                                        <DataExtType >ENUMTYPE</DataExtType> <!-- required -->
                                                        <DataExtValue >STRTYPE</DataExtValue> <!-- required -->
                                                </DataExtRet>
                                        </CreditMemoLineGroupRet>
                                <!-- END OR -->
                                <DataExtRet> <!-- optional, may repeat -->
                                        <OwnerID >GUIDTYPE</OwnerID> <!-- optional -->
                                        <DataExtName >STRTYPE</DataExtName> <!-- required -->
                                        <!-- DataExtType may have one of the following values: AMTTYPE, DATETIMETYPE, INTTYPE, PERCENTTYPE, PRICETYPE, QUANTYPE, STR1024TYPE, STR255TYPE -->
                                        <DataExtType >ENUMTYPE</DataExtType> <!-- required -->
                                        <DataExtValue >STRTYPE</DataExtValue> <!-- required -->
                                </DataExtRet>
                        </CreditMemoRet>
                        <ErrorRecovery> <!-- optional -->
                                <!-- BEGIN OR -->
                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                <!-- OR -->
                                        <OwnerID >GUIDTYPE</OwnerID> <!-- optional -->
                                <!-- OR -->
                                        <TxnID >IDTYPE</TxnID> <!-- optional -->
                                <!-- END OR -->
                                <TxnNumber >INTTYPE</TxnNumber> <!-- optional -->
                                <EditSequence >STRTYPE</EditSequence> <!-- optional -->
                                <ExternalGUID >GUIDTYPE</ExternalGUID> <!-- optional -->
                        </ErrorRecovery>
                </CreditMemoModRs>
        </QBXMLMsgsRq>
</QBXML>

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
'The following sample code is generated as an illustration of
'Creating requests and parsing responses ONLY
'This code is NOT intended to show best practices or ideal code
'Use at your most careful discretion

imports System
imports System.Net
imports System.Drawing
imports System.Collections
imports System.ComponentModel
imports System.Windows.Forms
imports System.Data
imports System.IO
imports Interop.QBFC16

Module com.intuit.idn.samples
        Public Class Sample
                Public Sub  DoCreditMemoMod()
                        Dim sessionBegun as Boolean
                        sessionBegun = False
                        Dim connectionOpen as Boolean
                        connectionOpen = False
                        Dim sessionManager as QBSessionManager
                        sessionManager = nothing

                        Try
                                'Create the session Manager object
                                sessionManager = new QBSessionManager

                                'Create the message set request object to hold our request
                                Dim requestMsgSet as IMsgSetRequest
                                requestMsgSet = sessionManager.CreateMsgSetRequest("US",16,0)
                                requestMsgSet.Attributes.OnError = ENRqOnError.roeContinue

                                BuildCreditMemoModRq(requestMsgSet)

                                'Connect to QuickBooks and begin a session
                                sessionManager.OpenConnection("","Sample Code from OSR")
                                connectionOpen = True
                                sessionManager.BeginSession("", ENOpenMode.omDontCare)
                                sessionBegun = True

                                'Send the request and get the response from QuickBooks
                                Dim responseMsgSet as IMsgSetResponse
                                responseMsgSet = sessionManager.DoRequests(requestMsgSet)

                                'End the session and close the connection to QuickBooks
                                sessionManager.EndSession()
                                sessionBegun = False
                                sessionManager.CloseConnection()
                                connectionOpen = False

                                WalkCreditMemoModRs(responseMsgSet)
                        Catch e as Exception
                                MessageBox.Show(e.Message, "Error")
                                if (sessionBegun) then
                                        sessionManager.EndSession()
                                End If
                                if (connectionOpen) then
                                        sessionManager.CloseConnection()
                                End If
                        End Try
                End Sub
                Public Sub BuildCreditMemoModRq(requestMsgSet as IMsgSetRequest)
                        Dim CreditMemoModRq as ICreditMemoMod
                        CreditMemoModRq= requestMsgSet.AppendCreditMemoModRq()
                        'Set field value for TxnID
                        CreditMemoModRq.TxnID.SetValue("200000-1011023419")
                        'Set field value for EditSequence
                        CreditMemoModRq.EditSequence.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoModRq.CustomerRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.CustomerRef.FullName.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoModRq.ClassRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.ClassRef.FullName.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoModRq.ARAccountRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.ARAccountRef.FullName.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoModRq.TemplateRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.TemplateRef.FullName.SetValue("ab")
                        'Set field value for TxnDate
                        CreditMemoModRq.TxnDate.SetValue(DateTime.Parse("12/15/2007"))
                        'Set field value for RefNumber
                        CreditMemoModRq.RefNumber.SetValue("ab")
                        'Set field value for Addr1
                        CreditMemoModRq.BillAddress.Addr1.SetValue("ab")
                        'Set field value for Addr2
                        CreditMemoModRq.BillAddress.Addr2.SetValue("ab")
                        'Set field value for Addr3
                        CreditMemoModRq.BillAddress.Addr3.SetValue("ab")
                        'Set field value for Addr4
                        CreditMemoModRq.BillAddress.Addr4.SetValue("ab")
                        'Set field value for Addr5
                        CreditMemoModRq.BillAddress.Addr5.SetValue("ab")
                        'Set field value for City
                        CreditMemoModRq.BillAddress.City.SetValue("ab")
                        'Set field value for State
                        CreditMemoModRq.BillAddress.State.SetValue("ab")
                        'Set field value for PostalCode
                        CreditMemoModRq.BillAddress.PostalCode.SetValue("ab")
                        'Set field value for Country
                        CreditMemoModRq.BillAddress.Country.SetValue("ab")
                        'Set field value for Note
                        CreditMemoModRq.BillAddress.Note.SetValue("ab")
                        'Set field value for Addr1
                        CreditMemoModRq.ShipAddress.Addr1.SetValue("ab")
                        'Set field value for Addr2
                        CreditMemoModRq.ShipAddress.Addr2.SetValue("ab")
                        'Set field value for Addr3
                        CreditMemoModRq.ShipAddress.Addr3.SetValue("ab")
                        'Set field value for Addr4
                        CreditMemoModRq.ShipAddress.Addr4.SetValue("ab")
                        'Set field value for Addr5
                        CreditMemoModRq.ShipAddress.Addr5.SetValue("ab")
                        'Set field value for City
                        CreditMemoModRq.ShipAddress.City.SetValue("ab")
                        'Set field value for State
                        CreditMemoModRq.ShipAddress.State.SetValue("ab")
                        'Set field value for PostalCode
                        CreditMemoModRq.ShipAddress.PostalCode.SetValue("ab")
                        'Set field value for Country
                        CreditMemoModRq.ShipAddress.Country.SetValue("ab")
                        'Set field value for Note
                        CreditMemoModRq.ShipAddress.Note.SetValue("ab")
                        'Set field value for IsPending
                        CreditMemoModRq.IsPending.SetValue(True)
                        'Set field value for PONumber
                        CreditMemoModRq.PONumber.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoModRq.TermsRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.TermsRef.FullName.SetValue("ab")
                        'Set field value for DueDate
                        CreditMemoModRq.DueDate.SetValue(DateTime.Parse("12/15/2007"))
                        'Set field value for ListID
                        CreditMemoModRq.SalesRepRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.SalesRepRef.FullName.SetValue("ab")
                        'Set field value for FOB
                        CreditMemoModRq.FOB.SetValue("ab")
                        'Set field value for ShipDate
                        CreditMemoModRq.ShipDate.SetValue(DateTime.Parse("12/15/2007"))
                        'Set field value for ListID
                        CreditMemoModRq.ShipMethodRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.ShipMethodRef.FullName.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoModRq.ItemSalesTaxRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.ItemSalesTaxRef.FullName.SetValue("ab")
                        'Set field value for Memo
                        CreditMemoModRq.Memo.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoModRq.CustomerMsgRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.CustomerMsgRef.FullName.SetValue("ab")
                        'Set field value for IsToBePrinted
                        CreditMemoModRq.IsToBePrinted.SetValue(True)
                        'Set field value for IsToBeEmailed
                        CreditMemoModRq.IsToBeEmailed.SetValue(True)
                        'Set field value for IsTaxIncluded
                        CreditMemoModRq.IsTaxIncluded.SetValue(True)
                        'Set field value for ListID
                        CreditMemoModRq.CustomerSalesTaxCodeRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoModRq.CustomerSalesTaxCodeRef.FullName.SetValue("ab")
                        'Set field value for Other
                        CreditMemoModRq.Other.SetValue("ab")
                        'Set field value for ExchangeRate
                        CreditMemoModRq.ExchangeRate.SetValue("IQBFloatType")
                        Dim ORCreditMemoLineModListElement6079 as IORCreditMemoLineMod
                        ORCreditMemoLineModListElement6079 =CreditMemoModRq.ORCreditMemoLineModList.Append()
                        Dim ORCreditMemoLineModListElementType6080 as String
                        ORCreditMemoLineModListElementType6080 = "CreditMemoLineMod"
                        if (ORCreditMemoLineModListElementType6080 == "CreditMemoLineMod") then
                                'Set field value for TxnLineID
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.TxnLineID.SetValue("200000-1011023419")
                                'Set field value for ListID
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.ItemRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.ItemRef.FullName.SetValue("ab")
                                'Set field value for Desc
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.Desc.SetValue("ab")
                                'Set field value for Quantity
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.Quantity.SetValue(2)
                                'Set field value for UnitOfMeasure
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.UnitOfMeasure.SetValue("ab")
                                'Set field value for ListID
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.OverrideUOMSetRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.OverrideUOMSetRef.FullName.SetValue("ab")
                                Dim ORRatePriceLevelElementType6081 as String
                                ORRatePriceLevelElementType6081 = "Rate"
                                if (ORRatePriceLevelElementType6081 == "Rate") then
                                        'Set field value for Rate
                                        ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORRatePriceLevel.Rate.SetValue(15.65)
                                End If
                                if (ORRatePriceLevelElementType6081 == "RatePercent") then
                                        'Set field value for RatePercent
                                        ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORRatePriceLevel.RatePercent.SetValue(20.00)
                                End If
                                if (ORRatePriceLevelElementType6081 == "PriceLevelRef") then
                                        'Set field value for ListID
                                        ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419")
                                        'Set field value for FullName
                                        ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab")
                                End If
                                'Set field value for ListID
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.ClassRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.ClassRef.FullName.SetValue("ab")
                                'Set field value for Amount
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.Amount.SetValue(10.01)
                                'Set field value for ListID
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.InventorySiteRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.InventorySiteRef.FullName.SetValue("ab")
                                'Set field value for ListID
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.InventorySiteLocationRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.InventorySiteLocationRef.FullName.SetValue("ab")
                                Dim ORSerialLotNumberElementType6082 as String
                                ORSerialLotNumberElementType6082 = "SerialNumber"
                                if (ORSerialLotNumberElementType6082 == "SerialNumber") then
                                        'Set field value for SerialNumber
                                        ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORSerialLotNumber.SerialNumber.SetValue("ab")
                                End If
                                if (ORSerialLotNumberElementType6082 == "LotNumber") then
                                        'Set field value for LotNumber
                                        ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORSerialLotNumber.LotNumber.SetValue("ab")
                                End If
                                'Set field value for ServiceDate
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.ServiceDate.SetValue(DateTime.Parse("12/15/2007"))
                                'Set field value for ListID
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.SalesTaxCodeRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.SalesTaxCodeRef.FullName.SetValue("ab")
                                'Set field value for ListID
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.OverrideItemAccountRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.OverrideItemAccountRef.FullName.SetValue("ab")
                                'Set field value for Other1
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.Other1.SetValue("ab")
                                'Set field value for Other2
                                ORCreditMemoLineModListElement6079.CreditMemoLineMod.Other2.SetValue("ab")
                        End If
                        if (ORCreditMemoLineModListElementType6080 == "CreditMemoLineGroupMod") then
                                'Set field value for TxnLineID
                                ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.TxnLineID.SetValue("200000-1011023419")
                                'Set field value for ListID
                                ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.ItemGroupRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.ItemGroupRef.FullName.SetValue("ab")
                                'Set field value for Quantity
                                ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.Quantity.SetValue(2)
                                'Set field value for UnitOfMeasure
                                ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.UnitOfMeasure.SetValue("ab")
                                'Set field value for ListID
                                ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.OverrideUOMSetRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.OverrideUOMSetRef.FullName.SetValue("ab")
                                Dim CreditMemoLineMod6083 as ICreditMemoLineMod
                                CreditMemoLineMod6083=ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.CreditMemoLineModList.Append()
                                'Set field value for TxnLineID
                                CreditMemoLineMod6083.TxnLineID.SetValue("200000-1011023419")
                                'Set field value for ListID
                                CreditMemoLineMod6083.ItemRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                CreditMemoLineMod6083.ItemRef.FullName.SetValue("ab")
                                'Set field value for Desc
                                CreditMemoLineMod6083.Desc.SetValue("ab")
                                'Set field value for Quantity
                                CreditMemoLineMod6083.Quantity.SetValue(2)
                                'Set field value for UnitOfMeasure
                                CreditMemoLineMod6083.UnitOfMeasure.SetValue("ab")
                                'Set field value for ListID
                                CreditMemoLineMod6083.OverrideUOMSetRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                CreditMemoLineMod6083.OverrideUOMSetRef.FullName.SetValue("ab")
                                Dim ORRatePriceLevelElementType6084 as String
                                ORRatePriceLevelElementType6084 = "Rate"
                                if (ORRatePriceLevelElementType6084 == "Rate") then
                                        'Set field value for Rate
                                        CreditMemoLineMod6083.ORRatePriceLevel.Rate.SetValue(15.65)
                                End If
                                if (ORRatePriceLevelElementType6084 == "RatePercent") then
                                        'Set field value for RatePercent
                                        CreditMemoLineMod6083.ORRatePriceLevel.RatePercent.SetValue(20.00)
                                End If
                                if (ORRatePriceLevelElementType6084 == "PriceLevelRef") then
                                        'Set field value for ListID
                                        CreditMemoLineMod6083.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419")
                                        'Set field value for FullName
                                        CreditMemoLineMod6083.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab")
                                End If
                                'Set field value for ListID
                                CreditMemoLineMod6083.ClassRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                CreditMemoLineMod6083.ClassRef.FullName.SetValue("ab")
                                'Set field value for Amount
                                CreditMemoLineMod6083.Amount.SetValue(10.01)
                                'Set field value for ListID
                                CreditMemoLineMod6083.InventorySiteRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                CreditMemoLineMod6083.InventorySiteRef.FullName.SetValue("ab")
                                'Set field value for ListID
                                CreditMemoLineMod6083.InventorySiteLocationRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                CreditMemoLineMod6083.InventorySiteLocationRef.FullName.SetValue("ab")
                                Dim ORSerialLotNumberElementType6085 as String
                                ORSerialLotNumberElementType6085 = "SerialNumber"
                                if (ORSerialLotNumberElementType6085 == "SerialNumber") then
                                        'Set field value for SerialNumber
                                        CreditMemoLineMod6083.ORSerialLotNumber.SerialNumber.SetValue("ab")
                                End If
                                if (ORSerialLotNumberElementType6085 == "LotNumber") then
                                        'Set field value for LotNumber
                                        CreditMemoLineMod6083.ORSerialLotNumber.LotNumber.SetValue("ab")
                                End If
                                'Set field value for ServiceDate
                                CreditMemoLineMod6083.ServiceDate.SetValue(DateTime.Parse("12/15/2007"))
                                'Set field value for ListID
                                CreditMemoLineMod6083.SalesTaxCodeRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                CreditMemoLineMod6083.SalesTaxCodeRef.FullName.SetValue("ab")
                                'Set field value for ListID
                                CreditMemoLineMod6083.OverrideItemAccountRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                CreditMemoLineMod6083.OverrideItemAccountRef.FullName.SetValue("ab")
                                'Set field value for Other1
                                CreditMemoLineMod6083.Other1.SetValue("ab")
                                'Set field value for Other2
                                CreditMemoLineMod6083.Other2.SetValue("ab")
                        End If
                        'Set field value for IncludeRetElementList
                        'May create more than one of these if needed
                        CreditMemoModRq.IncludeRetElementList.Add("ab")
                End Sub




                Public Sub WalkCreditMemoModRs( responseMsgSet as IMsgSetResponse)
                        if (responseMsgSet is nothing) then
                                Exit Sub
                        End If

                        Dim responseList as IResponseList
                        responseList = responseMsgSet.ResponseList
                        if (responseList is nothing) then
                                Exit Sub
                        End If

                        'if we sent only one request, there is only one response, we'll walk the list for this sample
                        for j=0 to responseList.Count-1
                                Dim response as IResponse
                                response = responseList.GetAt(j)
                                'check the status code of the response, 0=ok, >0 is warning
                                if (response.StatusCode >= 0) then
                                        'the request-specific response is in the details, make sure we have some
                                        if (not response.Detail is nothing) then
                                                'make sure the response is the type we're expecting
                                                Dim responseType as ENResponseType
                                                responseType = CType(response.Type.GetValue(),ENResponseType)
                                                if (responseType == ENResponseType.rtCreditMemoModRs) then
                                                        'upcast to more specific type here, this is safe because we checked with response.Type check above
                                                        Dim CreditMemoRet as ICreditMemoRet
                                                        CreditMemoRet = CType(response.Detail,ICreditMemoRet)
                                                        WalkCreditMemoRet(CreditMemoRet)
                                                End If
                                        End If
                                End If
                        Next j
                End Sub




                Public Sub WalkCreditMemoRet(CreditMemoRet as ICreditMemoRet)
                        if (CreditMemoRet is nothing) then
                                Exit Sub
                        End If

                        'Go through all the elements of ICreditMemoRet
                        'Get value of TxnID
                        Dim TxnID6086 as String
                        TxnID6086 = CreditMemoRet.TxnID.GetValue()
                        'Get value of TimeCreated
                        Dim TimeCreated6087 as DateTime
                        TimeCreated6087 = CreditMemoRet.TimeCreated.GetValue()
                        'Get value of TimeModified
                        Dim TimeModified6088 as DateTime
                        TimeModified6088 = CreditMemoRet.TimeModified.GetValue()
                        'Get value of EditSequence
                        Dim EditSequence6089 as String
                        EditSequence6089 = CreditMemoRet.EditSequence.GetValue()
                        'Get value of TxnNumber
                        if ( not CreditMemoRet.TxnNumber is nothing) then
                                Dim TxnNumber6090 as Integer
                                TxnNumber6090 = CreditMemoRet.TxnNumber.GetValue()
                        End If
                        'Get value of ListID
                        if ( not CreditMemoRet.CustomerRef.ListID is nothing) then
                                Dim ListID6091 as String
                                ListID6091 = CreditMemoRet.CustomerRef.ListID.GetValue()
                        End If
                        'Get value of FullName
                        if ( not CreditMemoRet.CustomerRef.FullName is nothing) then
                                Dim FullName6092 as String
                                FullName6092 = CreditMemoRet.CustomerRef.FullName.GetValue()
                        End If
                        if (not CreditMemoRet.ClassRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.ClassRef.ListID is nothing) then
                                        Dim ListID6093 as String
                                        ListID6093 = CreditMemoRet.ClassRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.ClassRef.FullName is nothing) then
                                        Dim FullName6094 as String
                                        FullName6094 = CreditMemoRet.ClassRef.FullName.GetValue()
                                End If
                        End If
                        if (not CreditMemoRet.ARAccountRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.ARAccountRef.ListID is nothing) then
                                        Dim ListID6095 as String
                                        ListID6095 = CreditMemoRet.ARAccountRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.ARAccountRef.FullName is nothing) then
                                        Dim FullName6096 as String
                                        FullName6096 = CreditMemoRet.ARAccountRef.FullName.GetValue()
                                End If
                        End If
                        if (not CreditMemoRet.TemplateRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.TemplateRef.ListID is nothing) then
                                        Dim ListID6097 as String
                                        ListID6097 = CreditMemoRet.TemplateRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.TemplateRef.FullName is nothing) then
                                        Dim FullName6098 as String
                                        FullName6098 = CreditMemoRet.TemplateRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of TxnDate
                        Dim TxnDate6099 as DateTime
                        TxnDate6099 = CreditMemoRet.TxnDate.GetValue()
                        'Get value of RefNumber
                        if ( not CreditMemoRet.RefNumber is nothing) then
                                Dim RefNumber6100 as String
                                RefNumber6100 = CreditMemoRet.RefNumber.GetValue()
                        End If
                        if (not CreditMemoRet.BillAddress. is nothing) then
                                'Get value of Addr1
                                if ( not CreditMemoRet.BillAddress.Addr1 is nothing) then
                                        Dim Addr16101 as String
                                        Addr16101 = CreditMemoRet.BillAddress.Addr1.GetValue()
                                End If
                                'Get value of Addr2
                                if ( not CreditMemoRet.BillAddress.Addr2 is nothing) then
                                        Dim Addr26102 as String
                                        Addr26102 = CreditMemoRet.BillAddress.Addr2.GetValue()
                                End If
                                'Get value of Addr3
                                if ( not CreditMemoRet.BillAddress.Addr3 is nothing) then
                                        Dim Addr36103 as String
                                        Addr36103 = CreditMemoRet.BillAddress.Addr3.GetValue()
                                End If
                                'Get value of Addr4
                                if ( not CreditMemoRet.BillAddress.Addr4 is nothing) then
                                        Dim Addr46104 as String
                                        Addr46104 = CreditMemoRet.BillAddress.Addr4.GetValue()
                                End If
                                'Get value of Addr5
                                if ( not CreditMemoRet.BillAddress.Addr5 is nothing) then
                                        Dim Addr56105 as String
                                        Addr56105 = CreditMemoRet.BillAddress.Addr5.GetValue()
                                End If
                                'Get value of City
                                if ( not CreditMemoRet.BillAddress.City is nothing) then
                                        Dim City6106 as String
                                        City6106 = CreditMemoRet.BillAddress.City.GetValue()
                                End If
                                'Get value of State
                                if ( not CreditMemoRet.BillAddress.State is nothing) then
                                        Dim State6107 as String
                                        State6107 = CreditMemoRet.BillAddress.State.GetValue()
                                End If
                                'Get value of PostalCode
                                if ( not CreditMemoRet.BillAddress.PostalCode is nothing) then
                                        Dim PostalCode6108 as String
                                        PostalCode6108 = CreditMemoRet.BillAddress.PostalCode.GetValue()
                                End If
                                'Get value of Country
                                if ( not CreditMemoRet.BillAddress.Country is nothing) then
                                        Dim Country6109 as String
                                        Country6109 = CreditMemoRet.BillAddress.Country.GetValue()
                                End If
                                'Get value of Note
                                if ( not CreditMemoRet.BillAddress.Note is nothing) then
                                        Dim Note6110 as String
                                        Note6110 = CreditMemoRet.BillAddress.Note.GetValue()
                                End If
                        End If
                        if (not CreditMemoRet.BillAddressBlock. is nothing) then
                                'Get value of Addr1
                                if ( not CreditMemoRet.BillAddressBlock.Addr1 is nothing) then
                                        Dim Addr16111 as String
                                        Addr16111 = CreditMemoRet.BillAddressBlock.Addr1.GetValue()
                                End If
                                'Get value of Addr2
                                if ( not CreditMemoRet.BillAddressBlock.Addr2 is nothing) then
                                        Dim Addr26112 as String
                                        Addr26112 = CreditMemoRet.BillAddressBlock.Addr2.GetValue()
                                End If
                                'Get value of Addr3
                                if ( not CreditMemoRet.BillAddressBlock.Addr3 is nothing) then
                                        Dim Addr36113 as String
                                        Addr36113 = CreditMemoRet.BillAddressBlock.Addr3.GetValue()
                                End If
                                'Get value of Addr4
                                if ( not CreditMemoRet.BillAddressBlock.Addr4 is nothing) then
                                        Dim Addr46114 as String
                                        Addr46114 = CreditMemoRet.BillAddressBlock.Addr4.GetValue()
                                End If
                                'Get value of Addr5
                                if ( not CreditMemoRet.BillAddressBlock.Addr5 is nothing) then
                                        Dim Addr56115 as String
                                        Addr56115 = CreditMemoRet.BillAddressBlock.Addr5.GetValue()
                                End If
                        End If
                        if (not CreditMemoRet.ShipAddress. is nothing) then
                                'Get value of Addr1
                                if ( not CreditMemoRet.ShipAddress.Addr1 is nothing) then
                                        Dim Addr16116 as String
                                        Addr16116 = CreditMemoRet.ShipAddress.Addr1.GetValue()
                                End If
                                'Get value of Addr2
                                if ( not CreditMemoRet.ShipAddress.Addr2 is nothing) then
                                        Dim Addr26117 as String
                                        Addr26117 = CreditMemoRet.ShipAddress.Addr2.GetValue()
                                End If
                                'Get value of Addr3
                                if ( not CreditMemoRet.ShipAddress.Addr3 is nothing) then
                                        Dim Addr36118 as String
                                        Addr36118 = CreditMemoRet.ShipAddress.Addr3.GetValue()
                                End If
                                'Get value of Addr4
                                if ( not CreditMemoRet.ShipAddress.Addr4 is nothing) then
                                        Dim Addr46119 as String
                                        Addr46119 = CreditMemoRet.ShipAddress.Addr4.GetValue()
                                End If
                                'Get value of Addr5
                                if ( not CreditMemoRet.ShipAddress.Addr5 is nothing) then
                                        Dim Addr56120 as String
                                        Addr56120 = CreditMemoRet.ShipAddress.Addr5.GetValue()
                                End If
                                'Get value of City
                                if ( not CreditMemoRet.ShipAddress.City is nothing) then
                                        Dim City6121 as String
                                        City6121 = CreditMemoRet.ShipAddress.City.GetValue()
                                End If
                                'Get value of State
                                if ( not CreditMemoRet.ShipAddress.State is nothing) then
                                        Dim State6122 as String
                                        State6122 = CreditMemoRet.ShipAddress.State.GetValue()
                                End If
                                'Get value of PostalCode
                                if ( not CreditMemoRet.ShipAddress.PostalCode is nothing) then
                                        Dim PostalCode6123 as String
                                        PostalCode6123 = CreditMemoRet.ShipAddress.PostalCode.GetValue()
                                End If
                                'Get value of Country
                                if ( not CreditMemoRet.ShipAddress.Country is nothing) then
                                        Dim Country6124 as String
                                        Country6124 = CreditMemoRet.ShipAddress.Country.GetValue()
                                End If
                                'Get value of Note
                                if ( not CreditMemoRet.ShipAddress.Note is nothing) then
                                        Dim Note6125 as String
                                        Note6125 = CreditMemoRet.ShipAddress.Note.GetValue()
                                End If
                        End If
                        if (not CreditMemoRet.ShipAddressBlock. is nothing) then
                                'Get value of Addr1
                                if ( not CreditMemoRet.ShipAddressBlock.Addr1 is nothing) then
                                        Dim Addr16126 as String
                                        Addr16126 = CreditMemoRet.ShipAddressBlock.Addr1.GetValue()
                                End If
                                'Get value of Addr2
                                if ( not CreditMemoRet.ShipAddressBlock.Addr2 is nothing) then
                                        Dim Addr26127 as String
                                        Addr26127 = CreditMemoRet.ShipAddressBlock.Addr2.GetValue()
                                End If
                                'Get value of Addr3
                                if ( not CreditMemoRet.ShipAddressBlock.Addr3 is nothing) then
                                        Dim Addr36128 as String
                                        Addr36128 = CreditMemoRet.ShipAddressBlock.Addr3.GetValue()
                                End If
                                'Get value of Addr4
                                if ( not CreditMemoRet.ShipAddressBlock.Addr4 is nothing) then
                                        Dim Addr46129 as String
                                        Addr46129 = CreditMemoRet.ShipAddressBlock.Addr4.GetValue()
                                End If
                                'Get value of Addr5
                                if ( not CreditMemoRet.ShipAddressBlock.Addr5 is nothing) then
                                        Dim Addr56130 as String
                                        Addr56130 = CreditMemoRet.ShipAddressBlock.Addr5.GetValue()
                                End If
                        End If
                        'Get value of IsPending
                        if ( not CreditMemoRet.IsPending is nothing) then
                                Dim IsPending6131 as Boolean
                                IsPending6131 = CreditMemoRet.IsPending.GetValue()
                        End If
                        'Get value of PONumber
                        if ( not CreditMemoRet.PONumber is nothing) then
                                Dim PONumber6132 as String
                                PONumber6132 = CreditMemoRet.PONumber.GetValue()
                        End If
                        if (not CreditMemoRet.TermsRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.TermsRef.ListID is nothing) then
                                        Dim ListID6133 as String
                                        ListID6133 = CreditMemoRet.TermsRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.TermsRef.FullName is nothing) then
                                        Dim FullName6134 as String
                                        FullName6134 = CreditMemoRet.TermsRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of DueDate
                        if ( not CreditMemoRet.DueDate is nothing) then
                                Dim DueDate6135 as DateTime
                                DueDate6135 = CreditMemoRet.DueDate.GetValue()
                        End If
                        if (not CreditMemoRet.SalesRepRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.SalesRepRef.ListID is nothing) then
                                        Dim ListID6136 as String
                                        ListID6136 = CreditMemoRet.SalesRepRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.SalesRepRef.FullName is nothing) then
                                        Dim FullName6137 as String
                                        FullName6137 = CreditMemoRet.SalesRepRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of FOB
                        if ( not CreditMemoRet.FOB is nothing) then
                                Dim FOB6138 as String
                                FOB6138 = CreditMemoRet.FOB.GetValue()
                        End If
                        'Get value of ShipDate
                        if ( not CreditMemoRet.ShipDate is nothing) then
                                Dim ShipDate6139 as DateTime
                                ShipDate6139 = CreditMemoRet.ShipDate.GetValue()
                        End If
                        if (not CreditMemoRet.ShipMethodRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.ShipMethodRef.ListID is nothing) then
                                        Dim ListID6140 as String
                                        ListID6140 = CreditMemoRet.ShipMethodRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.ShipMethodRef.FullName is nothing) then
                                        Dim FullName6141 as String
                                        FullName6141 = CreditMemoRet.ShipMethodRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of Subtotal
                        if ( not CreditMemoRet.Subtotal is nothing) then
                                Dim Subtotal6142 as Double
                                Subtotal6142 = CreditMemoRet.Subtotal.GetValue()
                        End If
                        if (not CreditMemoRet.ItemSalesTaxRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.ItemSalesTaxRef.ListID is nothing) then
                                        Dim ListID6143 as String
                                        ListID6143 = CreditMemoRet.ItemSalesTaxRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.ItemSalesTaxRef.FullName is nothing) then
                                        Dim FullName6144 as String
                                        FullName6144 = CreditMemoRet.ItemSalesTaxRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of SalesTaxPercentage
                        if ( not CreditMemoRet.SalesTaxPercentage is nothing) then
                                Dim SalesTaxPercentage6145 as Double
                                SalesTaxPercentage6145 = CreditMemoRet.SalesTaxPercentage.GetValue()
                        End If
                        'Get value of SalesTaxTotal
                        if ( not CreditMemoRet.SalesTaxTotal is nothing) then
                                Dim SalesTaxTotal6146 as Double
                                SalesTaxTotal6146 = CreditMemoRet.SalesTaxTotal.GetValue()
                        End If
                        'Get value of TotalAmount
                        if ( not CreditMemoRet.TotalAmount is nothing) then
                                Dim TotalAmount6147 as Double
                                TotalAmount6147 = CreditMemoRet.TotalAmount.GetValue()
                        End If
                        'Get value of CreditRemaining
                        if ( not CreditMemoRet.CreditRemaining is nothing) then
                                Dim CreditRemaining6148 as Double
                                CreditRemaining6148 = CreditMemoRet.CreditRemaining.GetValue()
                        End If
                        if (not CreditMemoRet.CurrencyRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.CurrencyRef.ListID is nothing) then
                                        Dim ListID6149 as String
                                        ListID6149 = CreditMemoRet.CurrencyRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.CurrencyRef.FullName is nothing) then
                                        Dim FullName6150 as String
                                        FullName6150 = CreditMemoRet.CurrencyRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of ExchangeRate
                        if ( not CreditMemoRet.ExchangeRate is nothing) then
                                Dim ExchangeRate6151 as IQBFloatType
                                ExchangeRate6151 = CreditMemoRet.ExchangeRate.GetValue()
                        End If
                        'Get value of CreditRemainingInHomeCurrency
                        if ( not CreditMemoRet.CreditRemainingInHomeCurrency is nothing) then
                                Dim CreditRemainingInHomeCurrency6152 as Double
                                CreditRemainingInHomeCurrency6152 = CreditMemoRet.CreditRemainingInHomeCurrency.GetValue()
                        End If
                        'Get value of Memo
                        if ( not CreditMemoRet.Memo is nothing) then
                                Dim Memo6153 as String
                                Memo6153 = CreditMemoRet.Memo.GetValue()
                        End If
                        if (not CreditMemoRet.CustomerMsgRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.CustomerMsgRef.ListID is nothing) then
                                        Dim ListID6154 as String
                                        ListID6154 = CreditMemoRet.CustomerMsgRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.CustomerMsgRef.FullName is nothing) then
                                        Dim FullName6155 as String
                                        FullName6155 = CreditMemoRet.CustomerMsgRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of IsToBePrinted
                        if ( not CreditMemoRet.IsToBePrinted is nothing) then
                                Dim IsToBePrinted6156 as Boolean
                                IsToBePrinted6156 = CreditMemoRet.IsToBePrinted.GetValue()
                        End If
                        'Get value of IsToBeEmailed
                        if ( not CreditMemoRet.IsToBeEmailed is nothing) then
                                Dim IsToBeEmailed6157 as Boolean
                                IsToBeEmailed6157 = CreditMemoRet.IsToBeEmailed.GetValue()
                        End If
                        'Get value of IsTaxIncluded
                        if ( not CreditMemoRet.IsTaxIncluded is nothing) then
                                Dim IsTaxIncluded6158 as Boolean
                                IsTaxIncluded6158 = CreditMemoRet.IsTaxIncluded.GetValue()
                        End If
                        if (not CreditMemoRet.CustomerSalesTaxCodeRef. is nothing) then
                                'Get value of ListID
                                if ( not CreditMemoRet.CustomerSalesTaxCodeRef.ListID is nothing) then
                                        Dim ListID6159 as String
                                        ListID6159 = CreditMemoRet.CustomerSalesTaxCodeRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.CustomerSalesTaxCodeRef.FullName is nothing) then
                                        Dim FullName6160 as String
                                        FullName6160 = CreditMemoRet.CustomerSalesTaxCodeRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of Other
                        if ( not CreditMemoRet.Other is nothing) then
                                Dim Other6161 as String
                                Other6161 = CreditMemoRet.Other.GetValue()
                        End If
                        'Get value of ExternalGUID
                        if ( not CreditMemoRet.ExternalGUID is nothing) then
                                Dim ExternalGUID6162 as String
                                ExternalGUID6162 = CreditMemoRet.ExternalGUID.GetValue()
                        End If
                        if (not CreditMemoRet.LinkedTxnList is nothing)
                                Dim i6163 as Integer
                                for i6163 = 0  to CreditMemoRet.LinkedTxnList.Count - 1
                                        Dim LinkedTxn as ILinkedTxn
                                        LinkedTxn = CreditMemoRet.LinkedTxnList.GetAt(i6163)
                                        'Get value of TxnID
                                        Dim TxnID6164 as String
                                        TxnID6164 = LinkedTxnTxnID.GetValue()
                                        'Get value of TxnType
                                        Dim TxnType6165 as ENTxnType
                                        TxnType6165 = LinkedTxnTxnType.GetValue()
                                        'Get value of TxnDate
                                        Dim TxnDate6166 as DateTime
                                        TxnDate6166 = LinkedTxnTxnDate.GetValue()
                                        'Get value of RefNumber
                                        if ( not LinkedTxnRefNumber is nothing) then
                                                Dim RefNumber6167 as String
                                                RefNumber6167 = LinkedTxnRefNumber.GetValue()
                                        End If
                                        'Get value of LinkType
                                        if ( not LinkedTxnLinkType is nothing) then
                                                Dim LinkType6168 as ENLinkType
                                                LinkType6168 = LinkedTxnLinkType.GetValue()
                                        End If
                                        'Get value of Amount
                                        Dim Amount6169 as Double
                                        Amount6169 = LinkedTxnAmount.GetValue()
                                Next i6163
                        End If
                        if (not CreditMemoRet.ORCreditMemoLineRetList is nothing) then
                                Dim i6170 as Integer
                                for i6170 = 0 to CreditMemoRet.ORCreditMemoLineRetList.Count - 1
                                        Dim ORCreditMemoLineRet6171 as IORCreditMemoLineRet
                                        ORCreditMemoLineRet6171 = CreditMemoRet.ORCreditMemoLineRetList.GetAt(i6170)
                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet is nothing) then
                                                if (not ORCreditMemoLineRet6171.CreditMemoLineRet. is nothing) then
                                                        'Get value of TxnLineID
                                                        Dim TxnLineID6172 as String
                                                        TxnLineID6172 = ORCreditMemoLineRet6171.CreditMemoLineRet.TxnLineID.GetValue()
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef.ListID is nothing) then
                                                                        Dim ListID6173 as String
                                                                        ListID6173 = ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef.FullName is nothing) then
                                                                        Dim FullName6174 as String
                                                                        FullName6174 = ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        'Get value of Desc
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Desc is nothing) then
                                                                Dim Desc6175 as String
                                                                Desc6175 = ORCreditMemoLineRet6171.CreditMemoLineRet.Desc.GetValue()
                                                        End If
                                                        'Get value of Quantity
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Quantity is nothing) then
                                                                Dim Quantity6176 as Integer
                                                                Quantity6176 = ORCreditMemoLineRet6171.CreditMemoLineRet.Quantity.GetValue()
                                                        End If
                                                        'Get value of UnitOfMeasure
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.UnitOfMeasure is nothing) then
                                                                Dim UnitOfMeasure6177 as String
                                                                UnitOfMeasure6177 = ORCreditMemoLineRet6171.CreditMemoLineRet.UnitOfMeasure.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef.ListID is nothing) then
                                                                        Dim ListID6178 as String
                                                                        ListID6178 = ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef.FullName is nothing) then
                                                                        Dim FullName6179 as String
                                                                        FullName6179 = ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate is nothing) then
                                                                if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.Rate is nothing) then
                                                                        'Get value of Rate
                                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.Rate is nothing) then
                                                                                Dim Rate6181 as Double
                                                                                Rate6181 = ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.Rate.GetValue()
                                                                        End If
                                                                End If
                                                                if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.RatePercent is nothing) then
                                                                        'Get value of RatePercent
                                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.RatePercent is nothing) then
                                                                                Dim RatePercent6182 as Double
                                                                                RatePercent6182 = ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.RatePercent.GetValue()
                                                                        End If
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef.ListID is nothing) then
                                                                        Dim ListID6183 as String
                                                                        ListID6183 = ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef.FullName is nothing) then
                                                                        Dim FullName6184 as String
                                                                        FullName6184 = ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        'Get value of Amount
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Amount is nothing) then
                                                                Dim Amount6185 as Double
                                                                Amount6185 = ORCreditMemoLineRet6171.CreditMemoLineRet.Amount.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef.ListID is nothing) then
                                                                        Dim ListID6186 as String
                                                                        ListID6186 = ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef.FullName is nothing) then
                                                                        Dim FullName6187 as String
                                                                        FullName6187 = ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef.ListID is nothing) then
                                                                        Dim ListID6188 as String
                                                                        ListID6188 = ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef.FullName is nothing) then
                                                                        Dim FullName6189 as String
                                                                        FullName6189 = ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber is nothing) then
                                                                if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.SerialNumber is nothing) then
                                                                        'Get value of SerialNumber
                                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.SerialNumber is nothing) then
                                                                                Dim SerialNumber6191 as String
                                                                                SerialNumber6191 = ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue()
                                                                        End If
                                                                End If
                                                                if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.LotNumber is nothing) then
                                                                        'Get value of LotNumber
                                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.LotNumber is nothing) then
                                                                                Dim LotNumber6192 as String
                                                                                LotNumber6192 = ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue()
                                                                        End If
                                                                End If
                                                        End If
                                                        'Get value of ExpirationDateForSerialLotNumber
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ExpirationDateForSerialLotNumber is nothing) then
                                                                Dim ExpDate as String
                                                                ExpDate = ORCreditMemoLineRet6171.CreditMemoLineRet.ExpirationDateForSerialLotNumber.GetValue()
                                                        End If
                                                        'Get value of ServiceDate
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ServiceDate is nothing) then
                                                                Dim ServiceDate6193 as DateTime
                                                                ServiceDate6193 = ORCreditMemoLineRet6171.CreditMemoLineRet.ServiceDate.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef.ListID is nothing) then
                                                                        Dim ListID6194 as String
                                                                        ListID6194 = ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef.FullName is nothing) then
                                                                        Dim FullName6195 as String
                                                                        FullName6195 = ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        'Get value of Other1
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Other1 is nothing) then
                                                                Dim Other16196 as String
                                                                Other16196 = ORCreditMemoLineRet6171.CreditMemoLineRet.Other1.GetValue()
                                                        End If
                                                        'Get value of Other2
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Other2 is nothing) then
                                                                Dim Other26197 as String
                                                                Other26197 = ORCreditMemoLineRet6171.CreditMemoLineRet.Other2.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo. is nothing) then
                                                                'Get value of CreditCardNumber
                                                                Dim CreditCardNumber6198 as String
                                                                CreditCardNumber6198 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue()
                                                                'Get value of ExpirationMonth
                                                                Dim ExpirationMonth6199 as Integer
                                                                ExpirationMonth6199 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue()
                                                                'Get value of ExpirationYear
                                                                Dim ExpirationYear6200 as Integer
                                                                ExpirationYear6200 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue()
                                                                'Get value of NameOnCard
                                                                Dim NameOnCard6201 as String
                                                                NameOnCard6201 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue()
                                                                'Get value of CreditCardAddress
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress is nothing) then
                                                                        Dim CreditCardAddress6202 as String
                                                                        CreditCardAddress6202 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue()
                                                                End If
                                                                'Get value of CreditCardPostalCode
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode is nothing) then
                                                                        Dim CreditCardPostalCode6203 as String
                                                                        CreditCardPostalCode6203 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue()
                                                                End If
                                                                'Get value of CommercialCardCode
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode is nothing) then
                                                                        Dim CommercialCardCode6204 as String
                                                                        CommercialCardCode6204 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue()
                                                                End If
                                                                'Get value of TransactionMode
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode is nothing) then
                                                                        Dim TransactionMode6205 as ENTransactionMode
                                                                        TransactionMode6205 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue()
                                                                End If
                                                                'Get value of CreditCardTxnType
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType is nothing) then
                                                                        Dim CreditCardTxnType6206 as ENCreditCardTxnType
                                                                        CreditCardTxnType6206 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue()
                                                                End If
                                                                'Get value of ResultCode
                                                                Dim ResultCode6207 as Integer
                                                                ResultCode6207 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue()
                                                                'Get value of ResultMessage
                                                                Dim ResultMessage6208 as String
                                                                ResultMessage6208 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue()
                                                                'Get value of CreditCardTransID
                                                                Dim CreditCardTransID6209 as String
                                                                CreditCardTransID6209 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue()
                                                                'Get value of MerchantAccountNumber
                                                                Dim MerchantAccountNumber6210 as String
                                                                MerchantAccountNumber6210 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue()
                                                                'Get value of AuthorizationCode
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode is nothing) then
                                                                        Dim AuthorizationCode6211 as String
                                                                        AuthorizationCode6211 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue()
                                                                End If
                                                                'Get value of AVSStreet
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet is nothing) then
                                                                        Dim AVSStreet6212 as ENAVSStreet
                                                                        AVSStreet6212 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue()
                                                                End If
                                                                'Get value of AVSZip
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip is nothing) then
                                                                        Dim AVSZip6213 as ENAVSZip
                                                                        AVSZip6213 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue()
                                                                End If
                                                                'Get value of CardSecurityCodeMatch
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch is nothing) then
                                                                        Dim CardSecurityCodeMatch6214 as ENCardSecurityCodeMatch
                                                                        CardSecurityCodeMatch6214 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue()
                                                                End If
                                                                'Get value of ReconBatchID
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID is nothing) then
                                                                        Dim ReconBatchID6215 as String
                                                                        ReconBatchID6215 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue()
                                                                End If
                                                                'Get value of PaymentGroupingCode
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode is nothing) then
                                                                        Dim PaymentGroupingCode6216 as Integer
                                                                        PaymentGroupingCode6216 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue()
                                                                End If
                                                                'Get value of PaymentStatus
                                                                Dim PaymentStatus6217 as ENPaymentStatus
                                                                PaymentStatus6217 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue()
                                                                'Get value of TxnAuthorizationTime
                                                                Dim TxnAuthorizationTime6218 as DateTime
                                                                TxnAuthorizationTime6218 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue()
                                                                'Get value of TxnAuthorizationStamp
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp is nothing) then
                                                                        Dim TxnAuthorizationStamp6219 as Integer
                                                                        TxnAuthorizationStamp6219 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue()
                                                                End If
                                                                'Get value of ClientTransID
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID is nothing) then
                                                                        Dim ClientTransID6220 as String
                                                                        ClientTransID6220 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue()
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineRet.DataExtRetList is nothing)
                                                                Dim i6221 as Integer
                                                                for i6221 = 0  to ORCreditMemoLineRet6171.CreditMemoLineRet.DataExtRetList.Count - 1
                                                                        Dim DataExtRet as IDataExtRet
                                                                        DataExtRet = ORCreditMemoLineRet6171.CreditMemoLineRet.DataExtRetList.GetAt(i6221)
                                                                        'Get value of OwnerID
                                                                        if ( not DataExtRetOwnerID is nothing) then
                                                                                Dim OwnerID6222 as String
                                                                                OwnerID6222 = DataExtRetOwnerID.GetValue()
                                                                        End If
                                                                        'Get value of DataExtName
                                                                        Dim DataExtName6223 as String
                                                                        DataExtName6223 = DataExtRetDataExtName.GetValue()
                                                                        'Get value of DataExtType
                                                                        Dim DataExtType6224 as ENDataExtType
                                                                        DataExtType6224 = DataExtRetDataExtType.GetValue()
                                                                        'Get value of DataExtValue
                                                                        Dim DataExtValue6225 as String
                                                                        DataExtValue6225 = DataExtRetDataExtValue.GetValue()
                                                                Next i6221
                                                        End If
                                                End If
                                        End If
                                        if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet is nothing) then
                                                if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet. is nothing) then
                                                        'Get value of TxnLineID
                                                        Dim TxnLineID6226 as String
                                                        TxnLineID6226 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.TxnLineID.GetValue()
                                                        'Get value of ListID
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.ItemGroupRef.ListID is nothing) then
                                                                Dim ListID6227 as String
                                                                ListID6227 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.ItemGroupRef.ListID.GetValue()
                                                        End If
                                                        'Get value of FullName
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.ItemGroupRef.FullName is nothing) then
                                                                Dim FullName6228 as String
                                                                FullName6228 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.ItemGroupRef.FullName.GetValue()
                                                        End If
                                                        'Get value of Desc
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.Desc is nothing) then
                                                                Dim Desc6229 as String
                                                                Desc6229 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.Desc.GetValue()
                                                        End If
                                                        'Get value of Quantity
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.Quantity is nothing) then
                                                                Dim Quantity6230 as Integer
                                                                Quantity6230 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.Quantity.GetValue()
                                                        End If
                                                        'Get value of UnitOfMeasure
                                                        if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.UnitOfMeasure is nothing) then
                                                                Dim UnitOfMeasure6231 as String
                                                                UnitOfMeasure6231 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.UnitOfMeasure.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID is nothing) then
                                                                        Dim ListID6232 as String
                                                                        ListID6232 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName is nothing) then
                                                                        Dim FullName6233 as String
                                                                        FullName6233 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        'Get value of IsPrintItemsInGroup
                                                        Dim IsPrintItemsInGroup6234 as Boolean
                                                        IsPrintItemsInGroup6234 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.IsPrintItemsInGroup.GetValue()
                                                        'Get value of TotalAmount
                                                        Dim TotalAmount6235 as Double
                                                        TotalAmount6235 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.TotalAmount.GetValue()
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.CreditMemoLineRetList is nothing)
                                                                Dim i6236 as Integer
                                                                for i6236 = 0  to ORCreditMemoLineRet6171.CreditMemoLineGroupRet.CreditMemoLineRetList.Count - 1
                                                                        Dim CreditMemoLineRet as ICreditMemoLineRet
                                                                        CreditMemoLineRet = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.CreditMemoLineRetList.GetAt(i6236)
                                                                        'Get value of TxnLineID
                                                                        Dim TxnLineID6237 as String
                                                                        TxnLineID6237 = CreditMemoLineRetTxnLineID.GetValue()
                                                                        if (not CreditMemoLineRetItemRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetItemRef.ListID is nothing) then
                                                                                Dim ListID6238 as String
                                                                                ListID6238 = CreditMemoLineRetItemRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetItemRef.FullName is nothing) then
                                                                                Dim FullName6239 as String
                                                                                FullName6239 = CreditMemoLineRetItemRef.FullName.GetValue()
                                                                                End If
                                                                        End If
                                                                        'Get value of Desc
                                                                        if ( not CreditMemoLineRetDesc is nothing) then
                                                                                Dim Desc6240 as String
                                                                                Desc6240 = CreditMemoLineRetDesc.GetValue()
                                                                        End If
                                                                        'Get value of Quantity
                                                                        if ( not CreditMemoLineRetQuantity is nothing) then
                                                                                Dim Quantity6241 as Integer
                                                                                Quantity6241 = CreditMemoLineRetQuantity.GetValue()
                                                                        End If
                                                                        'Get value of UnitOfMeasure
                                                                        if ( not CreditMemoLineRetUnitOfMeasure is nothing) then
                                                                                Dim UnitOfMeasure6242 as String
                                                                                UnitOfMeasure6242 = CreditMemoLineRetUnitOfMeasure.GetValue()
                                                                        End If
                                                                        if (not CreditMemoLineRetOverrideUOMSetRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetOverrideUOMSetRef.ListID is nothing) then
                                                                                Dim ListID6243 as String
                                                                                ListID6243 = CreditMemoLineRetOverrideUOMSetRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetOverrideUOMSetRef.FullName is nothing) then
                                                                                Dim FullName6244 as String
                                                                                FullName6244 = CreditMemoLineRetOverrideUOMSetRef.FullName.GetValue()
                                                                                End If
                                                                        End If
                                                                        if (not CreditMemoLineRetORRate is nothing) then
                                                                                if (not CreditMemoLineRetORRate.Rate is nothing) then
                                                                                'Get value of Rate
                                                                                if ( not CreditMemoLineRetORRate.Rate is nothing) then
                                                                                Dim Rate6246 as Double
                                                                                Rate6246 = CreditMemoLineRetORRate.Rate.GetValue()
                                                                                End If
                                                                                End If
                                                                                if (not CreditMemoLineRetORRate.RatePercent is nothing) then
                                                                                'Get value of RatePercent
                                                                                if ( not CreditMemoLineRetORRate.RatePercent is nothing) then
                                                                                Dim RatePercent6247 as Double
                                                                                RatePercent6247 = CreditMemoLineRetORRate.RatePercent.GetValue()
                                                                                End If
                                                                                End If
                                                                        End If
                                                                        if (not CreditMemoLineRetClassRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetClassRef.ListID is nothing) then
                                                                                Dim ListID6248 as String
                                                                                ListID6248 = CreditMemoLineRetClassRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetClassRef.FullName is nothing) then
                                                                                Dim FullName6249 as String
                                                                                FullName6249 = CreditMemoLineRetClassRef.FullName.GetValue()
                                                                                End If
                                                                        End If
                                                                        'Get value of Amount
                                                                        if ( not CreditMemoLineRetAmount is nothing) then
                                                                                Dim Amount6250 as Double
                                                                                Amount6250 = CreditMemoLineRetAmount.GetValue()
                                                                        End If
                                                                        if (not CreditMemoLineRetInventorySiteRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetInventorySiteRef.ListID is nothing) then
                                                                                Dim ListID6251 as String
                                                                                ListID6251 = CreditMemoLineRetInventorySiteRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetInventorySiteRef.FullName is nothing) then
                                                                                Dim FullName6252 as String
                                                                                FullName6252 = CreditMemoLineRetInventorySiteRef.FullName.GetValue()
                                                                                End If
                                                                        End If
                                                                        if (not CreditMemoLineRetInventorySiteLocationRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetInventorySiteLocationRef.ListID is nothing) then
                                                                                Dim ListID6253 as String
                                                                                ListID6253 = CreditMemoLineRetInventorySiteLocationRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetInventorySiteLocationRef.FullName is nothing) then
                                                                                Dim FullName6254 as String
                                                                                FullName6254 = CreditMemoLineRetInventorySiteLocationRef.FullName.GetValue()
                                                                                End If
                                                                        End If
                                                                        if (not CreditMemoLineRetORSerialLotNumber is nothing) then
                                                                                if (not CreditMemoLineRetORSerialLotNumber.SerialNumber is nothing) then
                                                                                'Get value of SerialNumber
                                                                                if ( not CreditMemoLineRetORSerialLotNumber.SerialNumber is nothing) then
                                                                                Dim SerialNumber6256 as String
                                                                                SerialNumber6256 = CreditMemoLineRetORSerialLotNumber.SerialNumber.GetValue()
                                                                                End If
                                                                                End If
                                                                                if (not CreditMemoLineRetORSerialLotNumber.LotNumber is nothing) then
                                                                                'Get value of LotNumber
                                                                                if ( not CreditMemoLineRetORSerialLotNumber.LotNumber is nothing) then
                                                                                Dim LotNumber6257 as String
                                                                                LotNumber6257 = CreditMemoLineRetORSerialLotNumber.LotNumber.GetValue()
                                                                                End If
                                                                                End If
                                                                        End If
                                                                        'Get value of ExpirationDateForSerialLotNumber
                                                                        if ( not CreditMemoLineRetExpirationDateForSerialLotNumber is nothing) then
                                                                                Dim ExpDate as String
                                                                                ExpDate = CreditMemoLineRetExpirationDateForSerialLotNumber.GetValue()
                                                                        End If
                                                                        'Get value of ServiceDate
                                                                        if ( not CreditMemoLineRetServiceDate is nothing) then
                                                                                Dim ServiceDate6258 as DateTime
                                                                                ServiceDate6258 = CreditMemoLineRetServiceDate.GetValue()
                                                                        End If
                                                                        if (not CreditMemoLineRetSalesTaxCodeRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetSalesTaxCodeRef.ListID is nothing) then
                                                                                Dim ListID6259 as String
                                                                                ListID6259 = CreditMemoLineRetSalesTaxCodeRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetSalesTaxCodeRef.FullName is nothing) then
                                                                                Dim FullName6260 as String
                                                                                FullName6260 = CreditMemoLineRetSalesTaxCodeRef.FullName.GetValue()
                                                                                End If
                                                                        End If
                                                                        'Get value of Other1
                                                                        if ( not CreditMemoLineRetOther1 is nothing) then
                                                                                Dim Other16261 as String
                                                                                Other16261 = CreditMemoLineRetOther1.GetValue()
                                                                        End If
                                                                        'Get value of Other2
                                                                        if ( not CreditMemoLineRetOther2 is nothing) then
                                                                                Dim Other26262 as String
                                                                                Other26262 = CreditMemoLineRetOther2.GetValue()
                                                                        End If
                                                                        if (not CreditMemoLineRetCreditCardTxnInfo. is nothing) then
                                                                                'Get value of CreditCardNumber
                                                                                Dim CreditCardNumber6263 as String
                                                                                CreditCardNumber6263 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue()
                                                                                'Get value of ExpirationMonth
                                                                                Dim ExpirationMonth6264 as Integer
                                                                                ExpirationMonth6264 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue()
                                                                                'Get value of ExpirationYear
                                                                                Dim ExpirationYear6265 as Integer
                                                                                ExpirationYear6265 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue()
                                                                                'Get value of NameOnCard
                                                                                Dim NameOnCard6266 as String
                                                                                NameOnCard6266 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue()
                                                                                'Get value of CreditCardAddress
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress is nothing) then
                                                                                Dim CreditCardAddress6267 as String
                                                                                CreditCardAddress6267 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue()
                                                                                End If
                                                                                'Get value of CreditCardPostalCode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode is nothing) then
                                                                                Dim CreditCardPostalCode6268 as String
                                                                                CreditCardPostalCode6268 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue()
                                                                                End If
                                                                                'Get value of CommercialCardCode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode is nothing) then
                                                                                Dim CommercialCardCode6269 as String
                                                                                CommercialCardCode6269 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue()
                                                                                End If
                                                                                'Get value of TransactionMode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode is nothing) then
                                                                                Dim TransactionMode6270 as ENTransactionMode
                                                                                TransactionMode6270 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue()
                                                                                End If
                                                                                'Get value of CreditCardTxnType
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType is nothing) then
                                                                                Dim CreditCardTxnType6271 as ENCreditCardTxnType
                                                                                CreditCardTxnType6271 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue()
                                                                                End If
                                                                                'Get value of ResultCode
                                                                                Dim ResultCode6272 as Integer
                                                                                ResultCode6272 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue()
                                                                                'Get value of ResultMessage
                                                                                Dim ResultMessage6273 as String
                                                                                ResultMessage6273 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue()
                                                                                'Get value of CreditCardTransID
                                                                                Dim CreditCardTransID6274 as String
                                                                                CreditCardTransID6274 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue()
                                                                                'Get value of MerchantAccountNumber
                                                                                Dim MerchantAccountNumber6275 as String
                                                                                MerchantAccountNumber6275 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue()
                                                                                'Get value of AuthorizationCode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode is nothing) then
                                                                                Dim AuthorizationCode6276 as String
                                                                                AuthorizationCode6276 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue()
                                                                                End If
                                                                                'Get value of AVSStreet
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet is nothing) then
                                                                                Dim AVSStreet6277 as ENAVSStreet
                                                                                AVSStreet6277 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue()
                                                                                End If
                                                                                'Get value of AVSZip
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip is nothing) then
                                                                                Dim AVSZip6278 as ENAVSZip
                                                                                AVSZip6278 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue()
                                                                                End If
                                                                                'Get value of CardSecurityCodeMatch
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch is nothing) then
                                                                                Dim CardSecurityCodeMatch6279 as ENCardSecurityCodeMatch
                                                                                CardSecurityCodeMatch6279 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue()
                                                                                End If
                                                                                'Get value of ReconBatchID
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID is nothing) then
                                                                                Dim ReconBatchID6280 as String
                                                                                ReconBatchID6280 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue()
                                                                                End If
                                                                                'Get value of PaymentGroupingCode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode is nothing) then
                                                                                Dim PaymentGroupingCode6281 as Integer
                                                                                PaymentGroupingCode6281 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue()
                                                                                End If
                                                                                'Get value of PaymentStatus
                                                                                Dim PaymentStatus6282 as ENPaymentStatus
                                                                                PaymentStatus6282 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue()
                                                                                'Get value of TxnAuthorizationTime
                                                                                Dim TxnAuthorizationTime6283 as DateTime
                                                                                TxnAuthorizationTime6283 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue()
                                                                                'Get value of TxnAuthorizationStamp
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp is nothing) then
                                                                                Dim TxnAuthorizationStamp6284 as Integer
                                                                                TxnAuthorizationStamp6284 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue()
                                                                                End If
                                                                                'Get value of ClientTransID
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID is nothing) then
                                                                                Dim ClientTransID6285 as String
                                                                                ClientTransID6285 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue()
                                                                                End If
                                                                        End If
                                                                        if (not CreditMemoLineRetDataExtRetList is nothing)
                                                                                Dim i6286 as Integer
                                                                                for i6286 = 0  to CreditMemoLineRetDataExtRetList.Count - 1
                                                                                Dim DataExtRet as IDataExtRet
                                                                                DataExtRet = CreditMemoLineRetDataExtRetList.GetAt(i6286)
                                                                                'Get value of OwnerID
                                                                                if ( not DataExtRetOwnerID is nothing) then
                                                                                Dim OwnerID6287 as String
                                                                                OwnerID6287 = DataExtRetOwnerID.GetValue()
                                                                                End If
                                                                                'Get value of DataExtName
                                                                                Dim DataExtName6288 as String
                                                                                DataExtName6288 = DataExtRetDataExtName.GetValue()
                                                                                'Get value of DataExtType
                                                                                Dim DataExtType6289 as ENDataExtType
                                                                                DataExtType6289 = DataExtRetDataExtType.GetValue()
                                                                                'Get value of DataExtValue
                                                                                Dim DataExtValue6290 as String
                                                                                DataExtValue6290 = DataExtRetDataExtValue.GetValue()
                                                                                Next i6286
                                                                        End If
                                                                Next i6236
                                                        End If
                                                        if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.DataExtRetList is nothing)
                                                                Dim i6291 as Integer
                                                                for i6291 = 0  to ORCreditMemoLineRet6171.CreditMemoLineGroupRet.DataExtRetList.Count - 1
                                                                        Dim DataExtRet as IDataExtRet
                                                                        DataExtRet = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.DataExtRetList.GetAt(i6291)
                                                                        'Get value of OwnerID
                                                                        if ( not DataExtRetOwnerID is nothing) then
                                                                                Dim OwnerID6292 as String
                                                                                OwnerID6292 = DataExtRetOwnerID.GetValue()
                                                                        End If
                                                                        'Get value of DataExtName
                                                                        Dim DataExtName6293 as String
                                                                        DataExtName6293 = DataExtRetDataExtName.GetValue()
                                                                        'Get value of DataExtType
                                                                        Dim DataExtType6294 as ENDataExtType
                                                                        DataExtType6294 = DataExtRetDataExtType.GetValue()
                                                                        'Get value of DataExtValue
                                                                        Dim DataExtValue6295 as String
                                                                        DataExtValue6295 = DataExtRetDataExtValue.GetValue()
                                                                Next i6291
                                                        End If
                                                End If
                                        End If
                                Next i6170
                        End If
                        if (not CreditMemoRet.DataExtRetList is nothing)
                                Dim i6296 as Integer
                                for i6296 = 0  to CreditMemoRet.DataExtRetList.Count - 1
                                        Dim DataExtRet as IDataExtRet
                                        DataExtRet = CreditMemoRet.DataExtRetList.GetAt(i6296)
                                        'Get value of OwnerID
                                        if ( not DataExtRetOwnerID is nothing) then
                                                Dim OwnerID6297 as String
                                                OwnerID6297 = DataExtRetOwnerID.GetValue()
                                        End If
                                        'Get value of DataExtName
                                        Dim DataExtName6298 as String
                                        DataExtName6298 = DataExtRetDataExtName.GetValue()
                                        'Get value of DataExtType
                                        Dim DataExtType6299 as ENDataExtType
                                        DataExtType6299 = DataExtRetDataExtType.GetValue()
                                        'Get value of DataExtValue
                                        Dim DataExtValue6300 as String
                                        DataExtValue6300 = DataExtRetDataExtValue.GetValue()
                                Next i6296
                        End If
                End Sub




        End Class
End Module

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
//The following sample code is generated as an illustration of
//Creating requests and parsing responses ONLY
//This code is NOT intended to show best practices or ideal code
//Use at your most careful discretion

using System;
using System.Net;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
using Interop.QBFC16;

namespace com.intuit.idn.samples
{
        public class Sample
        {
                public void  DoCreditMemoMod()
                {
                        bool sessionBegun = false;
                        bool connectionOpen = false;
                        QBSessionManager sessionManager = null;

                        try
                        {
                                //Create the session Manager object
                                sessionManager = new QBSessionManager();

                                //Create the message set request object to hold our request
                                IMsgSetRequest requestMsgSet = sessionManager.CreateMsgSetRequest("US",16,0);
                                requestMsgSet.Attributes.OnError = ENRqOnError.roeContinue;

                                BuildCreditMemoModRq(requestMsgSet);

                                //Connect to QuickBooks and begin a session
                                sessionManager.OpenConnection("","Sample Code from OSR");
                                connectionOpen = true;
                                sessionManager.BeginSession("", ENOpenMode.omDontCare);
                                sessionBegun = true;

                                //Send the request and get the response from QuickBooks
                                IMsgSetResponse responseMsgSet = sessionManager.DoRequests(requestMsgSet);

                                //End the session and close the connection to QuickBooks
                                sessionManager.EndSession();
                                sessionBegun = false;
                                sessionManager.CloseConnection();
                                connectionOpen = false;

                                WalkCreditMemoModRs(responseMsgSet);
                        }
                        catch (Exception e)
                        {
                                MessageBox.Show(e.Message, "Error");
                                if (sessionBegun)
                                {
                                        sessionManager.EndSession();
                                }
                                if (connectionOpen)
                                {
                                        sessionManager.CloseConnection();
                                }
                        }
                }
                void BuildCreditMemoModRq(IMsgSetRequest requestMsgSet)
                {
                        ICreditMemoMod CreditMemoModRq= requestMsgSet.AppendCreditMemoModRq();
                        //Set field value for TxnID
                        CreditMemoModRq.TxnID.SetValue("200000-1011023419");
                        //Set field value for EditSequence
                        CreditMemoModRq.EditSequence.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoModRq.CustomerRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.CustomerRef.FullName.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoModRq.ClassRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.ClassRef.FullName.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoModRq.ARAccountRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.ARAccountRef.FullName.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoModRq.TemplateRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.TemplateRef.FullName.SetValue("ab");
                        //Set field value for TxnDate
                        CreditMemoModRq.TxnDate.SetValue(DateTime.Parse("12/15/2007"));
                        //Set field value for RefNumber
                        CreditMemoModRq.RefNumber.SetValue("ab");
                        //Set field value for Addr1
                        CreditMemoModRq.BillAddress.Addr1.SetValue("ab");
                        //Set field value for Addr2
                        CreditMemoModRq.BillAddress.Addr2.SetValue("ab");
                        //Set field value for Addr3
                        CreditMemoModRq.BillAddress.Addr3.SetValue("ab");
                        //Set field value for Addr4
                        CreditMemoModRq.BillAddress.Addr4.SetValue("ab");
                        //Set field value for Addr5
                        CreditMemoModRq.BillAddress.Addr5.SetValue("ab");
                        //Set field value for City
                        CreditMemoModRq.BillAddress.City.SetValue("ab");
                        //Set field value for State
                        CreditMemoModRq.BillAddress.State.SetValue("ab");
                        //Set field value for PostalCode
                        CreditMemoModRq.BillAddress.PostalCode.SetValue("ab");
                        //Set field value for Country
                        CreditMemoModRq.BillAddress.Country.SetValue("ab");
                        //Set field value for Note
                        CreditMemoModRq.BillAddress.Note.SetValue("ab");
                        //Set field value for Addr1
                        CreditMemoModRq.ShipAddress.Addr1.SetValue("ab");
                        //Set field value for Addr2
                        CreditMemoModRq.ShipAddress.Addr2.SetValue("ab");
                        //Set field value for Addr3
                        CreditMemoModRq.ShipAddress.Addr3.SetValue("ab");
                        //Set field value for Addr4
                        CreditMemoModRq.ShipAddress.Addr4.SetValue("ab");
                        //Set field value for Addr5
                        CreditMemoModRq.ShipAddress.Addr5.SetValue("ab");
                        //Set field value for City
                        CreditMemoModRq.ShipAddress.City.SetValue("ab");
                        //Set field value for State
                        CreditMemoModRq.ShipAddress.State.SetValue("ab");
                        //Set field value for PostalCode
                        CreditMemoModRq.ShipAddress.PostalCode.SetValue("ab");
                        //Set field value for Country
                        CreditMemoModRq.ShipAddress.Country.SetValue("ab");
                        //Set field value for Note
                        CreditMemoModRq.ShipAddress.Note.SetValue("ab");
                        //Set field value for IsPending
                        CreditMemoModRq.IsPending.SetValue(true);
                        //Set field value for PONumber
                        CreditMemoModRq.PONumber.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoModRq.TermsRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.TermsRef.FullName.SetValue("ab");
                        //Set field value for DueDate
                        CreditMemoModRq.DueDate.SetValue(DateTime.Parse("12/15/2007"));
                        //Set field value for ListID
                        CreditMemoModRq.SalesRepRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.SalesRepRef.FullName.SetValue("ab");
                        //Set field value for FOB
                        CreditMemoModRq.FOB.SetValue("ab");
                        //Set field value for ShipDate
                        CreditMemoModRq.ShipDate.SetValue(DateTime.Parse("12/15/2007"));
                        //Set field value for ListID
                        CreditMemoModRq.ShipMethodRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.ShipMethodRef.FullName.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoModRq.ItemSalesTaxRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.ItemSalesTaxRef.FullName.SetValue("ab");
                        //Set field value for Memo
                        CreditMemoModRq.Memo.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoModRq.CustomerMsgRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.CustomerMsgRef.FullName.SetValue("ab");
                        //Set field value for IsToBePrinted
                        CreditMemoModRq.IsToBePrinted.SetValue(true);
                        //Set field value for IsToBeEmailed
                        CreditMemoModRq.IsToBeEmailed.SetValue(true);
                        //Set field value for IsTaxIncluded
                        CreditMemoModRq.IsTaxIncluded.SetValue(true);
                        //Set field value for ListID
                        CreditMemoModRq.CustomerSalesTaxCodeRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoModRq.CustomerSalesTaxCodeRef.FullName.SetValue("ab");
                        //Set field value for Other
                        CreditMemoModRq.Other.SetValue("ab");
                        //Set field value for ExchangeRate
                        CreditMemoModRq.ExchangeRate.SetValue("IQBFloatType");
                        IORCreditMemoLineMod ORCreditMemoLineModListElement5857 =CreditMemoModRq.ORCreditMemoLineModList.Append();
                        string ORCreditMemoLineModListElementType5858 = "CreditMemoLineMod";
                        if (ORCreditMemoLineModListElementType5858 == "CreditMemoLineMod")
                        {
                                //Set field value for TxnLineID
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.TxnLineID.SetValue("200000-1011023419");
                                //Set field value for ListID
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.ItemRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.ItemRef.FullName.SetValue("ab");
                                //Set field value for Desc
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.Desc.SetValue("ab");
                                //Set field value for Quantity
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.Quantity.SetValue(2);
                                //Set field value for UnitOfMeasure
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.UnitOfMeasure.SetValue("ab");
                                //Set field value for ListID
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.OverrideUOMSetRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.OverrideUOMSetRef.FullName.SetValue("ab");
                                string ORRatePriceLevelElementType5859 = "Rate";
                                if (ORRatePriceLevelElementType5859 == "Rate")
                                {
                                        //Set field value for Rate
                                        ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORRatePriceLevel.Rate.SetValue(15.65);
                                }
                                if (ORRatePriceLevelElementType5859 == "RatePercent")
                                {
                                        //Set field value for RatePercent
                                        ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORRatePriceLevel.RatePercent.SetValue(20.00);
                                }
                                if (ORRatePriceLevelElementType5859 == "PriceLevelRef")
                                {
                                        //Set field value for ListID
                                        ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419");
                                        //Set field value for FullName
                                        ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab");
                                }
                                //Set field value for ListID
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.ClassRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.ClassRef.FullName.SetValue("ab");
                                //Set field value for Amount
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.Amount.SetValue(10.01);
                                //Set field value for ListID
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.InventorySiteRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.InventorySiteRef.FullName.SetValue("ab");
                                //Set field value for ListID
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.InventorySiteLocationRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.InventorySiteLocationRef.FullName.SetValue("ab");
                                string ORSerialLotNumberElementType5860 = "SerialNumber";
                                if (ORSerialLotNumberElementType5860 == "SerialNumber")
                                {
                                        //Set field value for SerialNumber
                                        ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORSerialLotNumber.SerialNumber.SetValue("ab");
                                }
                                if (ORSerialLotNumberElementType5860 == "LotNumber")
                                {
                                        //Set field value for LotNumber
                                        ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORSerialLotNumber.LotNumber.SetValue("ab");
                                }
                                //Set field value for ServiceDate
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.ServiceDate.SetValue(DateTime.Parse("12/15/2007"));
                                //Set field value for ListID
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.SalesTaxCodeRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.SalesTaxCodeRef.FullName.SetValue("ab");
                                //Set field value for ListID
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.OverrideItemAccountRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.OverrideItemAccountRef.FullName.SetValue("ab");
                                //Set field value for Other1
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.Other1.SetValue("ab");
                                //Set field value for Other2
                                ORCreditMemoLineModListElement5857.CreditMemoLineMod.Other2.SetValue("ab");
                        }
                        if (ORCreditMemoLineModListElementType5858 == "CreditMemoLineGroupMod")
                        {
                                //Set field value for TxnLineID
                                ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.TxnLineID.SetValue("200000-1011023419");
                                //Set field value for ListID
                                ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.ItemGroupRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.ItemGroupRef.FullName.SetValue("ab");
                                //Set field value for Quantity
                                ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.Quantity.SetValue(2);
                                //Set field value for UnitOfMeasure
                                ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.UnitOfMeasure.SetValue("ab");
                                //Set field value for ListID
                                ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.OverrideUOMSetRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.OverrideUOMSetRef.FullName.SetValue("ab");
                                ICreditMemoLineMod CreditMemoLineMod5861=ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.CreditMemoLineModList.Append();
                                //Set field value for TxnLineID
                                CreditMemoLineMod5861.TxnLineID.SetValue("200000-1011023419");
                                //Set field value for ListID
                                CreditMemoLineMod5861.ItemRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                CreditMemoLineMod5861.ItemRef.FullName.SetValue("ab");
                                //Set field value for Desc
                                CreditMemoLineMod5861.Desc.SetValue("ab");
                                //Set field value for Quantity
                                CreditMemoLineMod5861.Quantity.SetValue(2);
                                //Set field value for UnitOfMeasure
                                CreditMemoLineMod5861.UnitOfMeasure.SetValue("ab");
                                //Set field value for ListID
                                CreditMemoLineMod5861.OverrideUOMSetRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                CreditMemoLineMod5861.OverrideUOMSetRef.FullName.SetValue("ab");
                                string ORRatePriceLevelElementType5862 = "Rate";
                                if (ORRatePriceLevelElementType5862 == "Rate")
                                {
                                        //Set field value for Rate
                                        CreditMemoLineMod5861.ORRatePriceLevel.Rate.SetValue(15.65);
                                }
                                if (ORRatePriceLevelElementType5862 == "RatePercent")
                                {
                                        //Set field value for RatePercent
                                        CreditMemoLineMod5861.ORRatePriceLevel.RatePercent.SetValue(20.00);
                                }
                                if (ORRatePriceLevelElementType5862 == "PriceLevelRef")
                                {
                                        //Set field value for ListID
                                        CreditMemoLineMod5861.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419");
                                        //Set field value for FullName
                                        CreditMemoLineMod5861.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab");
                                }
                                //Set field value for ListID
                                CreditMemoLineMod5861.ClassRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                CreditMemoLineMod5861.ClassRef.FullName.SetValue("ab");
                                //Set field value for Amount
                                CreditMemoLineMod5861.Amount.SetValue(10.01);
                                //Set field value for ListID
                                CreditMemoLineMod5861.InventorySiteRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                CreditMemoLineMod5861.InventorySiteRef.FullName.SetValue("ab");
                                //Set field value for ListID
                                CreditMemoLineMod5861.InventorySiteLocationRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                CreditMemoLineMod5861.InventorySiteLocationRef.FullName.SetValue("ab");
                                string ORSerialLotNumberElementType5863 = "SerialNumber";
                                if (ORSerialLotNumberElementType5863 == "SerialNumber")
                                {
                                        //Set field value for SerialNumber
                                        CreditMemoLineMod5861.ORSerialLotNumber.SerialNumber.SetValue("ab");
                                }
                                if (ORSerialLotNumberElementType5863 == "LotNumber")
                                {
                                        //Set field value for LotNumber
                                        CreditMemoLineMod5861.ORSerialLotNumber.LotNumber.SetValue("ab");
                                }
                                //Set field value for ServiceDate
                                CreditMemoLineMod5861.ServiceDate.SetValue(DateTime.Parse("12/15/2007"));
                                //Set field value for ListID
                                CreditMemoLineMod5861.SalesTaxCodeRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                CreditMemoLineMod5861.SalesTaxCodeRef.FullName.SetValue("ab");
                                //Set field value for ListID
                                CreditMemoLineMod5861.OverrideItemAccountRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                CreditMemoLineMod5861.OverrideItemAccountRef.FullName.SetValue("ab");
                                //Set field value for Other1
                                CreditMemoLineMod5861.Other1.SetValue("ab");
                                //Set field value for Other2
                                CreditMemoLineMod5861.Other2.SetValue("ab");
                        }
                        //Set field value for IncludeRetElementList
                        //May create more than one of these if needed
                        CreditMemoModRq.IncludeRetElementList.Add("ab");
                }




                void WalkCreditMemoModRs(IMsgSetResponse responseMsgSet)
                {
                        if (responseMsgSet == null) return;
                        IResponseList responseList = responseMsgSet.ResponseList;
                        if (responseList == null) return;
                        //if we sent only one request, there is only one response, we'll walk the list for this sample
                        for(int i=0; i < responseList.Count; i++)
                        {
                                IResponse response = responseList.GetAt(i);
                                //check the status code of the response, 0=ok, >0 is warning
                                if (response.StatusCode >= 0)
                                {
                                        //the request-specific response is in the details, make sure we have some
                                        if (response.Detail != null)
                                        {
                                                //make sure the response is the type we're expecting
                                                ENResponseType responseType = (ENResponseType)response.Type.GetValue();
                                                if (responseType == ENResponseType.rtCreditMemoModRs)
                                                {
                                                        //upcast to more specific type here, this is safe because we checked with response.Type check above
                                                        ICreditMemoRet CreditMemoRet = (ICreditMemoRet)response.Detail;
                                                        WalkCreditMemoRet(CreditMemoRet);
                                                }
                                        }
                                }
                        }
                }




                void WalkCreditMemoRet(ICreditMemoRet CreditMemoRet)
                {
                        if (CreditMemoRet == null) return;
                        //Go through all the elements of ICreditMemoRet
                        //Get value of TxnID
                        string TxnID5864 = (string)CreditMemoRet.TxnID.GetValue();
                        //Get value of TimeCreated
                        DateTime TimeCreated5865 = (DateTime)CreditMemoRet.TimeCreated.GetValue();
                        //Get value of TimeModified
                        DateTime TimeModified5866 = (DateTime)CreditMemoRet.TimeModified.GetValue();
                        //Get value of EditSequence
                        string EditSequence5867 = (string)CreditMemoRet.EditSequence.GetValue();
                        //Get value of TxnNumber
                        if (CreditMemoRet.TxnNumber != null)
                        {
                                int TxnNumber5868 = (int)CreditMemoRet.TxnNumber.GetValue();
                        }
                        //Get value of ListID
                        if (CreditMemoRet.CustomerRef.ListID != null)
                        {
                                string ListID5869 = (string)CreditMemoRet.CustomerRef.ListID.GetValue();
                        }
                        //Get value of FullName
                        if (CreditMemoRet.CustomerRef.FullName != null)
                        {
                                string FullName5870 = (string)CreditMemoRet.CustomerRef.FullName.GetValue();
                        }
                        if (CreditMemoRet.ClassRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.ClassRef.ListID != null)
                                {
                                        string ListID5871 = (string)CreditMemoRet.ClassRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.ClassRef.FullName != null)
                                {
                                        string FullName5872 = (string)CreditMemoRet.ClassRef.FullName.GetValue();
                                }
                        }
                        if (CreditMemoRet.ARAccountRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.ARAccountRef.ListID != null)
                                {
                                        string ListID5873 = (string)CreditMemoRet.ARAccountRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.ARAccountRef.FullName != null)
                                {
                                        string FullName5874 = (string)CreditMemoRet.ARAccountRef.FullName.GetValue();
                                }
                        }
                        if (CreditMemoRet.TemplateRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.TemplateRef.ListID != null)
                                {
                                        string ListID5875 = (string)CreditMemoRet.TemplateRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.TemplateRef.FullName != null)
                                {
                                        string FullName5876 = (string)CreditMemoRet.TemplateRef.FullName.GetValue();
                                }
                        }
                        //Get value of TxnDate
                        DateTime TxnDate5877 = (DateTime)CreditMemoRet.TxnDate.GetValue();
                        //Get value of RefNumber
                        if (CreditMemoRet.RefNumber != null)
                        {
                                string RefNumber5878 = (string)CreditMemoRet.RefNumber.GetValue();
                        }
                        if (CreditMemoRet.BillAddress != null)
                        {
                                //Get value of Addr1
                                if (CreditMemoRet.BillAddress.Addr1 != null)
                                {
                                        string Addr15879 = (string)CreditMemoRet.BillAddress.Addr1.GetValue();
                                }
                                //Get value of Addr2
                                if (CreditMemoRet.BillAddress.Addr2 != null)
                                {
                                        string Addr25880 = (string)CreditMemoRet.BillAddress.Addr2.GetValue();
                                }
                                //Get value of Addr3
                                if (CreditMemoRet.BillAddress.Addr3 != null)
                                {
                                        string Addr35881 = (string)CreditMemoRet.BillAddress.Addr3.GetValue();
                                }
                                //Get value of Addr4
                                if (CreditMemoRet.BillAddress.Addr4 != null)
                                {
                                        string Addr45882 = (string)CreditMemoRet.BillAddress.Addr4.GetValue();
                                }
                                //Get value of Addr5
                                if (CreditMemoRet.BillAddress.Addr5 != null)
                                {
                                        string Addr55883 = (string)CreditMemoRet.BillAddress.Addr5.GetValue();
                                }
                                //Get value of City
                                if (CreditMemoRet.BillAddress.City != null)
                                {
                                        string City5884 = (string)CreditMemoRet.BillAddress.City.GetValue();
                                }
                                //Get value of State
                                if (CreditMemoRet.BillAddress.State != null)
                                {
                                        string State5885 = (string)CreditMemoRet.BillAddress.State.GetValue();
                                }
                                //Get value of PostalCode
                                if (CreditMemoRet.BillAddress.PostalCode != null)
                                {
                                        string PostalCode5886 = (string)CreditMemoRet.BillAddress.PostalCode.GetValue();
                                }
                                //Get value of Country
                                if (CreditMemoRet.BillAddress.Country != null)
                                {
                                        string Country5887 = (string)CreditMemoRet.BillAddress.Country.GetValue();
                                }
                                //Get value of Note
                                if (CreditMemoRet.BillAddress.Note != null)
                                {
                                        string Note5888 = (string)CreditMemoRet.BillAddress.Note.GetValue();
                                }
                        }
                        if (CreditMemoRet.BillAddressBlock != null)
                        {
                                //Get value of Addr1
                                if (CreditMemoRet.BillAddressBlock.Addr1 != null)
                                {
                                        string Addr15889 = (string)CreditMemoRet.BillAddressBlock.Addr1.GetValue();
                                }
                                //Get value of Addr2
                                if (CreditMemoRet.BillAddressBlock.Addr2 != null)
                                {
                                        string Addr25890 = (string)CreditMemoRet.BillAddressBlock.Addr2.GetValue();
                                }
                                //Get value of Addr3
                                if (CreditMemoRet.BillAddressBlock.Addr3 != null)
                                {
                                        string Addr35891 = (string)CreditMemoRet.BillAddressBlock.Addr3.GetValue();
                                }
                                //Get value of Addr4
                                if (CreditMemoRet.BillAddressBlock.Addr4 != null)
                                {
                                        string Addr45892 = (string)CreditMemoRet.BillAddressBlock.Addr4.GetValue();
                                }
                                //Get value of Addr5
                                if (CreditMemoRet.BillAddressBlock.Addr5 != null)
                                {
                                        string Addr55893 = (string)CreditMemoRet.BillAddressBlock.Addr5.GetValue();
                                }
                        }
                        if (CreditMemoRet.ShipAddress != null)
                        {
                                //Get value of Addr1
                                if (CreditMemoRet.ShipAddress.Addr1 != null)
                                {
                                        string Addr15894 = (string)CreditMemoRet.ShipAddress.Addr1.GetValue();
                                }
                                //Get value of Addr2
                                if (CreditMemoRet.ShipAddress.Addr2 != null)
                                {
                                        string Addr25895 = (string)CreditMemoRet.ShipAddress.Addr2.GetValue();
                                }
                                //Get value of Addr3
                                if (CreditMemoRet.ShipAddress.Addr3 != null)
                                {
                                        string Addr35896 = (string)CreditMemoRet.ShipAddress.Addr3.GetValue();
                                }
                                //Get value of Addr4
                                if (CreditMemoRet.ShipAddress.Addr4 != null)
                                {
                                        string Addr45897 = (string)CreditMemoRet.ShipAddress.Addr4.GetValue();
                                }
                                //Get value of Addr5
                                if (CreditMemoRet.ShipAddress.Addr5 != null)
                                {
                                        string Addr55898 = (string)CreditMemoRet.ShipAddress.Addr5.GetValue();
                                }
                                //Get value of City
                                if (CreditMemoRet.ShipAddress.City != null)
                                {
                                        string City5899 = (string)CreditMemoRet.ShipAddress.City.GetValue();
                                }
                                //Get value of State
                                if (CreditMemoRet.ShipAddress.State != null)
                                {
                                        string State5900 = (string)CreditMemoRet.ShipAddress.State.GetValue();
                                }
                                //Get value of PostalCode
                                if (CreditMemoRet.ShipAddress.PostalCode != null)
                                {
                                        string PostalCode5901 = (string)CreditMemoRet.ShipAddress.PostalCode.GetValue();
                                }
                                //Get value of Country
                                if (CreditMemoRet.ShipAddress.Country != null)
                                {
                                        string Country5902 = (string)CreditMemoRet.ShipAddress.Country.GetValue();
                                }
                                //Get value of Note
                                if (CreditMemoRet.ShipAddress.Note != null)
                                {
                                        string Note5903 = (string)CreditMemoRet.ShipAddress.Note.GetValue();
                                }
                        }
                        if (CreditMemoRet.ShipAddressBlock != null)
                        {
                                //Get value of Addr1
                                if (CreditMemoRet.ShipAddressBlock.Addr1 != null)
                                {
                                        string Addr16.04 = (string)CreditMemoRet.ShipAddressBlock.Addr1.GetValue();
                                }
                                //Get value of Addr2
                                if (CreditMemoRet.ShipAddressBlock.Addr2 != null)
                                {
                                        string Addr25905 = (string)CreditMemoRet.ShipAddressBlock.Addr2.GetValue();
                                }
                                //Get value of Addr3
                                if (CreditMemoRet.ShipAddressBlock.Addr3 != null)
                                {
                                        string Addr35906 = (string)CreditMemoRet.ShipAddressBlock.Addr3.GetValue();
                                }
                                //Get value of Addr4
                                if (CreditMemoRet.ShipAddressBlock.Addr4 != null)
                                {
                                        string Addr45907 = (string)CreditMemoRet.ShipAddressBlock.Addr4.GetValue();
                                }
                                //Get value of Addr5
                                if (CreditMemoRet.ShipAddressBlock.Addr5 != null)
                                {
                                        string Addr55908 = (string)CreditMemoRet.ShipAddressBlock.Addr5.GetValue();
                                }
                        }
                        //Get value of IsPending
                        if (CreditMemoRet.IsPending != null)
                        {
                                bool IsPending5909 = (bool)CreditMemoRet.IsPending.GetValue();
                        }
                        //Get value of PONumber
                        if (CreditMemoRet.PONumber != null)
                        {
                                string PONumber5910 = (string)CreditMemoRet.PONumber.GetValue();
                        }
                        if (CreditMemoRet.TermsRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.TermsRef.ListID != null)
                                {
                                        string ListID5911 = (string)CreditMemoRet.TermsRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.TermsRef.FullName != null)
                                {
                                        string FullName5912 = (string)CreditMemoRet.TermsRef.FullName.GetValue();
                                }
                        }
                        //Get value of DueDate
                        if (CreditMemoRet.DueDate != null)
                        {
                                DateTime DueDate5913 = (DateTime)CreditMemoRet.DueDate.GetValue();
                        }
                        if (CreditMemoRet.SalesRepRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.SalesRepRef.ListID != null)
                                {
                                        string ListID5914 = (string)CreditMemoRet.SalesRepRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.SalesRepRef.FullName != null)
                                {
                                        string FullName5915 = (string)CreditMemoRet.SalesRepRef.FullName.GetValue();
                                }
                        }
                        //Get value of FOB
                        if (CreditMemoRet.FOB != null)
                        {
                                string FOB5916 = (string)CreditMemoRet.FOB.GetValue();
                        }
                        //Get value of ShipDate
                        if (CreditMemoRet.ShipDate != null)
                        {
                                DateTime ShipDate5917 = (DateTime)CreditMemoRet.ShipDate.GetValue();
                        }
                        if (CreditMemoRet.ShipMethodRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.ShipMethodRef.ListID != null)
                                {
                                        string ListID5918 = (string)CreditMemoRet.ShipMethodRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.ShipMethodRef.FullName != null)
                                {
                                        string FullName5919 = (string)CreditMemoRet.ShipMethodRef.FullName.GetValue();
                                }
                        }
                        //Get value of Subtotal
                        if (CreditMemoRet.Subtotal != null)
                        {
                                double Subtotal5920 = (double)CreditMemoRet.Subtotal.GetValue();
                        }
                        if (CreditMemoRet.ItemSalesTaxRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.ItemSalesTaxRef.ListID != null)
                                {
                                        string ListID5921 = (string)CreditMemoRet.ItemSalesTaxRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.ItemSalesTaxRef.FullName != null)
                                {
                                        string FullName5922 = (string)CreditMemoRet.ItemSalesTaxRef.FullName.GetValue();
                                }
                        }
                        //Get value of SalesTaxPercentage
                        if (CreditMemoRet.SalesTaxPercentage != null)
                        {
                                double SalesTaxPercentage5923 = (double)CreditMemoRet.SalesTaxPercentage.GetValue();
                        }
                        //Get value of SalesTaxTotal
                        if (CreditMemoRet.SalesTaxTotal != null)
                        {
                                double SalesTaxTotal5924 = (double)CreditMemoRet.SalesTaxTotal.GetValue();
                        }
                        //Get value of TotalAmount
                        if (CreditMemoRet.TotalAmount != null)
                        {
                                double TotalAmount5925 = (double)CreditMemoRet.TotalAmount.GetValue();
                        }
                        //Get value of CreditRemaining
                        if (CreditMemoRet.CreditRemaining != null)
                        {
                                double CreditRemaining5926 = (double)CreditMemoRet.CreditRemaining.GetValue();
                        }
                        if (CreditMemoRet.CurrencyRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.CurrencyRef.ListID != null)
                                {
                                        string ListID5927 = (string)CreditMemoRet.CurrencyRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.CurrencyRef.FullName != null)
                                {
                                        string FullName5928 = (string)CreditMemoRet.CurrencyRef.FullName.GetValue();
                                }
                        }
                        //Get value of ExchangeRate
                        if (CreditMemoRet.ExchangeRate != null)
                        {
                                IQBFloatType ExchangeRate5929 = (IQBFloatType)CreditMemoRet.ExchangeRate.GetValue();
                        }
                        //Get value of CreditRemainingInHomeCurrency
                        if (CreditMemoRet.CreditRemainingInHomeCurrency != null)
                        {
                                double CreditRemainingInHomeCurrency5930 = (double)CreditMemoRet.CreditRemainingInHomeCurrency.GetValue();
                        }
                        //Get value of Memo
                        if (CreditMemoRet.Memo != null)
                        {
                                string Memo5931 = (string)CreditMemoRet.Memo.GetValue();
                        }
                        if (CreditMemoRet.CustomerMsgRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.CustomerMsgRef.ListID != null)
                                {
                                        string ListID5932 = (string)CreditMemoRet.CustomerMsgRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.CustomerMsgRef.FullName != null)
                                {
                                        string FullName5933 = (string)CreditMemoRet.CustomerMsgRef.FullName.GetValue();
                                }
                        }
                        //Get value of IsToBePrinted
                        if (CreditMemoRet.IsToBePrinted != null)
                        {
                                bool IsToBePrinted5934 = (bool)CreditMemoRet.IsToBePrinted.GetValue();
                        }
                        //Get value of IsToBeEmailed
                        if (CreditMemoRet.IsToBeEmailed != null)
                        {
                                bool IsToBeEmailed5935 = (bool)CreditMemoRet.IsToBeEmailed.GetValue();
                        }
                        //Get value of IsTaxIncluded
                        if (CreditMemoRet.IsTaxIncluded != null)
                        {
                                bool IsTaxIncluded5936 = (bool)CreditMemoRet.IsTaxIncluded.GetValue();
                        }
                        if (CreditMemoRet.CustomerSalesTaxCodeRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.CustomerSalesTaxCodeRef.ListID != null)
                                {
                                        string ListID5937 = (string)CreditMemoRet.CustomerSalesTaxCodeRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.CustomerSalesTaxCodeRef.FullName != null)
                                {
                                        string FullName5938 = (string)CreditMemoRet.CustomerSalesTaxCodeRef.FullName.GetValue();
                                }
                        }
                        //Get value of Other
                        if (CreditMemoRet.Other != null)
                        {
                                string Other5939 = (string)CreditMemoRet.Other.GetValue();
                        }
                        //Get value of ExternalGUID
                        if (CreditMemoRet.ExternalGUID != null)
                        {
                                string ExternalGUID5940 = (string)CreditMemoRet.ExternalGUID.GetValue();
                        }
                        if (CreditMemoRet.LinkedTxnList != null)
                        {
                                for (int i5941 = 0; i5941 < CreditMemoRet.LinkedTxnList.Count; i5941++)
                                {
                                        ILinkedTxn LinkedTxn = CreditMemoRet.LinkedTxnList.GetAt(i5941);
                                        //Get value of TxnID
                                        string TxnID5942 = (string)LinkedTxn.TxnID.GetValue();
                                        //Get value of TxnType
                                        ENTxnType TxnType5943 = (ENTxnType)LinkedTxn.TxnType.GetValue();
                                        //Get value of TxnDate
                                        DateTime TxnDate5944 = (DateTime)LinkedTxn.TxnDate.GetValue();
                                        //Get value of RefNumber
                                        if (LinkedTxn.RefNumber != null)
                                        {
                                                string RefNumber5945 = (string)LinkedTxn.RefNumber.GetValue();
                                        }
                                        //Get value of LinkType
                                        if (LinkedTxn.LinkType != null)
                                        {
                                                ENLinkType LinkType5946 = (ENLinkType)LinkedTxn.LinkType.GetValue();
                                        }
                                        //Get value of Amount
                                        double Amount5947 = (double)LinkedTxn.Amount.GetValue();
                                }
                        }
                        if (CreditMemoRet.ORCreditMemoLineRetList != null)
                        {
                                for (int i5948 = 0; i5948 < CreditMemoRet.ORCreditMemoLineRetList.Count; i5948++)
                                {
                                        IORCreditMemoLineRet ORCreditMemoLineRet5949 = CreditMemoRet.ORCreditMemoLineRetList.GetAt(i5948);
                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet != null)
                                        {
                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet != null)
                                                {
                                                        //Get value of TxnLineID
                                                        string TxnLineID5950 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.TxnLineID.GetValue();
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef.ListID != null)
                                                                {
                                                                        string ListID5951 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef.FullName != null)
                                                                {
                                                                        string FullName5952 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef.FullName.GetValue();
                                                                }
                                                        }
                                                        //Get value of Desc
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.Desc != null)
                                                        {
                                                                string Desc5953 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.Desc.GetValue();
                                                        }
                                                        //Get value of Quantity
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.Quantity != null)
                                                        {
                                                                int Quantity5954 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.Quantity.GetValue();
                                                        }
                                                        //Get value of UnitOfMeasure
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.UnitOfMeasure != null)
                                                        {
                                                                string UnitOfMeasure5955 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.UnitOfMeasure.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef.ListID != null)
                                                                {
                                                                        string ListID5956 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef.FullName != null)
                                                                {
                                                                        string FullName5957 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue();
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate != null)
                                                        {
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.Rate != null)
                                                                {
                                                                        //Get value of Rate
                                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.Rate != null)
                                                                        {
                                                                                double Rate5959 = (double)ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.Rate.GetValue();
                                                                        }
                                                                }
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.RatePercent != null)
                                                                {
                                                                        //Get value of RatePercent
                                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.RatePercent != null)
                                                                        {
                                                                                double RatePercent5960 = (double)ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.RatePercent.GetValue();
                                                                        }
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef.ListID != null)
                                                                {
                                                                        string ListID5961 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef.FullName != null)
                                                                {
                                                                        string FullName5962 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef.FullName.GetValue();
                                                                }
                                                        }
                                                        //Get value of Amount
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.Amount != null)
                                                        {
                                                                double Amount5963 = (double)ORCreditMemoLineRet5949.CreditMemoLineRet.Amount.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef.ListID != null)
                                                                {
                                                                        string ListID5964 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef.FullName != null)
                                                                {
                                                                        string FullName5965 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef.FullName.GetValue();
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef.ListID != null)
                                                                {
                                                                        string ListID5966 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef.FullName != null)
                                                                {
                                                                        string FullName5967 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue();
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber != null)
                                                        {
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null)
                                                                {
                                                                        //Get value of SerialNumber
                                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null)
                                                                        {
                                                                                string SerialNumber5969 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue();
                                                                        }
                                                                }
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.LotNumber != null)
                                                                {
                                                                        //Get value of LotNumber
                                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.LotNumber != null)
                                                                        {
                                                                                string LotNumber5970 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue();
                                                                        }
                                                                }
                                                        }
                                                        //Get value of ExpirationDateForSerialLotNumber
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ExpirationDateForSerialLotNumber != null)
                                                        {
                                                                string ExpDate = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ExpirationDateForSerialLotNumber.GetValue();
                                                        }
                                                        //Get value of ServiceDate
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.ServiceDate != null)
                                                        {
                                                                DateTime ServiceDate5971 = (DateTime)ORCreditMemoLineRet5949.CreditMemoLineRet.ServiceDate.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef.ListID != null)
                                                                {
                                                                        string ListID5972 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef.FullName != null)
                                                                {
                                                                        string FullName5973 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue();
                                                                }
                                                        }
                                                        //Get value of Other1
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.Other1 != null)
                                                        {
                                                                string Other15974 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.Other1.GetValue();
                                                        }
                                                        //Get value of Other2
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.Other2 != null)
                                                        {
                                                                string Other25975 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.Other2.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo != null)
                                                        {
                                                                //Get value of CreditCardNumber
                                                                string CreditCardNumber5976 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue();
                                                                //Get value of ExpirationMonth
                                                                int ExpirationMonth5977 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue();
                                                                //Get value of ExpirationYear
                                                                int ExpirationYear5978 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue();
                                                                //Get value of NameOnCard
                                                                string NameOnCard5979 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue();
                                                                //Get value of CreditCardAddress
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress != null)
                                                                {
                                                                        string CreditCardAddress5980 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue();
                                                                }
                                                                //Get value of CreditCardPostalCode
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode != null)
                                                                {
                                                                        string CreditCardPostalCode5981 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue();
                                                                }
                                                                //Get value of CommercialCardCode
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode != null)
                                                                {
                                                                        string CommercialCardCode5982 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue();
                                                                }
                                                                //Get value of TransactionMode
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode != null)
                                                                {
                                                                        ENTransactionMode TransactionMode5983 = (ENTransactionMode)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue();
                                                                }
                                                                //Get value of CreditCardTxnType
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType != null)
                                                                {
                                                                        ENCreditCardTxnType CreditCardTxnType5984 = (ENCreditCardTxnType)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue();
                                                                }
                                                                //Get value of ResultCode
                                                                int ResultCode5985 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue();
                                                                //Get value of ResultMessage
                                                                string ResultMessage5986 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue();
                                                                //Get value of CreditCardTransID
                                                                string CreditCardTransID5987 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue();
                                                                //Get value of MerchantAccountNumber
                                                                string MerchantAccountNumber5988 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue();
                                                                //Get value of AuthorizationCode
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode != null)
                                                                {
                                                                        string AuthorizationCode5989 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue();
                                                                }
                                                                //Get value of AVSStreet
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet != null)
                                                                {
                                                                        ENAVSStreet AVSStreet5990 = (ENAVSStreet)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue();
                                                                }
                                                                //Get value of AVSZip
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip != null)
                                                                {
                                                                        ENAVSZip AVSZip5991 = (ENAVSZip)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue();
                                                                }
                                                                //Get value of CardSecurityCodeMatch
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch != null)
                                                                {
                                                                        ENCardSecurityCodeMatch CardSecurityCodeMatch5992 = (ENCardSecurityCodeMatch)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue();
                                                                }
                                                                //Get value of ReconBatchID
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID != null)
                                                                {
                                                                        string ReconBatchID5993 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue();
                                                                }
                                                                //Get value of PaymentGroupingCode
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode != null)
                                                                {
                                                                        int PaymentGroupingCode5994 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue();
                                                                }
                                                                //Get value of PaymentStatus
                                                                ENPaymentStatus PaymentStatus5995 = (ENPaymentStatus)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue();
                                                                //Get value of TxnAuthorizationTime
                                                                DateTime TxnAuthorizationTime5996 = (DateTime)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue();
                                                                //Get value of TxnAuthorizationStamp
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp != null)
                                                                {
                                                                        int TxnAuthorizationStamp5997 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue();
                                                                }
                                                                //Get value of ClientTransID
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID != null)
                                                                {
                                                                        string ClientTransID5998 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue();
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineRet.DataExtRetList != null)
                                                        {
                                                                for (int i5999 = 0; i5999 < ORCreditMemoLineRet5949.CreditMemoLineRet.DataExtRetList.Count; i5999++)
                                                                {
                                                                        IDataExtRet DataExtRet = ORCreditMemoLineRet5949.CreditMemoLineRet.DataExtRetList.GetAt(i5999);
                                                                        //Get value of OwnerID
                                                                        if (DataExtRet.OwnerID != null)
                                                                        {
                                                                                string OwnerID6000 = (string)DataExtRet.OwnerID.GetValue();
                                                                        }
                                                                        //Get value of DataExtName
                                                                        string DataExtName6001 = (string)DataExtRet.DataExtName.GetValue();
                                                                        //Get value of DataExtType
                                                                        ENDataExtType DataExtType6002 = (ENDataExtType)DataExtRet.DataExtType.GetValue();
                                                                        //Get value of DataExtValue
                                                                        string DataExtValue6003 = (string)DataExtRet.DataExtValue.GetValue();
                                                                }
                                                        }
                                                }
                                        }
                                        if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet != null)
                                        {
                                                if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet != null)
                                                {
                                                        //Get value of TxnLineID
                                                        string TxnLineID6004 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.TxnLineID.GetValue();
                                                        //Get value of ListID
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.ItemGroupRef.ListID != null)
                                                        {
                                                                string ListID6005 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.ItemGroupRef.ListID.GetValue();
                                                        }
                                                        //Get value of FullName
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.ItemGroupRef.FullName != null)
                                                        {
                                                                string FullName6006 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.ItemGroupRef.FullName.GetValue();
                                                        }
                                                        //Get value of Desc
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.Desc != null)
                                                        {
                                                                string Desc6007 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.Desc.GetValue();
                                                        }
                                                        //Get value of Quantity
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.Quantity != null)
                                                        {
                                                                int Quantity6008 = (int)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.Quantity.GetValue();
                                                        }
                                                        //Get value of UnitOfMeasure
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.UnitOfMeasure != null)
                                                        {
                                                                string UnitOfMeasure6009 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.UnitOfMeasure.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID != null)
                                                                {
                                                                        string ListID6010 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName != null)
                                                                {
                                                                        string FullName6011 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName.GetValue();
                                                                }
                                                        }
                                                        //Get value of IsPrintItemsInGroup
                                                        bool IsPrintItemsInGroup6012 = (bool)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.IsPrintItemsInGroup.GetValue();
                                                        //Get value of TotalAmount
                                                        double TotalAmount6013 = (double)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.TotalAmount.GetValue();
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.CreditMemoLineRetList != null)
                                                        {
                                                                for (int i6014 = 0; i6014 < ORCreditMemoLineRet5949.CreditMemoLineGroupRet.CreditMemoLineRetList.Count; i6014++)
                                                                {
                                                                        ICreditMemoLineRet CreditMemoLineRet = ORCreditMemoLineRet5949.CreditMemoLineGroupRet.CreditMemoLineRetList.GetAt(i6014);
                                                                        //Get value of TxnLineID
                                                                        string TxnLineID6015 = (string)CreditMemoLineRet.TxnLineID.GetValue();
                                                                        if (CreditMemoLineRet.ItemRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.ItemRef.ListID != null)
                                                                                {
                                                                                string ListID6016 = (string)CreditMemoLineRet.ItemRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.ItemRef.FullName != null)
                                                                                {
                                                                                string FullName6017 = (string)CreditMemoLineRet.ItemRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        //Get value of Desc
                                                                        if (CreditMemoLineRet.Desc != null)
                                                                        {
                                                                                string Desc6018 = (string)CreditMemoLineRet.Desc.GetValue();
                                                                        }
                                                                        //Get value of Quantity
                                                                        if (CreditMemoLineRet.Quantity != null)
                                                                        {
                                                                                int Quantity6019 = (int)CreditMemoLineRet.Quantity.GetValue();
                                                                        }
                                                                        //Get value of UnitOfMeasure
                                                                        if (CreditMemoLineRet.UnitOfMeasure != null)
                                                                        {
                                                                                string UnitOfMeasure6020 = (string)CreditMemoLineRet.UnitOfMeasure.GetValue();
                                                                        }
                                                                        if (CreditMemoLineRet.OverrideUOMSetRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.OverrideUOMSetRef.ListID != null)
                                                                                {
                                                                                string ListID6021 = (string)CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.OverrideUOMSetRef.FullName != null)
                                                                                {
                                                                                string FullName6022 = (string)CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.ORRate != null)
                                                                        {
                                                                                if (CreditMemoLineRet.ORRate.Rate != null)
                                                                                {
                                                                                //Get value of Rate
                                                                                if (CreditMemoLineRet.ORRate.Rate != null)
                                                                                {
                                                                                double Rate6024 = (double)CreditMemoLineRet.ORRate.Rate.GetValue();
                                                                                }
                                                                                }
                                                                                if (CreditMemoLineRet.ORRate.RatePercent != null)
                                                                                {
                                                                                //Get value of RatePercent
                                                                                if (CreditMemoLineRet.ORRate.RatePercent != null)
                                                                                {
                                                                                double RatePercent6025 = (double)CreditMemoLineRet.ORRate.RatePercent.GetValue();
                                                                                }
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.ClassRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.ClassRef.ListID != null)
                                                                                {
                                                                                string ListID6026 = (string)CreditMemoLineRet.ClassRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.ClassRef.FullName != null)
                                                                                {
                                                                                string FullName6027 = (string)CreditMemoLineRet.ClassRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        //Get value of Amount
                                                                        if (CreditMemoLineRet.Amount != null)
                                                                        {
                                                                                double Amount6028 = (double)CreditMemoLineRet.Amount.GetValue();
                                                                        }
                                                                        if (CreditMemoLineRet.InventorySiteRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.InventorySiteRef.ListID != null)
                                                                                {
                                                                                string ListID6029 = (string)CreditMemoLineRet.InventorySiteRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.InventorySiteRef.FullName != null)
                                                                                {
                                                                                string FullName6030 = (string)CreditMemoLineRet.InventorySiteRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.InventorySiteLocationRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.InventorySiteLocationRef.ListID != null)
                                                                                {
                                                                                string ListID6031 = (string)CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.InventorySiteLocationRef.FullName != null)
                                                                                {
                                                                                string FullName6032 = (string)CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.ORSerialLotNumber != null)
                                                                        {
                                                                                if (CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null)
                                                                                {
                                                                                //Get value of SerialNumber
                                                                                if (CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null)
                                                                                {
                                                                                string SerialNumber6034 = (string)CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue();
                                                                                }
                                                                                }
                                                                                if (CreditMemoLineRet.ORSerialLotNumber.LotNumber != null)
                                                                                {
                                                                                //Get value of LotNumber
                                                                                if (CreditMemoLineRet.ORSerialLotNumber.LotNumber != null)
                                                                                {
                                                                                string LotNumber6035 = (string)CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue();
                                                                                }
                                                                                }
                                                                        }
                                                                        //Get value of ExpirationDateForSerialLotNumber
                                                                        if (CreditMemoLineRet.ExpirationDateForSerialLotNumber != null)
                                                                        {
                                                                                string ExpDate = (string)CreditMemoLineRet.ServiceDate.GetValue();
                                                                        }
                                                                        //Get value of ServiceDate
                                                                        if (CreditMemoLineRet.ServiceDate != null)
                                                                        {
                                                                                DateTime ServiceDate6036 = (DateTime)CreditMemoLineRet.ServiceDate.GetValue();
                                                                        }
                                                                        if (CreditMemoLineRet.SalesTaxCodeRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.SalesTaxCodeRef.ListID != null)
                                                                                {
                                                                                string ListID6037 = (string)CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.SalesTaxCodeRef.FullName != null)
                                                                                {
                                                                                string FullName6038 = (string)CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        //Get value of Other1
                                                                        if (CreditMemoLineRet.Other1 != null)
                                                                        {
                                                                                string Other16039 = (string)CreditMemoLineRet.Other1.GetValue();
                                                                        }
                                                                        //Get value of Other2
                                                                        if (CreditMemoLineRet.Other2 != null)
                                                                        {
                                                                                string Other26040 = (string)CreditMemoLineRet.Other2.GetValue();
                                                                        }
                                                                        if (CreditMemoLineRet.CreditCardTxnInfo != null)
                                                                        {
                                                                                //Get value of CreditCardNumber
                                                                                string CreditCardNumber6041 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue();
                                                                                //Get value of ExpirationMonth
                                                                                int ExpirationMonth6042 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue();
                                                                                //Get value of ExpirationYear
                                                                                int ExpirationYear6043 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue();
                                                                                //Get value of NameOnCard
                                                                                string NameOnCard6044 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue();
                                                                                //Get value of CreditCardAddress
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress != null)
                                                                                {
                                                                                string CreditCardAddress6045 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue();
                                                                                }
                                                                                //Get value of CreditCardPostalCode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode != null)
                                                                                {
                                                                                string CreditCardPostalCode6046 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue();
                                                                                }
                                                                                //Get value of CommercialCardCode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode != null)
                                                                                {
                                                                                string CommercialCardCode6047 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue();
                                                                                }
                                                                                //Get value of TransactionMode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode != null)
                                                                                {
                                                                                ENTransactionMode TransactionMode6048 = (ENTransactionMode)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue();
                                                                                }
                                                                                //Get value of CreditCardTxnType
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType != null)
                                                                                {
                                                                                ENCreditCardTxnType CreditCardTxnType6049 = (ENCreditCardTxnType)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue();
                                                                                }
                                                                                //Get value of ResultCode
                                                                                int ResultCode6050 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue();
                                                                                //Get value of ResultMessage
                                                                                string ResultMessage6051 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue();
                                                                                //Get value of CreditCardTransID
                                                                                string CreditCardTransID6052 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue();
                                                                                //Get value of MerchantAccountNumber
                                                                                string MerchantAccountNumber6053 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue();
                                                                                //Get value of AuthorizationCode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode != null)
                                                                                {
                                                                                string AuthorizationCode6054 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue();
                                                                                }
                                                                                //Get value of AVSStreet
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet != null)
                                                                                {
                                                                                ENAVSStreet AVSStreet6055 = (ENAVSStreet)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue();
                                                                                }
                                                                                //Get value of AVSZip
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip != null)
                                                                                {
                                                                                ENAVSZip AVSZip6056 = (ENAVSZip)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue();
                                                                                }
                                                                                //Get value of CardSecurityCodeMatch
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch != null)
                                                                                {
                                                                                ENCardSecurityCodeMatch CardSecurityCodeMatch6057 = (ENCardSecurityCodeMatch)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue();
                                                                                }
                                                                                //Get value of ReconBatchID
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID != null)
                                                                                {
                                                                                string ReconBatchID6058 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue();
                                                                                }
                                                                                //Get value of PaymentGroupingCode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode != null)
                                                                                {
                                                                                int PaymentGroupingCode6059 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue();
                                                                                }
                                                                                //Get value of PaymentStatus
                                                                                ENPaymentStatus PaymentStatus6060 = (ENPaymentStatus)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue();
                                                                                //Get value of TxnAuthorizationTime
                                                                                DateTime TxnAuthorizationTime6061 = (DateTime)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue();
                                                                                //Get value of TxnAuthorizationStamp
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp != null)
                                                                                {
                                                                                int TxnAuthorizationStamp6062 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue();
                                                                                }
                                                                                //Get value of ClientTransID
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID != null)
                                                                                {
                                                                                string ClientTransID6063 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue();
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.DataExtRetList != null)
                                                                        {
                                                                                for (int i6064 = 0; i6064 < CreditMemoLineRet.DataExtRetList.Count; i6064++)
                                                                                {
                                                                                IDataExtRet DataExtRet = CreditMemoLineRet.DataExtRetList.GetAt(i6064);
                                                                                //Get value of OwnerID
                                                                                if (DataExtRet.OwnerID != null)
                                                                                {
                                                                                string OwnerID6065 = (string)DataExtRet.OwnerID.GetValue();
                                                                                }
                                                                                //Get value of DataExtName
                                                                                string DataExtName6066 = (string)DataExtRet.DataExtName.GetValue();
                                                                                //Get value of DataExtType
                                                                                ENDataExtType DataExtType6067 = (ENDataExtType)DataExtRet.DataExtType.GetValue();
                                                                                //Get value of DataExtValue
                                                                                string DataExtValue6068 = (string)DataExtRet.DataExtValue.GetValue();
                                                                                }
                                                                        }
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.DataExtRetList != null)
                                                        {
                                                                for (int i6069 = 0; i6069 < ORCreditMemoLineRet5949.CreditMemoLineGroupRet.DataExtRetList.Count; i6069++)
                                                                {
                                                                        IDataExtRet DataExtRet = ORCreditMemoLineRet5949.CreditMemoLineGroupRet.DataExtRetList.GetAt(i6069);
                                                                        //Get value of OwnerID
                                                                        if (DataExtRet.OwnerID != null)
                                                                        {
                                                                                string OwnerID6070 = (string)DataExtRet.OwnerID.GetValue();
                                                                        }
                                                                        //Get value of DataExtName
                                                                        string DataExtName6071 = (string)DataExtRet.DataExtName.GetValue();
                                                                        //Get value of DataExtType
                                                                        ENDataExtType DataExtType6072 = (ENDataExtType)DataExtRet.DataExtType.GetValue();
                                                                        //Get value of DataExtValue
                                                                        string DataExtValue6073 = (string)DataExtRet.DataExtValue.GetValue();
                                                                }
                                                        }
                                                }
                                        }
                                }
                        }
                        if (CreditMemoRet.DataExtRetList != null)
                        {
                                for (int i6074 = 0; i6074 < CreditMemoRet.DataExtRetList.Count; i6074++)
                                {
                                        IDataExtRet DataExtRet = CreditMemoRet.DataExtRetList.GetAt(i6074);
                                        //Get value of OwnerID
                                        if (DataExtRet.OwnerID != null)
                                        {
                                                string OwnerID6075 = (string)DataExtRet.OwnerID.GetValue();
                                        }
                                        //Get value of DataExtName
                                        string DataExtName6076 = (string)DataExtRet.DataExtName.GetValue();
                                        //Get value of DataExtType
                                        ENDataExtType DataExtType6077 = (ENDataExtType)DataExtRet.DataExtType.GetValue();
                                        //Get value of DataExtValue
                                        string DataExtValue6078 = (string)DataExtRet.DataExtValue.GetValue();
                                }
                        }
                }




        }
}