CreditMemoAdd

Adds a credit memo. A credit memo specifies an amount that you owe your customer for some reason, such as overpayment against an invoice, returned merchandise, or for some pre-payment. It reduces a customer’s outstanding balance. The CreditMemo doesn’t actually get applied until is referenced in a ReceivePayment transaction inside the SetCredit aggregate.
The CreditMemo should not be confused with a VendorCredit, which specifies an amount that a vendor owes you.
Using Credit Memos for Pre-Payments
Occasionally an application will need to record pre-payments for a job that is invoiced or paid for only when it is complete. One can create sales receipts for pre-payments using an item other charge named something like “Pre-payment”. If the customer will eventually be sent an invoice for the total job, create credit memos for that customer for the pre-payment amount on each sales receipt. If the customer will be paying for the final job when it is completed and will be issued a sales receipt, do not create the credit memos. The credit memos are only used for invoice transactions.
When the work order is complete add the invoice to QuickBooks and then apply the credit memos with a ReceivePaymentAdd request. The amount due on the invoice will be reduced properly and all of the transactions will be properly recorded in QuickBooks.
If a sales receipt will be issued at the end of the job, include pre-payment information in multiple lines or as a summary line. Use the description field to list the existing pre-payment sales receipt or receipts so all transactions can be tied together on the final sales receipt.

Request

Response

XMLOps

VB.NET

C#

Tag Type Max length Implementation Required

ICreditMemoAdd

Adds a credit memo. A credit memo specifies an amount that you owe your customer for some reason, such as overpayment against an invoice, returned merchandise, or for some pre-payment. It reduces a customer’s outstanding balance. The CreditMemo doesn’t actually get applied until is referenced in a ReceivePayment transaction inside the SetCredit aggregate. The CreditMemo should not be confused with a VendorCredit, which specifies an amount that a vendor owes you.Using Credit Memos for Pre-Payments Occasionally an application will need to record pre-payments for a job that is invoiced or paid for only when it is complete. One can create sales receipts for pre-payments using an item other charge named something like “Pre-payment”. If the customer will eventually be sent an invoice for the total job, create credit memos for that customer for the pre-payment amount on each sales receipt. If the customer will be paying for the final job when it is completed and will be issued a sales receipt, do not create the credit memos. The credit memos are only used for invoice transactions. When the work order is complete add the invoice to QuickBooks and then apply the credit memos with a ReceivePaymentAdd request. The amount due on the invoice will be reduced properly and all of the transactions will be properly recorded in QuickBooks. If a sales receipt will be issued at the end of the job, include pre-payment information in multiple lines or as a summary line. Use the description field to list the existing pre-payment sales receipt or receipts so all transactions can be tied together on the final sales receipt.
       

defMacro

Note that defMacro was introduced with SDK 2.0, so it only works with 2.0 and higher requests. You can use the defMacro attribute to assign a name to the TxnID or TxnListID that this aggregate will return. This way you can refer to the transaction by name in a later request. For example, if you were using the qbXML API and you defined an invoice add request with the name TxnID:RecvPmt1234, as shown below, then you could refer to that invoice by name in a later receive payment add request: … … …If you use macros with QBOE… There may be a bug in the QBOE implementation of this feature. If this feature is not working for you in QBOE, try stripping the prefix “TxnID:” from the name of the useMacro. For example, defMacro=”TxnID:RecvPmt1234” and useMacro=”RecvPmt1234”
IQBStringType   2.0  

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      

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  

ExternalGUID

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

ORCreditMemoLineAddList

IORCreditMemoLineAddList     Y

(List

of IORCreditMemoLineAdd Objects)
       

CreditMemoLineAdd

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

defMacro

Note that defMacro was introduced with SDK 2.0, so it only works with 2.0 and higher requests. You can use the defMacro attribute to assign a name to the TxnID or TxnListID that this aggregate will return. This way you can refer to the transaction by name in a later request. For example, if you were using the qbXML API and you defined an invoice add request with the name TxnID:RecvPmt1234, as shown below, then you could refer to that invoice by name in a later receive payment add request: … … …If you use macros with QBOE… There may be a bug in the QBOE implementation of this feature. If this feature is not working for you in QBOE, try stripping the prefix “TxnID:” from the name of the useMacro. For example, defMacro=”TxnID:RecvPmt1234” and useMacro=”RecvPmt1234”
IQBStringType   2.0  

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 itemsFor 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

QuantityFor 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  

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   2.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   2.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 159 chars 2.0  

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  

DataExtList

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

(List

of IDataExt 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     Y

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

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

CreditMemoLineGroupAdd

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

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    

Quantity

QuantityFor 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  

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  

DataExtList

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

(List

of IDataExt 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     Y

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

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

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

Adds a credit memo. A credit memo specifies an amount that you owe your customer for some reason, such as overpayment against an invoice, returned merchandise, or for some pre-payment. It reduces a customer’s outstanding balance. The CreditMemo doesn’t actually get applied until is referenced in a ReceivePayment transaction inside the SetCredit aggregate. The CreditMemo should not be confused with a VendorCredit, which specifies an amount that a vendor owes you.Using Credit Memos for Pre-Payments Occasionally an application will need to record pre-payments for a job that is invoiced or paid for only when it is complete. One can create sales receipts for pre-payments using an item other charge named something like “Pre-payment”. If the customer will eventually be sent an invoice for the total job, create credit memos for that customer for the pre-payment amount on each sales receipt. If the customer will be paying for the final job when it is completed and will be issued a sales receipt, do not create the credit memos. The credit memos are only used for invoice transactions. When the work order is complete add the invoice to QuickBooks and then apply the credit memos with a ReceivePaymentAdd request. The amount due on the invoice will be reduced properly and all of the transactions will be properly recorded in QuickBooks. If a sales receipt will be issued at the end of the job, include pre-payment information in multiple lines or as a summary line. Use the description field to list the existing pre-payment sales receipt or receipts so all transactions can be tied together on the final sales receipt.
       

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 itemsFor 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

QuantityFor 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

QuantityFor 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 itemsFor 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

QuantityFor 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
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="16.0"?>
<QBXML>
        <QBXMLMsgsRq onError="stopOnError">
                <CreditMemoAddRq>
                        <CreditMemoAdd defMacro="MACROTYPE"> <!-- required -->
                                <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> <!-- 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 -->
                                <ExternalGUID >GUIDTYPE</ExternalGUID> <!-- optional -->
                                <!-- BEGIN OR -->
                                        <CreditMemoLineAdd defMacro="MACROTYPE"> <!-- optional -->
                                                <ItemRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </ItemRef>
                                                <Desc >STRTYPE</Desc> <!-- optional -->
                                                <Quantity >QUANTYPE</Quantity> <!-- optional -->
                                                <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional -->
                                                <!-- 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 -->
                                                <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>
                                                <DataExt> <!-- optional, may repeat -->
                                                        <OwnerID >GUIDTYPE</OwnerID> <!-- required -->
                                                        <DataExtName >STRTYPE</DataExtName> <!-- required -->
                                                        <DataExtValue >STRTYPE</DataExtValue> <!-- required -->
                                                </DataExt>
                                        </CreditMemoLineAdd>
                                <!-- OR -->
                                        <CreditMemoLineGroupAdd> <!-- optional -->
                                                <ItemGroupRef> <!-- required -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </ItemGroupRef>
                                                <Quantity >QUANTYPE</Quantity> <!-- optional -->
                                                <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional -->
                                                <InventorySiteRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </InventorySiteRef>
                                                <InventorySiteLocationRef> <!-- optional -->
                                                        <ListID >IDTYPE</ListID> <!-- optional -->
                                                        <FullName >STRTYPE</FullName> <!-- optional -->
                                                </InventorySiteLocationRef>
                                                <DataExt> <!-- optional, may repeat -->
                                                        <OwnerID >GUIDTYPE</OwnerID> <!-- required -->
                                                        <DataExtName >STRTYPE</DataExtName> <!-- required -->
                                                        <DataExtValue >STRTYPE</DataExtValue> <!-- required -->
                                                </DataExt>
                                        </CreditMemoLineGroupAdd>
                                <!-- END OR -->
                        </CreditMemoAdd>
                        <IncludeRetElement >STRTYPE</IncludeRetElement> <!-- optional, may repeat -->
                </CreditMemoAddRq>

                <CreditMemoAddRs 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>
                </CreditMemoAddRs>
        </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
'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  DoCreditMemoAdd()
                        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

                                BuildCreditMemoAddRq(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

                                WalkCreditMemoAddRs(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 BuildCreditMemoAddRq(requestMsgSet as IMsgSetRequest)
                        Dim CreditMemoAddRq as ICreditMemoAdd
                        CreditMemoAddRq= requestMsgSet.AppendCreditMemoAddRq()
                        'Set field value for ListID
                        CreditMemoAddRq.CustomerRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.CustomerRef.FullName.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoAddRq.ClassRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.ClassRef.FullName.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoAddRq.ARAccountRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.ARAccountRef.FullName.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoAddRq.TemplateRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.TemplateRef.FullName.SetValue("ab")
                        'Set field value for TxnDate
                        CreditMemoAddRq.TxnDate.SetValue(DateTime.Parse("12/15/2007"))
                        'Set field value for RefNumber
                        CreditMemoAddRq.RefNumber.SetValue("ab")
                        'Set field value for Addr1
                        CreditMemoAddRq.BillAddress.Addr1.SetValue("ab")
                        'Set field value for Addr2
                        CreditMemoAddRq.BillAddress.Addr2.SetValue("ab")
                        'Set field value for Addr3
                        CreditMemoAddRq.BillAddress.Addr3.SetValue("ab")
                        'Set field value for Addr4
                        CreditMemoAddRq.BillAddress.Addr4.SetValue("ab")
                        'Set field value for Addr5
                        CreditMemoAddRq.BillAddress.Addr5.SetValue("ab")
                        'Set field value for City
                        CreditMemoAddRq.BillAddress.City.SetValue("ab")
                        'Set field value for State
                        CreditMemoAddRq.BillAddress.State.SetValue("ab")
                        'Set field value for PostalCode
                        CreditMemoAddRq.BillAddress.PostalCode.SetValue("ab")
                        'Set field value for Country
                        CreditMemoAddRq.BillAddress.Country.SetValue("ab")
                        'Set field value for Note
                        CreditMemoAddRq.BillAddress.Note.SetValue("ab")
                        'Set field value for Addr1
                        CreditMemoAddRq.ShipAddress.Addr1.SetValue("ab")
                        'Set field value for Addr2
                        CreditMemoAddRq.ShipAddress.Addr2.SetValue("ab")
                        'Set field value for Addr3
                        CreditMemoAddRq.ShipAddress.Addr3.SetValue("ab")
                        'Set field value for Addr4
                        CreditMemoAddRq.ShipAddress.Addr4.SetValue("ab")
                        'Set field value for Addr5
                        CreditMemoAddRq.ShipAddress.Addr5.SetValue("ab")
                        'Set field value for City
                        CreditMemoAddRq.ShipAddress.City.SetValue("ab")
                        'Set field value for State
                        CreditMemoAddRq.ShipAddress.State.SetValue("ab")
                        'Set field value for PostalCode
                        CreditMemoAddRq.ShipAddress.PostalCode.SetValue("ab")
                        'Set field value for Country
                        CreditMemoAddRq.ShipAddress.Country.SetValue("ab")
                        'Set field value for Note
                        CreditMemoAddRq.ShipAddress.Note.SetValue("ab")
                        'Set field value for IsPending
                        CreditMemoAddRq.IsPending.SetValue(True)
                        'Set field value for PONumber
                        CreditMemoAddRq.PONumber.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoAddRq.TermsRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.TermsRef.FullName.SetValue("ab")
                        'Set field value for DueDate
                        CreditMemoAddRq.DueDate.SetValue(DateTime.Parse("12/15/2007"))
                        'Set field value for ListID
                        CreditMemoAddRq.SalesRepRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.SalesRepRef.FullName.SetValue("ab")
                        'Set field value for FOB
                        CreditMemoAddRq.FOB.SetValue("ab")
                        'Set field value for ShipDate
                        CreditMemoAddRq.ShipDate.SetValue(DateTime.Parse("12/15/2007"))
                        'Set field value for ListID
                        CreditMemoAddRq.ShipMethodRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.ShipMethodRef.FullName.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoAddRq.ItemSalesTaxRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.ItemSalesTaxRef.FullName.SetValue("ab")
                        'Set field value for Memo
                        CreditMemoAddRq.Memo.SetValue("ab")
                        'Set field value for ListID
                        CreditMemoAddRq.CustomerMsgRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.CustomerMsgRef.FullName.SetValue("ab")
                        'Set field value for IsToBePrinted
                        CreditMemoAddRq.IsToBePrinted.SetValue(True)
                        'Set field value for IsToBeEmailed
                        CreditMemoAddRq.IsToBeEmailed.SetValue(True)
                        'Set field value for IsTaxIncluded
                        CreditMemoAddRq.IsTaxIncluded.SetValue(True)
                        'Set field value for ListID
                        CreditMemoAddRq.CustomerSalesTaxCodeRef.ListID.SetValue("200000-1011023419")
                        'Set field value for FullName
                        CreditMemoAddRq.CustomerSalesTaxCodeRef.FullName.SetValue("ab")
                        'Set field value for Other
                        CreditMemoAddRq.Other.SetValue("ab")
                        'Set field value for ExchangeRate
                        CreditMemoAddRq.ExchangeRate.SetValue("IQBFloatType")
                        'Set field value for ExternalGUID
                        CreditMemoAddRq.ExternalGUID.SetValue(System.Guid.NewGuid().ToString())
                        Dim ORCreditMemoLineAddListElement5636 as IORCreditMemoLineAdd
                        ORCreditMemoLineAddListElement5636 =CreditMemoAddRq.ORCreditMemoLineAddList.Append()
                        Dim ORCreditMemoLineAddListElementType5637 as String
                        ORCreditMemoLineAddListElementType5637 = "CreditMemoLineAdd"
                        if (ORCreditMemoLineAddListElementType5637 == "CreditMemoLineAdd") then
                                'Set field value for ListID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ItemRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ItemRef.FullName.SetValue("ab")
                                'Set field value for Desc
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.Desc.SetValue("ab")
                                'Set field value for Quantity
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.Quantity.SetValue(2)
                                'Set field value for UnitOfMeasure
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.UnitOfMeasure.SetValue("ab")
                                Dim ORRatePriceLevelElementType5638 as String
                                ORRatePriceLevelElementType5638 = "Rate"
                                if (ORRatePriceLevelElementType5638 == "Rate") then
                                        'Set field value for Rate
                                        ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ORRatePriceLevel.Rate.SetValue(15.65)
                                End If
                                if (ORRatePriceLevelElementType5638 == "RatePercent") then
                                        'Set field value for RatePercent
                                        ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ORRatePriceLevel.RatePercent.SetValue(20.00)
                                End If
                                if (ORRatePriceLevelElementType5638 == "PriceLevelRef") then
                                        'Set field value for ListID
                                        ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419")
                                        'Set field value for FullName
                                        ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab")
                                End If
                                'Set field value for ListID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ClassRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ClassRef.FullName.SetValue("ab")
                                'Set field value for Amount
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.Amount.SetValue(10.01)
                                'Set field value for ListID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.InventorySiteRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.InventorySiteRef.FullName.SetValue("ab")
                                'Set field value for ListID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.InventorySiteLocationRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.InventorySiteLocationRef.FullName.SetValue("ab")
                                Dim ORSerialLotNumberElementType5639 as String
                                ORSerialLotNumberElementType5639 = "SerialNumber"
                                if (ORSerialLotNumberElementType5639 == "SerialNumber") then
                                        'Set field value for SerialNumber
                                        ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ORSerialLotNumber.SerialNumber.SetValue("ab")
                                End If
                                if (ORSerialLotNumberElementType5639 == "LotNumber") then
                                        'Set field value for LotNumber
                                        ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ORSerialLotNumber.LotNumber.SetValue("ab")
                                End If
                                'Set field value for ServiceDate
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.ServiceDate.SetValue(DateTime.Parse("12/15/2007"))
                                'Set field value for ListID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.SalesTaxCodeRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.SalesTaxCodeRef.FullName.SetValue("ab")
                                'Set field value for ListID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.OverrideItemAccountRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.OverrideItemAccountRef.FullName.SetValue("ab")
                                'Set field value for Other1
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.Other1.SetValue("ab")
                                'Set field value for Other2
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.Other2.SetValue("ab")
                                'Set field value for CreditCardNumber
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.SetValue("ab")
                                'Set field value for ExpirationMonth
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.SetValue(6)
                                'Set field value for ExpirationYear
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.SetValue(6)
                                'Set field value for NameOnCard
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.SetValue("ab")
                                'Set field value for CreditCardAddress
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.SetValue("ab")
                                'Set field value for CreditCardPostalCode
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.SetValue("ab")
                                'Set field value for CommercialCardCode
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.SetValue("ab")
                                'Set field value for TransactionMode
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.SetValue(ENTransactionMode.tmCardNotPresent [DEFAULT])
                                'Set field value for CreditCardTxnType
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.SetValue(ENCreditCardTxnType.ccttAuthorization)
                                'Set field value for ResultCode
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.SetValue(6)
                                'Set field value for ResultMessage
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.SetValue("ab")
                                'Set field value for CreditCardTransID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.SetValue("ab")
                                'Set field value for MerchantAccountNumber
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.SetValue("ab")
                                'Set field value for AuthorizationCode
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.SetValue("ab")
                                'Set field value for AVSStreet
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.SetValue(ENAVSStreet.avssPass)
                                'Set field value for AVSZip
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.SetValue(ENAVSZip.avszPass)
                                'Set field value for CardSecurityCodeMatch
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.SetValue(ENCardSecurityCodeMatch.cscmPass)
                                'Set field value for ReconBatchID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.SetValue("ab")
                                'Set field value for PaymentGroupingCode
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.SetValue(6)
                                'Set field value for PaymentStatus
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.SetValue(ENPaymentStatus.pssUnknown)
                                'Set field value for TxnAuthorizationTime
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.SetValue(DateTime.Parse("12/15/2007 12:15:12"),false)
                                'Set field value for TxnAuthorizationStamp
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.SetValue(6)
                                'Set field value for ClientTransID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.SetValue("ab")
                                Dim DataExt5640 as IDataExt
                                DataExt5640=ORCreditMemoLineAddListElement5636.CreditMemoLineAdd.DataExtList.Append()
                                'Set field value for OwnerID
                                DataExt5640.OwnerID.SetValue(System.Guid.NewGuid().ToString())
                                'Set field value for DataExtName
                                DataExt5640.DataExtName.SetValue("ab")
                                'Set field value for DataExtValue
                                DataExt5640.DataExtValue.SetValue("ab")
                        End If
                        if (ORCreditMemoLineAddListElementType5637 == "CreditMemoLineGroupAdd") then
                                'Set field value for ListID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineGroupAdd.ItemGroupRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineAddListElement5636.CreditMemoLineGroupAdd.ItemGroupRef.FullName.SetValue("ab")
                                'Set field value for Quantity
                                ORCreditMemoLineAddListElement5636.CreditMemoLineGroupAdd.Quantity.SetValue(2)
                                'Set field value for UnitOfMeasure
                                ORCreditMemoLineAddListElement5636.CreditMemoLineGroupAdd.UnitOfMeasure.SetValue("ab")
                                'Set field value for ListID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineGroupAdd.InventorySiteRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineAddListElement5636.CreditMemoLineGroupAdd.InventorySiteRef.FullName.SetValue("ab")
                                'Set field value for ListID
                                ORCreditMemoLineAddListElement5636.CreditMemoLineGroupAdd.InventorySiteLocationRef.ListID.SetValue("200000-1011023419")
                                'Set field value for FullName
                                ORCreditMemoLineAddListElement5636.CreditMemoLineGroupAdd.InventorySiteLocationRef.FullName.SetValue("ab")
                                Dim DataExt5641 as IDataExt
                                DataExt5641=ORCreditMemoLineAddListElement5636.CreditMemoLineGroupAdd.DataExtList.Append()
                                'Set field value for OwnerID
                                DataExt5641.OwnerID.SetValue(System.Guid.NewGuid().ToString())
                                'Set field value for DataExtName
                                DataExt5641.DataExtName.SetValue("ab")
                                'Set field value for DataExtValue
                                DataExt5641.DataExtValue.SetValue("ab")
                        End If
                        'Set field value for IncludeRetElementList
                        'May create more than one of these if needed
                        CreditMemoAddRq.IncludeRetElementList.Add("ab")
                End Sub




                Public Sub WalkCreditMemoAddRs( 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.rtCreditMemoAddRs) 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 TxnID5642 as String
                        TxnID5642 = CreditMemoRet.TxnID.GetValue()
                        'Get value of TimeCreated
                        Dim TimeCreated5643 as DateTime
                        TimeCreated5643 = CreditMemoRet.TimeCreated.GetValue()
                        'Get value of TimeModified
                        Dim TimeModified5644 as DateTime
                        TimeModified5644 = CreditMemoRet.TimeModified.GetValue()
                        'Get value of EditSequence
                        Dim EditSequence5645 as String
                        EditSequence5645 = CreditMemoRet.EditSequence.GetValue()
                        'Get value of TxnNumber
                        if ( not CreditMemoRet.TxnNumber is nothing) then
                                Dim TxnNumber5646 as Integer
                                TxnNumber5646 = CreditMemoRet.TxnNumber.GetValue()
                        End If
                        'Get value of ListID
                        if ( not CreditMemoRet.CustomerRef.ListID is nothing) then
                                Dim ListID5647 as String
                                ListID5647 = CreditMemoRet.CustomerRef.ListID.GetValue()
                        End If
                        'Get value of FullName
                        if ( not CreditMemoRet.CustomerRef.FullName is nothing) then
                                Dim FullName5648 as String
                                FullName5648 = 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 ListID5649 as String
                                        ListID5649 = CreditMemoRet.ClassRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.ClassRef.FullName is nothing) then
                                        Dim FullName5650 as String
                                        FullName5650 = 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 ListID5651 as String
                                        ListID5651 = CreditMemoRet.ARAccountRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.ARAccountRef.FullName is nothing) then
                                        Dim FullName5652 as String
                                        FullName5652 = 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 ListID5653 as String
                                        ListID5653 = CreditMemoRet.TemplateRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.TemplateRef.FullName is nothing) then
                                        Dim FullName5654 as String
                                        FullName5654 = CreditMemoRet.TemplateRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of TxnDate
                        Dim TxnDate5655 as DateTime
                        TxnDate5655 = CreditMemoRet.TxnDate.GetValue()
                        'Get value of RefNumber
                        if ( not CreditMemoRet.RefNumber is nothing) then
                                Dim RefNumber5656 as String
                                RefNumber5656 = 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 Addr15657 as String
                                        Addr15657 = CreditMemoRet.BillAddress.Addr1.GetValue()
                                End If
                                'Get value of Addr2
                                if ( not CreditMemoRet.BillAddress.Addr2 is nothing) then
                                        Dim Addr25658 as String
                                        Addr25658 = CreditMemoRet.BillAddress.Addr2.GetValue()
                                End If
                                'Get value of Addr3
                                if ( not CreditMemoRet.BillAddress.Addr3 is nothing) then
                                        Dim Addr35659 as String
                                        Addr35659 = CreditMemoRet.BillAddress.Addr3.GetValue()
                                End If
                                'Get value of Addr4
                                if ( not CreditMemoRet.BillAddress.Addr4 is nothing) then
                                        Dim Addr45660 as String
                                        Addr45660 = CreditMemoRet.BillAddress.Addr4.GetValue()
                                End If
                                'Get value of Addr5
                                if ( not CreditMemoRet.BillAddress.Addr5 is nothing) then
                                        Dim Addr55661 as String
                                        Addr55661 = CreditMemoRet.BillAddress.Addr5.GetValue()
                                End If
                                'Get value of City
                                if ( not CreditMemoRet.BillAddress.City is nothing) then
                                        Dim City5662 as String
                                        City5662 = CreditMemoRet.BillAddress.City.GetValue()
                                End If
                                'Get value of State
                                if ( not CreditMemoRet.BillAddress.State is nothing) then
                                        Dim State5663 as String
                                        State5663 = CreditMemoRet.BillAddress.State.GetValue()
                                End If
                                'Get value of PostalCode
                                if ( not CreditMemoRet.BillAddress.PostalCode is nothing) then
                                        Dim PostalCode5664 as String
                                        PostalCode5664 = CreditMemoRet.BillAddress.PostalCode.GetValue()
                                End If
                                'Get value of Country
                                if ( not CreditMemoRet.BillAddress.Country is nothing) then
                                        Dim Country5665 as String
                                        Country5665 = CreditMemoRet.BillAddress.Country.GetValue()
                                End If
                                'Get value of Note
                                if ( not CreditMemoRet.BillAddress.Note is nothing) then
                                        Dim Note5666 as String
                                        Note5666 = 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 Addr15667 as String
                                        Addr15667 = CreditMemoRet.BillAddressBlock.Addr1.GetValue()
                                End If
                                'Get value of Addr2
                                if ( not CreditMemoRet.BillAddressBlock.Addr2 is nothing) then
                                        Dim Addr25668 as String
                                        Addr25668 = CreditMemoRet.BillAddressBlock.Addr2.GetValue()
                                End If
                                'Get value of Addr3
                                if ( not CreditMemoRet.BillAddressBlock.Addr3 is nothing) then
                                        Dim Addr35669 as String
                                        Addr35669 = CreditMemoRet.BillAddressBlock.Addr3.GetValue()
                                End If
                                'Get value of Addr4
                                if ( not CreditMemoRet.BillAddressBlock.Addr4 is nothing) then
                                        Dim Addr45670 as String
                                        Addr45670 = CreditMemoRet.BillAddressBlock.Addr4.GetValue()
                                End If
                                'Get value of Addr5
                                if ( not CreditMemoRet.BillAddressBlock.Addr5 is nothing) then
                                        Dim Addr55671 as String
                                        Addr55671 = 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 Addr15672 as String
                                        Addr15672 = CreditMemoRet.ShipAddress.Addr1.GetValue()
                                End If
                                'Get value of Addr2
                                if ( not CreditMemoRet.ShipAddress.Addr2 is nothing) then
                                        Dim Addr25673 as String
                                        Addr25673 = CreditMemoRet.ShipAddress.Addr2.GetValue()
                                End If
                                'Get value of Addr3
                                if ( not CreditMemoRet.ShipAddress.Addr3 is nothing) then
                                        Dim Addr35674 as String
                                        Addr35674 = CreditMemoRet.ShipAddress.Addr3.GetValue()
                                End If
                                'Get value of Addr4
                                if ( not CreditMemoRet.ShipAddress.Addr4 is nothing) then
                                        Dim Addr45675 as String
                                        Addr45675 = CreditMemoRet.ShipAddress.Addr4.GetValue()
                                End If
                                'Get value of Addr5
                                if ( not CreditMemoRet.ShipAddress.Addr5 is nothing) then
                                        Dim Addr55676 as String
                                        Addr55676 = CreditMemoRet.ShipAddress.Addr5.GetValue()
                                End If
                                'Get value of City
                                if ( not CreditMemoRet.ShipAddress.City is nothing) then
                                        Dim City5677 as String
                                        City5677 = CreditMemoRet.ShipAddress.City.GetValue()
                                End If
                                'Get value of State
                                if ( not CreditMemoRet.ShipAddress.State is nothing) then
                                        Dim State5678 as String
                                        State5678 = CreditMemoRet.ShipAddress.State.GetValue()
                                End If
                                'Get value of PostalCode
                                if ( not CreditMemoRet.ShipAddress.PostalCode is nothing) then
                                        Dim PostalCode5679 as String
                                        PostalCode5679 = CreditMemoRet.ShipAddress.PostalCode.GetValue()
                                End If
                                'Get value of Country
                                if ( not CreditMemoRet.ShipAddress.Country is nothing) then
                                        Dim Country5680 as String
                                        Country5680 = CreditMemoRet.ShipAddress.Country.GetValue()
                                End If
                                'Get value of Note
                                if ( not CreditMemoRet.ShipAddress.Note is nothing) then
                                        Dim Note5681 as String
                                        Note5681 = 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 Addr15682 as String
                                        Addr15682 = CreditMemoRet.ShipAddressBlock.Addr1.GetValue()
                                End If
                                'Get value of Addr2
                                if ( not CreditMemoRet.ShipAddressBlock.Addr2 is nothing) then
                                        Dim Addr25683 as String
                                        Addr25683 = CreditMemoRet.ShipAddressBlock.Addr2.GetValue()
                                End If
                                'Get value of Addr3
                                if ( not CreditMemoRet.ShipAddressBlock.Addr3 is nothing) then
                                        Dim Addr35684 as String
                                        Addr35684 = CreditMemoRet.ShipAddressBlock.Addr3.GetValue()
                                End If
                                'Get value of Addr4
                                if ( not CreditMemoRet.ShipAddressBlock.Addr4 is nothing) then
                                        Dim Addr45685 as String
                                        Addr45685 = CreditMemoRet.ShipAddressBlock.Addr4.GetValue()
                                End If
                                'Get value of Addr5
                                if ( not CreditMemoRet.ShipAddressBlock.Addr5 is nothing) then
                                        Dim Addr55686 as String
                                        Addr55686 = CreditMemoRet.ShipAddressBlock.Addr5.GetValue()
                                End If
                        End If
                        'Get value of IsPending
                        if ( not CreditMemoRet.IsPending is nothing) then
                                Dim IsPending5687 as Boolean
                                IsPending5687 = CreditMemoRet.IsPending.GetValue()
                        End If
                        'Get value of PONumber
                        if ( not CreditMemoRet.PONumber is nothing) then
                                Dim PONumber5688 as String
                                PONumber5688 = 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 ListID5689 as String
                                        ListID5689 = CreditMemoRet.TermsRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.TermsRef.FullName is nothing) then
                                        Dim FullName5690 as String
                                        FullName5690 = CreditMemoRet.TermsRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of DueDate
                        if ( not CreditMemoRet.DueDate is nothing) then
                                Dim DueDate5691 as DateTime
                                DueDate5691 = 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 ListID5692 as String
                                        ListID5692 = CreditMemoRet.SalesRepRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.SalesRepRef.FullName is nothing) then
                                        Dim FullName5693 as String
                                        FullName5693 = CreditMemoRet.SalesRepRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of FOB
                        if ( not CreditMemoRet.FOB is nothing) then
                                Dim FOB5694 as String
                                FOB5694 = CreditMemoRet.FOB.GetValue()
                        End If
                        'Get value of ShipDate
                        if ( not CreditMemoRet.ShipDate is nothing) then
                                Dim ShipDate5695 as DateTime
                                ShipDate5695 = 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 ListID5696 as String
                                        ListID5696 = CreditMemoRet.ShipMethodRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.ShipMethodRef.FullName is nothing) then
                                        Dim FullName5697 as String
                                        FullName5697 = CreditMemoRet.ShipMethodRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of Subtotal
                        if ( not CreditMemoRet.Subtotal is nothing) then
                                Dim Subtotal5698 as Double
                                Subtotal5698 = 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 ListID5699 as String
                                        ListID5699 = CreditMemoRet.ItemSalesTaxRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.ItemSalesTaxRef.FullName is nothing) then
                                        Dim FullName5700 as String
                                        FullName5700 = CreditMemoRet.ItemSalesTaxRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of SalesTaxPercentage
                        if ( not CreditMemoRet.SalesTaxPercentage is nothing) then
                                Dim SalesTaxPercentage5701 as Double
                                SalesTaxPercentage5701 = CreditMemoRet.SalesTaxPercentage.GetValue()
                        End If
                        'Get value of SalesTaxTotal
                        if ( not CreditMemoRet.SalesTaxTotal is nothing) then
                                Dim SalesTaxTotal5702 as Double
                                SalesTaxTotal5702 = CreditMemoRet.SalesTaxTotal.GetValue()
                        End If
                        'Get value of TotalAmount
                        if ( not CreditMemoRet.TotalAmount is nothing) then
                                Dim TotalAmount5703 as Double
                                TotalAmount5703 = CreditMemoRet.TotalAmount.GetValue()
                        End If
                        'Get value of CreditRemaining
                        if ( not CreditMemoRet.CreditRemaining is nothing) then
                                Dim CreditRemaining5704 as Double
                                CreditRemaining5704 = 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 ListID5705 as String
                                        ListID5705 = CreditMemoRet.CurrencyRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.CurrencyRef.FullName is nothing) then
                                        Dim FullName5706 as String
                                        FullName5706 = CreditMemoRet.CurrencyRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of ExchangeRate
                        if ( not CreditMemoRet.ExchangeRate is nothing) then
                                Dim ExchangeRate5707 as IQBFloatType
                                ExchangeRate5707 = CreditMemoRet.ExchangeRate.GetValue()
                        End If
                        'Get value of CreditRemainingInHomeCurrency
                        if ( not CreditMemoRet.CreditRemainingInHomeCurrency is nothing) then
                                Dim CreditRemainingInHomeCurrency5708 as Double
                                CreditRemainingInHomeCurrency5708 = CreditMemoRet.CreditRemainingInHomeCurrency.GetValue()
                        End If
                        'Get value of Memo
                        if ( not CreditMemoRet.Memo is nothing) then
                                Dim Memo5709 as String
                                Memo5709 = 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 ListID5710 as String
                                        ListID5710 = CreditMemoRet.CustomerMsgRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.CustomerMsgRef.FullName is nothing) then
                                        Dim FullName5711 as String
                                        FullName5711 = CreditMemoRet.CustomerMsgRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of IsToBePrinted
                        if ( not CreditMemoRet.IsToBePrinted is nothing) then
                                Dim IsToBePrinted5712 as Boolean
                                IsToBePrinted5712 = CreditMemoRet.IsToBePrinted.GetValue()
                        End If
                        'Get value of IsToBeEmailed
                        if ( not CreditMemoRet.IsToBeEmailed is nothing) then
                                Dim IsToBeEmailed5713 as Boolean
                                IsToBeEmailed5713 = CreditMemoRet.IsToBeEmailed.GetValue()
                        End If
                        'Get value of IsTaxIncluded
                        if ( not CreditMemoRet.IsTaxIncluded is nothing) then
                                Dim IsTaxIncluded5714 as Boolean
                                IsTaxIncluded5714 = 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 ListID5715 as String
                                        ListID5715 = CreditMemoRet.CustomerSalesTaxCodeRef.ListID.GetValue()
                                End If
                                'Get value of FullName
                                if ( not CreditMemoRet.CustomerSalesTaxCodeRef.FullName is nothing) then
                                        Dim FullName5716 as String
                                        FullName5716 = CreditMemoRet.CustomerSalesTaxCodeRef.FullName.GetValue()
                                End If
                        End If
                        'Get value of Other
                        if ( not CreditMemoRet.Other is nothing) then
                                Dim Other5717 as String
                                Other5717 = CreditMemoRet.Other.GetValue()
                        End If
                        'Get value of ExternalGUID
                        if ( not CreditMemoRet.ExternalGUID is nothing) then
                                Dim ExternalGUID5718 as String
                                ExternalGUID5718 = CreditMemoRet.ExternalGUID.GetValue()
                        End If
                        if (not CreditMemoRet.LinkedTxnList is nothing)
                                Dim i5719 as Integer
                                for i5719 = 0  to CreditMemoRet.LinkedTxnList.Count - 1
                                        Dim LinkedTxn as ILinkedTxn
                                        LinkedTxn = CreditMemoRet.LinkedTxnList.GetAt(i5719)
                                        'Get value of TxnID
                                        Dim TxnID5720 as String
                                        TxnID5720 = LinkedTxnTxnID.GetValue()
                                        'Get value of TxnType
                                        Dim TxnType5721 as ENTxnType
                                        TxnType5721 = LinkedTxnTxnType.GetValue()
                                        'Get value of TxnDate
                                        Dim TxnDate5722 as DateTime
                                        TxnDate5722 = LinkedTxnTxnDate.GetValue()
                                        'Get value of RefNumber
                                        if ( not LinkedTxnRefNumber is nothing) then
                                                Dim RefNumber5723 as String
                                                RefNumber5723 = LinkedTxnRefNumber.GetValue()
                                        End If
                                        'Get value of LinkType
                                        if ( not LinkedTxnLinkType is nothing) then
                                                Dim LinkType5724 as ENLinkType
                                                LinkType5724 = LinkedTxnLinkType.GetValue()
                                        End If
                                        'Get value of Amount
                                        Dim Amount5725 as Double
                                        Amount5725 = LinkedTxnAmount.GetValue()
                                Next i5719
                        End If
                        if (not CreditMemoRet.ORCreditMemoLineRetList is nothing) then
                                Dim i5726 as Integer
                                for i5726 = 0 to CreditMemoRet.ORCreditMemoLineRetList.Count - 1
                                        Dim ORCreditMemoLineRet5727 as IORCreditMemoLineRet
                                        ORCreditMemoLineRet5727 = CreditMemoRet.ORCreditMemoLineRetList.GetAt(i5726)
                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet is nothing) then
                                                if (not ORCreditMemoLineRet5727.CreditMemoLineRet. is nothing) then
                                                        'Get value of TxnLineID
                                                        Dim TxnLineID5728 as String
                                                        TxnLineID5728 = ORCreditMemoLineRet5727.CreditMemoLineRet.TxnLineID.GetValue()
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.ItemRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ItemRef.ListID is nothing) then
                                                                        Dim ListID5729 as String
                                                                        ListID5729 = ORCreditMemoLineRet5727.CreditMemoLineRet.ItemRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ItemRef.FullName is nothing) then
                                                                        Dim FullName5730 as String
                                                                        FullName5730 = ORCreditMemoLineRet5727.CreditMemoLineRet.ItemRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        'Get value of Desc
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.Desc is nothing) then
                                                                Dim Desc5731 as String
                                                                Desc5731 = ORCreditMemoLineRet5727.CreditMemoLineRet.Desc.GetValue()
                                                        End If
                                                        'Get value of Quantity
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.Quantity is nothing) then
                                                                Dim Quantity5732 as Integer
                                                                Quantity5732 = ORCreditMemoLineRet5727.CreditMemoLineRet.Quantity.GetValue()
                                                        End If
                                                        'Get value of UnitOfMeasure
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.UnitOfMeasure is nothing) then
                                                                Dim UnitOfMeasure5733 as String
                                                                UnitOfMeasure5733 = ORCreditMemoLineRet5727.CreditMemoLineRet.UnitOfMeasure.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.OverrideUOMSetRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.OverrideUOMSetRef.ListID is nothing) then
                                                                        Dim ListID5734 as String
                                                                        ListID5734 = ORCreditMemoLineRet5727.CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.OverrideUOMSetRef.FullName is nothing) then
                                                                        Dim FullName5735 as String
                                                                        FullName5735 = ORCreditMemoLineRet5727.CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.ORRate is nothing) then
                                                                if (not ORCreditMemoLineRet5727.CreditMemoLineRet.ORRate.Rate is nothing) then
                                                                        'Get value of Rate
                                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ORRate.Rate is nothing) then
                                                                                Dim Rate5737 as Double
                                                                                Rate5737 = ORCreditMemoLineRet5727.CreditMemoLineRet.ORRate.Rate.GetValue()
                                                                        End If
                                                                End If
                                                                if (not ORCreditMemoLineRet5727.CreditMemoLineRet.ORRate.RatePercent is nothing) then
                                                                        'Get value of RatePercent
                                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ORRate.RatePercent is nothing) then
                                                                                Dim RatePercent5738 as Double
                                                                                RatePercent5738 = ORCreditMemoLineRet5727.CreditMemoLineRet.ORRate.RatePercent.GetValue()
                                                                        End If
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.ClassRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ClassRef.ListID is nothing) then
                                                                        Dim ListID5739 as String
                                                                        ListID5739 = ORCreditMemoLineRet5727.CreditMemoLineRet.ClassRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ClassRef.FullName is nothing) then
                                                                        Dim FullName5740 as String
                                                                        FullName5740 = ORCreditMemoLineRet5727.CreditMemoLineRet.ClassRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        'Get value of Amount
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.Amount is nothing) then
                                                                Dim Amount5741 as Double
                                                                Amount5741 = ORCreditMemoLineRet5727.CreditMemoLineRet.Amount.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteRef.ListID is nothing) then
                                                                        Dim ListID5742 as String
                                                                        ListID5742 = ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteRef.FullName is nothing) then
                                                                        Dim FullName5743 as String
                                                                        FullName5743 = ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteLocationRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteLocationRef.ListID is nothing) then
                                                                        Dim ListID5744 as String
                                                                        ListID5744 = ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteLocationRef.FullName is nothing) then
                                                                        Dim FullName5745 as String
                                                                        FullName5745 = ORCreditMemoLineRet5727.CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.ORSerialLotNumber is nothing) then
                                                                if (not ORCreditMemoLineRet5727.CreditMemoLineRet.ORSerialLotNumber.SerialNumber is nothing) then
                                                                        'Get value of SerialNumber
                                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ORSerialLotNumber.SerialNumber is nothing) then
                                                                                Dim SerialNumber5747 as String
                                                                                SerialNumber5747 = ORCreditMemoLineRet5727.CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue()
                                                                        End If
                                                                End If
                                                                if (not ORCreditMemoLineRet5727.CreditMemoLineRet.ORSerialLotNumber.LotNumber is nothing) then
                                                                        'Get value of LotNumber
                                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ORSerialLotNumber.LotNumber is nothing) then
                                                                                Dim LotNumber5748 as String
                                                                                LotNumber5748 = ORCreditMemoLineRet5727.CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue()
                                                                        End If
                                                                End If
                                                        End If
                                                        'Get value of ExpirationDateForSerialLotNumber
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ExpirationDateForSerialLotNumber is nothing) then
                                                                Dim ExpDate as String
                                                                ExpDate = ORCreditMemoLineRet5727.CreditMemoLineRet.ExpirationDateForSerialLotNumber.GetValue()
                                                        End If
                                                        'Get value of ServiceDate
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.ServiceDate is nothing) then
                                                                Dim ServiceDate5749 as DateTime
                                                                ServiceDate5749 = ORCreditMemoLineRet5727.CreditMemoLineRet.ServiceDate.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.SalesTaxCodeRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.SalesTaxCodeRef.ListID is nothing) then
                                                                        Dim ListID5750 as String
                                                                        ListID5750 = ORCreditMemoLineRet5727.CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.SalesTaxCodeRef.FullName is nothing) then
                                                                        Dim FullName5751 as String
                                                                        FullName5751 = ORCreditMemoLineRet5727.CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        'Get value of Other1
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.Other1 is nothing) then
                                                                Dim Other15752 as String
                                                                Other15752 = ORCreditMemoLineRet5727.CreditMemoLineRet.Other1.GetValue()
                                                        End If
                                                        'Get value of Other2
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.Other2 is nothing) then
                                                                Dim Other25753 as String
                                                                Other25753 = ORCreditMemoLineRet5727.CreditMemoLineRet.Other2.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo. is nothing) then
                                                                'Get value of CreditCardNumber
                                                                Dim CreditCardNumber5754 as String
                                                                CreditCardNumber5754 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue()
                                                                'Get value of ExpirationMonth
                                                                Dim ExpirationMonth5755 as Integer
                                                                ExpirationMonth5755 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue()
                                                                'Get value of ExpirationYear
                                                                Dim ExpirationYear5756 as Integer
                                                                ExpirationYear5756 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue()
                                                                'Get value of NameOnCard
                                                                Dim NameOnCard5757 as String
                                                                NameOnCard5757 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue()
                                                                'Get value of CreditCardAddress
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress is nothing) then
                                                                        Dim CreditCardAddress5758 as String
                                                                        CreditCardAddress5758 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue()
                                                                End If
                                                                'Get value of CreditCardPostalCode
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode is nothing) then
                                                                        Dim CreditCardPostalCode5759 as String
                                                                        CreditCardPostalCode5759 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue()
                                                                End If
                                                                'Get value of CommercialCardCode
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode is nothing) then
                                                                        Dim CommercialCardCode5760 as String
                                                                        CommercialCardCode5760 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue()
                                                                End If
                                                                'Get value of TransactionMode
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode is nothing) then
                                                                        Dim TransactionMode5761 as ENTransactionMode
                                                                        TransactionMode5761 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue()
                                                                End If
                                                                'Get value of CreditCardTxnType
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType is nothing) then
                                                                        Dim CreditCardTxnType5762 as ENCreditCardTxnType
                                                                        CreditCardTxnType5762 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue()
                                                                End If
                                                                'Get value of ResultCode
                                                                Dim ResultCode5763 as Integer
                                                                ResultCode5763 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue()
                                                                'Get value of ResultMessage
                                                                Dim ResultMessage5764 as String
                                                                ResultMessage5764 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue()
                                                                'Get value of CreditCardTransID
                                                                Dim CreditCardTransID5765 as String
                                                                CreditCardTransID5765 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue()
                                                                'Get value of MerchantAccountNumber
                                                                Dim MerchantAccountNumber5766 as String
                                                                MerchantAccountNumber5766 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue()
                                                                'Get value of AuthorizationCode
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode is nothing) then
                                                                        Dim AuthorizationCode5767 as String
                                                                        AuthorizationCode5767 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue()
                                                                End If
                                                                'Get value of AVSStreet
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet is nothing) then
                                                                        Dim AVSStreet5768 as ENAVSStreet
                                                                        AVSStreet5768 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue()
                                                                End If
                                                                'Get value of AVSZip
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip is nothing) then
                                                                        Dim AVSZip5769 as ENAVSZip
                                                                        AVSZip5769 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue()
                                                                End If
                                                                'Get value of CardSecurityCodeMatch
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch is nothing) then
                                                                        Dim CardSecurityCodeMatch5770 as ENCardSecurityCodeMatch
                                                                        CardSecurityCodeMatch5770 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue()
                                                                End If
                                                                'Get value of ReconBatchID
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID is nothing) then
                                                                        Dim ReconBatchID5771 as String
                                                                        ReconBatchID5771 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue()
                                                                End If
                                                                'Get value of PaymentGroupingCode
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode is nothing) then
                                                                        Dim PaymentGroupingCode5772 as Integer
                                                                        PaymentGroupingCode5772 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue()
                                                                End If
                                                                'Get value of PaymentStatus
                                                                Dim PaymentStatus5773 as ENPaymentStatus
                                                                PaymentStatus5773 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue()
                                                                'Get value of TxnAuthorizationTime
                                                                Dim TxnAuthorizationTime5774 as DateTime
                                                                TxnAuthorizationTime5774 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue()
                                                                'Get value of TxnAuthorizationStamp
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp is nothing) then
                                                                        Dim TxnAuthorizationStamp5775 as Integer
                                                                        TxnAuthorizationStamp5775 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue()
                                                                End If
                                                                'Get value of ClientTransID
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID is nothing) then
                                                                        Dim ClientTransID5776 as String
                                                                        ClientTransID5776 = ORCreditMemoLineRet5727.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue()
                                                                End If
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineRet.DataExtRetList is nothing)
                                                                Dim i5777 as Integer
                                                                for i5777 = 0  to ORCreditMemoLineRet5727.CreditMemoLineRet.DataExtRetList.Count - 1
                                                                        Dim DataExtRet as IDataExtRet
                                                                        DataExtRet = ORCreditMemoLineRet5727.CreditMemoLineRet.DataExtRetList.GetAt(i5777)
                                                                        'Get value of OwnerID
                                                                        if ( not DataExtRetOwnerID is nothing) then
                                                                                Dim OwnerID5778 as String
                                                                                OwnerID5778 = DataExtRetOwnerID.GetValue()
                                                                        End If
                                                                        'Get value of DataExtName
                                                                        Dim DataExtName5779 as String
                                                                        DataExtName5779 = DataExtRetDataExtName.GetValue()
                                                                        'Get value of DataExtType
                                                                        Dim DataExtType5780 as ENDataExtType
                                                                        DataExtType5780 = DataExtRetDataExtType.GetValue()
                                                                        'Get value of DataExtValue
                                                                        Dim DataExtValue5781 as String
                                                                        DataExtValue5781 = DataExtRetDataExtValue.GetValue()
                                                                Next i5777
                                                        End If
                                                End If
                                        End If
                                        if (not ORCreditMemoLineRet5727.CreditMemoLineGroupRet is nothing) then
                                                if (not ORCreditMemoLineRet5727.CreditMemoLineGroupRet. is nothing) then
                                                        'Get value of TxnLineID
                                                        Dim TxnLineID5782 as String
                                                        TxnLineID5782 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.TxnLineID.GetValue()
                                                        'Get value of ListID
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.ItemGroupRef.ListID is nothing) then
                                                                Dim ListID5783 as String
                                                                ListID5783 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.ItemGroupRef.ListID.GetValue()
                                                        End If
                                                        'Get value of FullName
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.ItemGroupRef.FullName is nothing) then
                                                                Dim FullName5784 as String
                                                                FullName5784 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.ItemGroupRef.FullName.GetValue()
                                                        End If
                                                        'Get value of Desc
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.Desc is nothing) then
                                                                Dim Desc5785 as String
                                                                Desc5785 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.Desc.GetValue()
                                                        End If
                                                        'Get value of Quantity
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.Quantity is nothing) then
                                                                Dim Quantity5786 as Integer
                                                                Quantity5786 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.Quantity.GetValue()
                                                        End If
                                                        'Get value of UnitOfMeasure
                                                        if ( not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.UnitOfMeasure is nothing) then
                                                                Dim UnitOfMeasure5787 as String
                                                                UnitOfMeasure5787 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.UnitOfMeasure.GetValue()
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.OverrideUOMSetRef. is nothing) then
                                                                'Get value of ListID
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID is nothing) then
                                                                        Dim ListID5788 as String
                                                                        ListID5788 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID.GetValue()
                                                                End If
                                                                'Get value of FullName
                                                                if ( not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName is nothing) then
                                                                        Dim FullName5789 as String
                                                                        FullName5789 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName.GetValue()
                                                                End If
                                                        End If
                                                        'Get value of IsPrintItemsInGroup
                                                        Dim IsPrintItemsInGroup5790 as Boolean
                                                        IsPrintItemsInGroup5790 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.IsPrintItemsInGroup.GetValue()
                                                        'Get value of TotalAmount
                                                        Dim TotalAmount5791 as Double
                                                        TotalAmount5791 = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.TotalAmount.GetValue()
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.CreditMemoLineRetList is nothing)
                                                                Dim i5792 as Integer
                                                                for i5792 = 0  to ORCreditMemoLineRet5727.CreditMemoLineGroupRet.CreditMemoLineRetList.Count - 1
                                                                        Dim CreditMemoLineRet as ICreditMemoLineRet
                                                                        CreditMemoLineRet = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.CreditMemoLineRetList.GetAt(i5792)
                                                                        'Get value of TxnLineID
                                                                        Dim TxnLineID5793 as String
                                                                        TxnLineID5793 = CreditMemoLineRetTxnLineID.GetValue()
                                                                        if (not CreditMemoLineRetItemRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetItemRef.ListID is nothing) then
                                                                                Dim ListID5794 as String
                                                                                ListID5794 = CreditMemoLineRetItemRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetItemRef.FullName is nothing) then
                                                                                Dim FullName5795 as String
                                                                                FullName5795 = CreditMemoLineRetItemRef.FullName.GetValue()
                                                                                End If
                                                                        End If
                                                                        'Get value of Desc
                                                                        if ( not CreditMemoLineRetDesc is nothing) then
                                                                                Dim Desc5796 as String
                                                                                Desc5796 = CreditMemoLineRetDesc.GetValue()
                                                                        End If
                                                                        'Get value of Quantity
                                                                        if ( not CreditMemoLineRetQuantity is nothing) then
                                                                                Dim Quantity5797 as Integer
                                                                                Quantity5797 = CreditMemoLineRetQuantity.GetValue()
                                                                        End If
                                                                        'Get value of UnitOfMeasure
                                                                        if ( not CreditMemoLineRetUnitOfMeasure is nothing) then
                                                                                Dim UnitOfMeasure5798 as String
                                                                                UnitOfMeasure5798 = CreditMemoLineRetUnitOfMeasure.GetValue()
                                                                        End If
                                                                        if (not CreditMemoLineRetOverrideUOMSetRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetOverrideUOMSetRef.ListID is nothing) then
                                                                                Dim ListID5799 as String
                                                                                ListID5799 = CreditMemoLineRetOverrideUOMSetRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetOverrideUOMSetRef.FullName is nothing) then
                                                                                Dim FullName5800 as String
                                                                                FullName5800 = 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 Rate5802 as Double
                                                                                Rate5802 = 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 RatePercent5803 as Double
                                                                                RatePercent5803 = 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 ListID5804 as String
                                                                                ListID5804 = CreditMemoLineRetClassRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetClassRef.FullName is nothing) then
                                                                                Dim FullName5805 as String
                                                                                FullName5805 = CreditMemoLineRetClassRef.FullName.GetValue()
                                                                                End If
                                                                        End If
                                                                        'Get value of Amount
                                                                        if ( not CreditMemoLineRetAmount is nothing) then
                                                                                Dim Amount5806 as Double
                                                                                Amount5806 = CreditMemoLineRetAmount.GetValue()
                                                                        End If
                                                                        if (not CreditMemoLineRetInventorySiteRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetInventorySiteRef.ListID is nothing) then
                                                                                Dim ListID5807 as String
                                                                                ListID5807 = CreditMemoLineRetInventorySiteRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetInventorySiteRef.FullName is nothing) then
                                                                                Dim FullName5808 as String
                                                                                FullName5808 = 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 ListID5809 as String
                                                                                ListID5809 = CreditMemoLineRetInventorySiteLocationRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetInventorySiteLocationRef.FullName is nothing) then
                                                                                Dim FullName5810 as String
                                                                                FullName5810 = 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 SerialNumber5812 as String
                                                                                SerialNumber5812 = 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 LotNumber5813 as String
                                                                                LotNumber5813 = CreditMemoLineRetORSerialLotNumber.LotNumber.GetValue()
                                                                                End If
                                                                                End If
                                                                        End If
                                                                        'Get value of ServiceDate
                                                                        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 ServiceDate5814 as DateTime
                                                                                ServiceDate5814 = CreditMemoLineRetServiceDate.GetValue()
                                                                        End If
                                                                        if (not CreditMemoLineRetSalesTaxCodeRef. is nothing) then
                                                                                'Get value of ListID
                                                                                if ( not CreditMemoLineRetSalesTaxCodeRef.ListID is nothing) then
                                                                                Dim ListID5815 as String
                                                                                ListID5815 = CreditMemoLineRetSalesTaxCodeRef.ListID.GetValue()
                                                                                End If
                                                                                'Get value of FullName
                                                                                if ( not CreditMemoLineRetSalesTaxCodeRef.FullName is nothing) then
                                                                                Dim FullName5816 as String
                                                                                FullName5816 = CreditMemoLineRetSalesTaxCodeRef.FullName.GetValue()
                                                                                End If
                                                                        End If
                                                                        'Get value of Other1
                                                                        if ( not CreditMemoLineRetOther1 is nothing) then
                                                                                Dim Other15817 as String
                                                                                Other15817 = CreditMemoLineRetOther1.GetValue()
                                                                        End If
                                                                        'Get value of Other2
                                                                        if ( not CreditMemoLineRetOther2 is nothing) then
                                                                                Dim Other25818 as String
                                                                                Other25818 = CreditMemoLineRetOther2.GetValue()
                                                                        End If
                                                                        if (not CreditMemoLineRetCreditCardTxnInfo. is nothing) then
                                                                                'Get value of CreditCardNumber
                                                                                Dim CreditCardNumber5819 as String
                                                                                CreditCardNumber5819 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue()
                                                                                'Get value of ExpirationMonth
                                                                                Dim ExpirationMonth5820 as Integer
                                                                                ExpirationMonth5820 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue()
                                                                                'Get value of ExpirationYear
                                                                                Dim ExpirationYear5821 as Integer
                                                                                ExpirationYear5821 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue()
                                                                                'Get value of NameOnCard
                                                                                Dim NameOnCard5822 as String
                                                                                NameOnCard5822 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue()
                                                                                'Get value of CreditCardAddress
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress is nothing) then
                                                                                Dim CreditCardAddress5823 as String
                                                                                CreditCardAddress5823 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue()
                                                                                End If
                                                                                'Get value of CreditCardPostalCode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode is nothing) then
                                                                                Dim CreditCardPostalCode5824 as String
                                                                                CreditCardPostalCode5824 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue()
                                                                                End If
                                                                                'Get value of CommercialCardCode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode is nothing) then
                                                                                Dim CommercialCardCode5825 as String
                                                                                CommercialCardCode5825 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue()
                                                                                End If
                                                                                'Get value of TransactionMode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode is nothing) then
                                                                                Dim TransactionMode5826 as ENTransactionMode
                                                                                TransactionMode5826 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue()
                                                                                End If
                                                                                'Get value of CreditCardTxnType
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType is nothing) then
                                                                                Dim CreditCardTxnType5827 as ENCreditCardTxnType
                                                                                CreditCardTxnType5827 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue()
                                                                                End If
                                                                                'Get value of ResultCode
                                                                                Dim ResultCode5828 as Integer
                                                                                ResultCode5828 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue()
                                                                                'Get value of ResultMessage
                                                                                Dim ResultMessage5829 as String
                                                                                ResultMessage5829 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue()
                                                                                'Get value of CreditCardTransID
                                                                                Dim CreditCardTransID5830 as String
                                                                                CreditCardTransID5830 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue()
                                                                                'Get value of MerchantAccountNumber
                                                                                Dim MerchantAccountNumber5831 as String
                                                                                MerchantAccountNumber5831 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue()
                                                                                'Get value of AuthorizationCode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode is nothing) then
                                                                                Dim AuthorizationCode5832 as String
                                                                                AuthorizationCode5832 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue()
                                                                                End If
                                                                                'Get value of AVSStreet
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet is nothing) then
                                                                                Dim AVSStreet5833 as ENAVSStreet
                                                                                AVSStreet5833 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue()
                                                                                End If
                                                                                'Get value of AVSZip
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip is nothing) then
                                                                                Dim AVSZip5834 as ENAVSZip
                                                                                AVSZip5834 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue()
                                                                                End If
                                                                                'Get value of CardSecurityCodeMatch
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch is nothing) then
                                                                                Dim CardSecurityCodeMatch5835 as ENCardSecurityCodeMatch
                                                                                CardSecurityCodeMatch5835 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue()
                                                                                End If
                                                                                'Get value of ReconBatchID
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID is nothing) then
                                                                                Dim ReconBatchID5836 as String
                                                                                ReconBatchID5836 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue()
                                                                                End If
                                                                                'Get value of PaymentGroupingCode
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode is nothing) then
                                                                                Dim PaymentGroupingCode5837 as Integer
                                                                                PaymentGroupingCode5837 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue()
                                                                                End If
                                                                                'Get value of PaymentStatus
                                                                                Dim PaymentStatus5838 as ENPaymentStatus
                                                                                PaymentStatus5838 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue()
                                                                                'Get value of TxnAuthorizationTime
                                                                                Dim TxnAuthorizationTime5839 as DateTime
                                                                                TxnAuthorizationTime5839 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue()
                                                                                'Get value of TxnAuthorizationStamp
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp is nothing) then
                                                                                Dim TxnAuthorizationStamp5840 as Integer
                                                                                TxnAuthorizationStamp5840 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue()
                                                                                End If
                                                                                'Get value of ClientTransID
                                                                                if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID is nothing) then
                                                                                Dim ClientTransID5841 as String
                                                                                ClientTransID5841 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue()
                                                                                End If
                                                                        End If
                                                                        if (not CreditMemoLineRetDataExtRetList is nothing)
                                                                                Dim i5842 as Integer
                                                                                for i5842 = 0  to CreditMemoLineRetDataExtRetList.Count - 1
                                                                                Dim DataExtRet as IDataExtRet
                                                                                DataExtRet = CreditMemoLineRetDataExtRetList.GetAt(i5842)
                                                                                'Get value of OwnerID
                                                                                if ( not DataExtRetOwnerID is nothing) then
                                                                                Dim OwnerID5843 as String
                                                                                OwnerID5843 = DataExtRetOwnerID.GetValue()
                                                                                End If
                                                                                'Get value of DataExtName
                                                                                Dim DataExtName5844 as String
                                                                                DataExtName5844 = DataExtRetDataExtName.GetValue()
                                                                                'Get value of DataExtType
                                                                                Dim DataExtType5845 as ENDataExtType
                                                                                DataExtType5845 = DataExtRetDataExtType.GetValue()
                                                                                'Get value of DataExtValue
                                                                                Dim DataExtValue5846 as String
                                                                                DataExtValue5846 = DataExtRetDataExtValue.GetValue()
                                                                                Next i5842
                                                                        End If
                                                                Next i5792
                                                        End If
                                                        if (not ORCreditMemoLineRet5727.CreditMemoLineGroupRet.DataExtRetList is nothing)
                                                                Dim i5847 as Integer
                                                                for i5847 = 0  to ORCreditMemoLineRet5727.CreditMemoLineGroupRet.DataExtRetList.Count - 1
                                                                        Dim DataExtRet as IDataExtRet
                                                                        DataExtRet = ORCreditMemoLineRet5727.CreditMemoLineGroupRet.DataExtRetList.GetAt(i5847)
                                                                        'Get value of OwnerID
                                                                        if ( not DataExtRetOwnerID is nothing) then
                                                                                Dim OwnerID5848 as String
                                                                                OwnerID5848 = DataExtRetOwnerID.GetValue()
                                                                        End If
                                                                        'Get value of DataExtName
                                                                        Dim DataExtName5849 as String
                                                                        DataExtName5849 = DataExtRetDataExtName.GetValue()
                                                                        'Get value of DataExtType
                                                                        Dim DataExtType5850 as ENDataExtType
                                                                        DataExtType5850 = DataExtRetDataExtType.GetValue()
                                                                        'Get value of DataExtValue
                                                                        Dim DataExtValue5851 as String
                                                                        DataExtValue5851 = DataExtRetDataExtValue.GetValue()
                                                                Next i5847
                                                        End If
                                                End If
                                        End If
                                Next i5726
                        End If
                        if (not CreditMemoRet.DataExtRetList is nothing)
                                Dim i5852 as Integer
                                for i5852 = 0  to CreditMemoRet.DataExtRetList.Count - 1
                                        Dim DataExtRet as IDataExtRet
                                        DataExtRet = CreditMemoRet.DataExtRetList.GetAt(i5852)
                                        'Get value of OwnerID
                                        if ( not DataExtRetOwnerID is nothing) then
                                                Dim OwnerID5853 as String
                                                OwnerID5853 = DataExtRetOwnerID.GetValue()
                                        End If
                                        'Get value of DataExtName
                                        Dim DataExtName5854 as String
                                        DataExtName5854 = DataExtRetDataExtName.GetValue()
                                        'Get value of DataExtType
                                        Dim DataExtType5855 as ENDataExtType
                                        DataExtType5855 = DataExtRetDataExtType.GetValue()
                                        'Get value of DataExtValue
                                        Dim DataExtValue5856 as String
                                        DataExtValue5856 = DataExtRetDataExtValue.GetValue()
                                Next i5852
                        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
//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  DoCreditMemoAdd()
                {
                        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;

                                BuildCreditMemoAddRq(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;

                                WalkCreditMemoAddRs(responseMsgSet);
                        }
                        catch (Exception e)
                        {
                                MessageBox.Show(e.Message, "Error");
                                if (sessionBegun)
                                {
                                        sessionManager.EndSession();
                                }
                                if (connectionOpen)
                                {
                                        sessionManager.CloseConnection();
                                }
                        }
                }
                void BuildCreditMemoAddRq(IMsgSetRequest requestMsgSet)
                {
                        ICreditMemoAdd CreditMemoAddRq= requestMsgSet.AppendCreditMemoAddRq();
                        //Set attributes
                        //Set field value for defMacro
                        CreditMemoAddRq.defMacro.SetValue("IQBStringType");
                        //Set field value for ListID
                        CreditMemoAddRq.CustomerRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.CustomerRef.FullName.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoAddRq.ClassRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.ClassRef.FullName.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoAddRq.ARAccountRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.ARAccountRef.FullName.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoAddRq.TemplateRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.TemplateRef.FullName.SetValue("ab");
                        //Set field value for TxnDate
                        CreditMemoAddRq.TxnDate.SetValue(DateTime.Parse("12/15/2007"));
                        //Set field value for RefNumber
                        CreditMemoAddRq.RefNumber.SetValue("ab");
                        //Set field value for Addr1
                        CreditMemoAddRq.BillAddress.Addr1.SetValue("ab");
                        //Set field value for Addr2
                        CreditMemoAddRq.BillAddress.Addr2.SetValue("ab");
                        //Set field value for Addr3
                        CreditMemoAddRq.BillAddress.Addr3.SetValue("ab");
                        //Set field value for Addr4
                        CreditMemoAddRq.BillAddress.Addr4.SetValue("ab");
                        //Set field value for Addr5
                        CreditMemoAddRq.BillAddress.Addr5.SetValue("ab");
                        //Set field value for City
                        CreditMemoAddRq.BillAddress.City.SetValue("ab");
                        //Set field value for State
                        CreditMemoAddRq.BillAddress.State.SetValue("ab");
                        //Set field value for PostalCode
                        CreditMemoAddRq.BillAddress.PostalCode.SetValue("ab");
                        //Set field value for Country
                        CreditMemoAddRq.BillAddress.Country.SetValue("ab");
                        //Set field value for Note
                        CreditMemoAddRq.BillAddress.Note.SetValue("ab");
                        //Set field value for Addr1
                        CreditMemoAddRq.ShipAddress.Addr1.SetValue("ab");
                        //Set field value for Addr2
                        CreditMemoAddRq.ShipAddress.Addr2.SetValue("ab");
                        //Set field value for Addr3
                        CreditMemoAddRq.ShipAddress.Addr3.SetValue("ab");
                        //Set field value for Addr4
                        CreditMemoAddRq.ShipAddress.Addr4.SetValue("ab");
                        //Set field value for Addr5
                        CreditMemoAddRq.ShipAddress.Addr5.SetValue("ab");
                        //Set field value for City
                        CreditMemoAddRq.ShipAddress.City.SetValue("ab");
                        //Set field value for State
                        CreditMemoAddRq.ShipAddress.State.SetValue("ab");
                        //Set field value for PostalCode
                        CreditMemoAddRq.ShipAddress.PostalCode.SetValue("ab");
                        //Set field value for Country
                        CreditMemoAddRq.ShipAddress.Country.SetValue("ab");
                        //Set field value for Note
                        CreditMemoAddRq.ShipAddress.Note.SetValue("ab");
                        //Set field value for IsPending
                        CreditMemoAddRq.IsPending.SetValue(true);
                        //Set field value for PONumber
                        CreditMemoAddRq.PONumber.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoAddRq.TermsRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.TermsRef.FullName.SetValue("ab");
                        //Set field value for DueDate
                        CreditMemoAddRq.DueDate.SetValue(DateTime.Parse("12/15/2007"));
                        //Set field value for ListID
                        CreditMemoAddRq.SalesRepRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.SalesRepRef.FullName.SetValue("ab");
                        //Set field value for FOB
                        CreditMemoAddRq.FOB.SetValue("ab");
                        //Set field value for ShipDate
                        CreditMemoAddRq.ShipDate.SetValue(DateTime.Parse("12/15/2007"));
                        //Set field value for ListID
                        CreditMemoAddRq.ShipMethodRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.ShipMethodRef.FullName.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoAddRq.ItemSalesTaxRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.ItemSalesTaxRef.FullName.SetValue("ab");
                        //Set field value for Memo
                        CreditMemoAddRq.Memo.SetValue("ab");
                        //Set field value for ListID
                        CreditMemoAddRq.CustomerMsgRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.CustomerMsgRef.FullName.SetValue("ab");
                        //Set field value for IsToBePrinted
                        CreditMemoAddRq.IsToBePrinted.SetValue(true);
                        //Set field value for IsToBeEmailed
                        CreditMemoAddRq.IsToBeEmailed.SetValue(true);
                        //Set field value for IsTaxIncluded
                        CreditMemoAddRq.IsTaxIncluded.SetValue(true);
                        //Set field value for ListID
                        CreditMemoAddRq.CustomerSalesTaxCodeRef.ListID.SetValue("200000-1011023419");
                        //Set field value for FullName
                        CreditMemoAddRq.CustomerSalesTaxCodeRef.FullName.SetValue("ab");
                        //Set field value for Other
                        CreditMemoAddRq.Other.SetValue("ab");
                        //Set field value for ExchangeRate
                        CreditMemoAddRq.ExchangeRate.SetValue("IQBFloatType");
                        //Set field value for ExternalGUID
                        CreditMemoAddRq.ExternalGUID.SetValue(Guid.NewGuid().ToString());
                        IORCreditMemoLineAdd ORCreditMemoLineAddListElement5415 =CreditMemoAddRq.ORCreditMemoLineAddList.Append();
                        string ORCreditMemoLineAddListElementType5416 = "CreditMemoLineAdd";
                        if (ORCreditMemoLineAddListElementType5416 == "CreditMemoLineAdd")
                        {
                                //Set attributes
                                //Set field value for defMacro
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.defMacro.SetValue("IQBStringType");
                                //Set field value for ListID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ItemRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ItemRef.FullName.SetValue("ab");
                                //Set field value for Desc
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.Desc.SetValue("ab");
                                //Set field value for Quantity
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.Quantity.SetValue(2);
                                //Set field value for UnitOfMeasure
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.UnitOfMeasure.SetValue("ab");
                                string ORRatePriceLevelElementType5417 = "Rate";
                                if (ORRatePriceLevelElementType5417 == "Rate")
                                {
                                        //Set field value for Rate
                                        ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ORRatePriceLevel.Rate.SetValue(15.65);
                                }
                                if (ORRatePriceLevelElementType5417 == "RatePercent")
                                {
                                        //Set field value for RatePercent
                                        ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ORRatePriceLevel.RatePercent.SetValue(20.00);
                                }
                                if (ORRatePriceLevelElementType5417 == "PriceLevelRef")
                                {
                                        //Set field value for ListID
                                        ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419");
                                        //Set field value for FullName
                                        ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab");
                                }
                                //Set field value for ListID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ClassRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ClassRef.FullName.SetValue("ab");
                                //Set field value for Amount
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.Amount.SetValue(10.01);
                                //Set field value for ListID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.InventorySiteRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.InventorySiteRef.FullName.SetValue("ab");
                                //Set field value for ListID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.InventorySiteLocationRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.InventorySiteLocationRef.FullName.SetValue("ab");
                                string ORSerialLotNumberElementType5418 = "SerialNumber";
                                if (ORSerialLotNumberElementType5418 == "SerialNumber")
                                {
                                        //Set field value for SerialNumber
                                        ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ORSerialLotNumber.SerialNumber.SetValue("ab");
                                }
                                if (ORSerialLotNumberElementType5418 == "LotNumber")
                                {
                                        //Set field value for LotNumber
                                        ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ORSerialLotNumber.LotNumber.SetValue("ab");
                                }
                                //Set field value for ServiceDate
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.ServiceDate.SetValue(DateTime.Parse("12/15/2007"));
                                //Set field value for ListID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.SalesTaxCodeRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.SalesTaxCodeRef.FullName.SetValue("ab");
                                //Set field value for ListID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.OverrideItemAccountRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.OverrideItemAccountRef.FullName.SetValue("ab");
                                //Set field value for Other1
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.Other1.SetValue("ab");
                                //Set field value for Other2
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.Other2.SetValue("ab");
                                //Set field value for CreditCardNumber
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.SetValue("ab");
                                //Set field value for ExpirationMonth
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.SetValue(6);
                                //Set field value for ExpirationYear
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.SetValue(6);
                                //Set field value for NameOnCard
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.SetValue("ab");
                                //Set field value for CreditCardAddress
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.SetValue("ab");
                                //Set field value for CreditCardPostalCode
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.SetValue("ab");
                                //Set field value for CommercialCardCode
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.SetValue("ab");
                                //Set field value for TransactionMode
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.SetValue(ENTransactionMode.tmCardNotPresent [DEFAULT]);
                                //Set field value for CreditCardTxnType
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.SetValue(ENCreditCardTxnType.ccttAuthorization);
                                //Set field value for ResultCode
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.SetValue(6);
                                //Set field value for ResultMessage
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.SetValue("ab");
                                //Set field value for CreditCardTransID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.SetValue("ab");
                                //Set field value for MerchantAccountNumber
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.SetValue("ab");
                                //Set field value for AuthorizationCode
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.SetValue("ab");
                                //Set field value for AVSStreet
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.SetValue(ENAVSStreet.avssPass);
                                //Set field value for AVSZip
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.SetValue(ENAVSZip.avszPass);
                                //Set field value for CardSecurityCodeMatch
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.SetValue(ENCardSecurityCodeMatch.cscmPass);
                                //Set field value for ReconBatchID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.SetValue("ab");
                                //Set field value for PaymentGroupingCode
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.SetValue(6);
                                //Set field value for PaymentStatus
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.SetValue(ENPaymentStatus.pssUnknown);
                                //Set field value for TxnAuthorizationTime
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.SetValue(DateTime.Parse("12/15/2007 12:15:12"),false);
                                //Set field value for TxnAuthorizationStamp
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.SetValue(6);
                                //Set field value for ClientTransID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.SetValue("ab");
                                IDataExt DataExt5419=ORCreditMemoLineAddListElement5415.CreditMemoLineAdd.DataExtList.Append();
                                //Set field value for OwnerID
                                DataExt5419.OwnerID.SetValue(Guid.NewGuid().ToString());
                                //Set field value for DataExtName
                                DataExt5419.DataExtName.SetValue("ab");
                                //Set field value for DataExtValue
                                DataExt5419.DataExtValue.SetValue("ab");
                        }
                        if (ORCreditMemoLineAddListElementType5416 == "CreditMemoLineGroupAdd")
                        {
                                //Set field value for ListID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineGroupAdd.ItemGroupRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineAddListElement5415.CreditMemoLineGroupAdd.ItemGroupRef.FullName.SetValue("ab");
                                //Set field value for Quantity
                                ORCreditMemoLineAddListElement5415.CreditMemoLineGroupAdd.Quantity.SetValue(2);
                                //Set field value for UnitOfMeasure
                                ORCreditMemoLineAddListElement5415.CreditMemoLineGroupAdd.UnitOfMeasure.SetValue("ab");
                                //Set field value for ListID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineGroupAdd.InventorySiteRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineAddListElement5415.CreditMemoLineGroupAdd.InventorySiteRef.FullName.SetValue("ab");
                                //Set field value for ListID
                                ORCreditMemoLineAddListElement5415.CreditMemoLineGroupAdd.InventorySiteLocationRef.ListID.SetValue("200000-1011023419");
                                //Set field value for FullName
                                ORCreditMemoLineAddListElement5415.CreditMemoLineGroupAdd.InventorySiteLocationRef.FullName.SetValue("ab");
                                IDataExt DataExt5420=ORCreditMemoLineAddListElement5415.CreditMemoLineGroupAdd.DataExtList.Append();
                                //Set field value for OwnerID
                                DataExt5420.OwnerID.SetValue(Guid.NewGuid().ToString());
                                //Set field value for DataExtName
                                DataExt5420.DataExtName.SetValue("ab");
                                //Set field value for DataExtValue
                                DataExt5420.DataExtValue.SetValue("ab");
                        }
                        //Set field value for IncludeRetElementList
                        //May create more than one of these if needed
                        CreditMemoAddRq.IncludeRetElementList.Add("ab");
                }




                void WalkCreditMemoAddRs(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.rtCreditMemoAddRs)
                                                {
                                                        //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 TxnID5421 = (string)CreditMemoRet.TxnID.GetValue();
                        //Get value of TimeCreated
                        DateTime TimeCreated5422 = (DateTime)CreditMemoRet.TimeCreated.GetValue();
                        //Get value of TimeModified
                        DateTime TimeModified5423 = (DateTime)CreditMemoRet.TimeModified.GetValue();
                        //Get value of EditSequence
                        string EditSequence5424 = (string)CreditMemoRet.EditSequence.GetValue();
                        //Get value of TxnNumber
                        if (CreditMemoRet.TxnNumber != null)
                        {
                                int TxnNumber5425 = (int)CreditMemoRet.TxnNumber.GetValue();
                        }
                        //Get value of ListID
                        if (CreditMemoRet.CustomerRef.ListID != null)
                        {
                                string ListID5426 = (string)CreditMemoRet.CustomerRef.ListID.GetValue();
                        }
                        //Get value of FullName
                        if (CreditMemoRet.CustomerRef.FullName != null)
                        {
                                string FullName5427 = (string)CreditMemoRet.CustomerRef.FullName.GetValue();
                        }
                        if (CreditMemoRet.ClassRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.ClassRef.ListID != null)
                                {
                                        string ListID5428 = (string)CreditMemoRet.ClassRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.ClassRef.FullName != null)
                                {
                                        string FullName5429 = (string)CreditMemoRet.ClassRef.FullName.GetValue();
                                }
                        }
                        if (CreditMemoRet.ARAccountRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.ARAccountRef.ListID != null)
                                {
                                        string ListID5430 = (string)CreditMemoRet.ARAccountRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.ARAccountRef.FullName != null)
                                {
                                        string FullName5431 = (string)CreditMemoRet.ARAccountRef.FullName.GetValue();
                                }
                        }
                        if (CreditMemoRet.TemplateRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.TemplateRef.ListID != null)
                                {
                                        string ListID5432 = (string)CreditMemoRet.TemplateRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.TemplateRef.FullName != null)
                                {
                                        string FullName5433 = (string)CreditMemoRet.TemplateRef.FullName.GetValue();
                                }
                        }
                        //Get value of TxnDate
                        DateTime TxnDate5434 = (DateTime)CreditMemoRet.TxnDate.GetValue();
                        //Get value of RefNumber
                        if (CreditMemoRet.RefNumber != null)
                        {
                                string RefNumber5435 = (string)CreditMemoRet.RefNumber.GetValue();
                        }
                        if (CreditMemoRet.BillAddress != null)
                        {
                                //Get value of Addr1
                                if (CreditMemoRet.BillAddress.Addr1 != null)
                                {
                                        string Addr15436 = (string)CreditMemoRet.BillAddress.Addr1.GetValue();
                                }
                                //Get value of Addr2
                                if (CreditMemoRet.BillAddress.Addr2 != null)
                                {
                                        string Addr25437 = (string)CreditMemoRet.BillAddress.Addr2.GetValue();
                                }
                                //Get value of Addr3
                                if (CreditMemoRet.BillAddress.Addr3 != null)
                                {
                                        string Addr35438 = (string)CreditMemoRet.BillAddress.Addr3.GetValue();
                                }
                                //Get value of Addr4
                                if (CreditMemoRet.BillAddress.Addr4 != null)
                                {
                                        string Addr45439 = (string)CreditMemoRet.BillAddress.Addr4.GetValue();
                                }
                                //Get value of Addr5
                                if (CreditMemoRet.BillAddress.Addr5 != null)
                                {
                                        string Addr55440 = (string)CreditMemoRet.BillAddress.Addr5.GetValue();
                                }
                                //Get value of City
                                if (CreditMemoRet.BillAddress.City != null)
                                {
                                        string City5441 = (string)CreditMemoRet.BillAddress.City.GetValue();
                                }
                                //Get value of State
                                if (CreditMemoRet.BillAddress.State != null)
                                {
                                        string State5442 = (string)CreditMemoRet.BillAddress.State.GetValue();
                                }
                                //Get value of PostalCode
                                if (CreditMemoRet.BillAddress.PostalCode != null)
                                {
                                        string PostalCode5443 = (string)CreditMemoRet.BillAddress.PostalCode.GetValue();
                                }
                                //Get value of Country
                                if (CreditMemoRet.BillAddress.Country != null)
                                {
                                        string Country5444 = (string)CreditMemoRet.BillAddress.Country.GetValue();
                                }
                                //Get value of Note
                                if (CreditMemoRet.BillAddress.Note != null)
                                {
                                        string Note5445 = (string)CreditMemoRet.BillAddress.Note.GetValue();
                                }
                        }
                        if (CreditMemoRet.BillAddressBlock != null)
                        {
                                //Get value of Addr1
                                if (CreditMemoRet.BillAddressBlock.Addr1 != null)
                                {
                                        string Addr15446 = (string)CreditMemoRet.BillAddressBlock.Addr1.GetValue();
                                }
                                //Get value of Addr2
                                if (CreditMemoRet.BillAddressBlock.Addr2 != null)
                                {
                                        string Addr25447 = (string)CreditMemoRet.BillAddressBlock.Addr2.GetValue();
                                }
                                //Get value of Addr3
                                if (CreditMemoRet.BillAddressBlock.Addr3 != null)
                                {
                                        string Addr35448 = (string)CreditMemoRet.BillAddressBlock.Addr3.GetValue();
                                }
                                //Get value of Addr4
                                if (CreditMemoRet.BillAddressBlock.Addr4 != null)
                                {
                                        string Addr45449 = (string)CreditMemoRet.BillAddressBlock.Addr4.GetValue();
                                }
                                //Get value of Addr5
                                if (CreditMemoRet.BillAddressBlock.Addr5 != null)
                                {
                                        string Addr55450 = (string)CreditMemoRet.BillAddressBlock.Addr5.GetValue();
                                }
                        }
                        if (CreditMemoRet.ShipAddress != null)
                        {
                                //Get value of Addr1
                                if (CreditMemoRet.ShipAddress.Addr1 != null)
                                {
                                        string Addr15451 = (string)CreditMemoRet.ShipAddress.Addr1.GetValue();
                                }
                                //Get value of Addr2
                                if (CreditMemoRet.ShipAddress.Addr2 != null)
                                {
                                        string Addr25452 = (string)CreditMemoRet.ShipAddress.Addr2.GetValue();
                                }
                                //Get value of Addr3
                                if (CreditMemoRet.ShipAddress.Addr3 != null)
                                {
                                        string Addr35453 = (string)CreditMemoRet.ShipAddress.Addr3.GetValue();
                                }
                                //Get value of Addr4
                                if (CreditMemoRet.ShipAddress.Addr4 != null)
                                {
                                        string Addr45454 = (string)CreditMemoRet.ShipAddress.Addr4.GetValue();
                                }
                                //Get value of Addr5
                                if (CreditMemoRet.ShipAddress.Addr5 != null)
                                {
                                        string Addr55455 = (string)CreditMemoRet.ShipAddress.Addr5.GetValue();
                                }
                                //Get value of City
                                if (CreditMemoRet.ShipAddress.City != null)
                                {
                                        string City5456 = (string)CreditMemoRet.ShipAddress.City.GetValue();
                                }
                                //Get value of State
                                if (CreditMemoRet.ShipAddress.State != null)
                                {
                                        string State5457 = (string)CreditMemoRet.ShipAddress.State.GetValue();
                                }
                                //Get value of PostalCode
                                if (CreditMemoRet.ShipAddress.PostalCode != null)
                                {
                                        string PostalCode5458 = (string)CreditMemoRet.ShipAddress.PostalCode.GetValue();
                                }
                                //Get value of Country
                                if (CreditMemoRet.ShipAddress.Country != null)
                                {
                                        string Country5459 = (string)CreditMemoRet.ShipAddress.Country.GetValue();
                                }
                                //Get value of Note
                                if (CreditMemoRet.ShipAddress.Note != null)
                                {
                                        string Note5460 = (string)CreditMemoRet.ShipAddress.Note.GetValue();
                                }
                        }
                        if (CreditMemoRet.ShipAddressBlock != null)
                        {
                                //Get value of Addr1
                                if (CreditMemoRet.ShipAddressBlock.Addr1 != null)
                                {
                                        string Addr15461 = (string)CreditMemoRet.ShipAddressBlock.Addr1.GetValue();
                                }
                                //Get value of Addr2
                                if (CreditMemoRet.ShipAddressBlock.Addr2 != null)
                                {
                                        string Addr25462 = (string)CreditMemoRet.ShipAddressBlock.Addr2.GetValue();
                                }
                                //Get value of Addr3
                                if (CreditMemoRet.ShipAddressBlock.Addr3 != null)
                                {
                                        string Addr35463 = (string)CreditMemoRet.ShipAddressBlock.Addr3.GetValue();
                                }
                                //Get value of Addr4
                                if (CreditMemoRet.ShipAddressBlock.Addr4 != null)
                                {
                                        string Addr45464 = (string)CreditMemoRet.ShipAddressBlock.Addr4.GetValue();
                                }
                                //Get value of Addr5
                                if (CreditMemoRet.ShipAddressBlock.Addr5 != null)
                                {
                                        string Addr55465 = (string)CreditMemoRet.ShipAddressBlock.Addr5.GetValue();
                                }
                        }
                        //Get value of IsPending
                        if (CreditMemoRet.IsPending != null)
                        {
                                bool IsPending5466 = (bool)CreditMemoRet.IsPending.GetValue();
                        }
                        //Get value of PONumber
                        if (CreditMemoRet.PONumber != null)
                        {
                                string PONumber5467 = (string)CreditMemoRet.PONumber.GetValue();
                        }
                        if (CreditMemoRet.TermsRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.TermsRef.ListID != null)
                                {
                                        string ListID5468 = (string)CreditMemoRet.TermsRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.TermsRef.FullName != null)
                                {
                                        string FullName5469 = (string)CreditMemoRet.TermsRef.FullName.GetValue();
                                }
                        }
                        //Get value of DueDate
                        if (CreditMemoRet.DueDate != null)
                        {
                                DateTime DueDate5470 = (DateTime)CreditMemoRet.DueDate.GetValue();
                        }
                        if (CreditMemoRet.SalesRepRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.SalesRepRef.ListID != null)
                                {
                                        string ListID5471 = (string)CreditMemoRet.SalesRepRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.SalesRepRef.FullName != null)
                                {
                                        string FullName5472 = (string)CreditMemoRet.SalesRepRef.FullName.GetValue();
                                }
                        }
                        //Get value of FOB
                        if (CreditMemoRet.FOB != null)
                        {
                                string FOB5473 = (string)CreditMemoRet.FOB.GetValue();
                        }
                        //Get value of ShipDate
                        if (CreditMemoRet.ShipDate != null)
                        {
                                DateTime ShipDate5474 = (DateTime)CreditMemoRet.ShipDate.GetValue();
                        }
                        if (CreditMemoRet.ShipMethodRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.ShipMethodRef.ListID != null)
                                {
                                        string ListID5475 = (string)CreditMemoRet.ShipMethodRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.ShipMethodRef.FullName != null)
                                {
                                        string FullName5476 = (string)CreditMemoRet.ShipMethodRef.FullName.GetValue();
                                }
                        }
                        //Get value of Subtotal
                        if (CreditMemoRet.Subtotal != null)
                        {
                                double Subtotal5477 = (double)CreditMemoRet.Subtotal.GetValue();
                        }
                        if (CreditMemoRet.ItemSalesTaxRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.ItemSalesTaxRef.ListID != null)
                                {
                                        string ListID5478 = (string)CreditMemoRet.ItemSalesTaxRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.ItemSalesTaxRef.FullName != null)
                                {
                                        string FullName5479 = (string)CreditMemoRet.ItemSalesTaxRef.FullName.GetValue();
                                }
                        }
                        //Get value of SalesTaxPercentage
                        if (CreditMemoRet.SalesTaxPercentage != null)
                        {
                                double SalesTaxPercentage5480 = (double)CreditMemoRet.SalesTaxPercentage.GetValue();
                        }
                        //Get value of SalesTaxTotal
                        if (CreditMemoRet.SalesTaxTotal != null)
                        {
                                double SalesTaxTotal5481 = (double)CreditMemoRet.SalesTaxTotal.GetValue();
                        }
                        //Get value of TotalAmount
                        if (CreditMemoRet.TotalAmount != null)
                        {
                                double TotalAmount5482 = (double)CreditMemoRet.TotalAmount.GetValue();
                        }
                        //Get value of CreditRemaining
                        if (CreditMemoRet.CreditRemaining != null)
                        {
                                double CreditRemaining5483 = (double)CreditMemoRet.CreditRemaining.GetValue();
                        }
                        if (CreditMemoRet.CurrencyRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.CurrencyRef.ListID != null)
                                {
                                        string ListID5484 = (string)CreditMemoRet.CurrencyRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.CurrencyRef.FullName != null)
                                {
                                        string FullName5485 = (string)CreditMemoRet.CurrencyRef.FullName.GetValue();
                                }
                        }
                        //Get value of ExchangeRate
                        if (CreditMemoRet.ExchangeRate != null)
                        {
                                IQBFloatType ExchangeRate5486 = (IQBFloatType)CreditMemoRet.ExchangeRate.GetValue();
                        }
                        //Get value of CreditRemainingInHomeCurrency
                        if (CreditMemoRet.CreditRemainingInHomeCurrency != null)
                        {
                                double CreditRemainingInHomeCurrency5487 = (double)CreditMemoRet.CreditRemainingInHomeCurrency.GetValue();
                        }
                        //Get value of Memo
                        if (CreditMemoRet.Memo != null)
                        {
                                string Memo5488 = (string)CreditMemoRet.Memo.GetValue();
                        }
                        if (CreditMemoRet.CustomerMsgRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.CustomerMsgRef.ListID != null)
                                {
                                        string ListID5489 = (string)CreditMemoRet.CustomerMsgRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.CustomerMsgRef.FullName != null)
                                {
                                        string FullName5490 = (string)CreditMemoRet.CustomerMsgRef.FullName.GetValue();
                                }
                        }
                        //Get value of IsToBePrinted
                        if (CreditMemoRet.IsToBePrinted != null)
                        {
                                bool IsToBePrinted5491 = (bool)CreditMemoRet.IsToBePrinted.GetValue();
                        }
                        //Get value of IsToBeEmailed
                        if (CreditMemoRet.IsToBeEmailed != null)
                        {
                                bool IsToBeEmailed5492 = (bool)CreditMemoRet.IsToBeEmailed.GetValue();
                        }
                        //Get value of IsTaxIncluded
                        if (CreditMemoRet.IsTaxIncluded != null)
                        {
                                bool IsTaxIncluded5493 = (bool)CreditMemoRet.IsTaxIncluded.GetValue();
                        }
                        if (CreditMemoRet.CustomerSalesTaxCodeRef != null)
                        {
                                //Get value of ListID
                                if (CreditMemoRet.CustomerSalesTaxCodeRef.ListID != null)
                                {
                                        string ListID5494 = (string)CreditMemoRet.CustomerSalesTaxCodeRef.ListID.GetValue();
                                }
                                //Get value of FullName
                                if (CreditMemoRet.CustomerSalesTaxCodeRef.FullName != null)
                                {
                                        string FullName5495 = (string)CreditMemoRet.CustomerSalesTaxCodeRef.FullName.GetValue();
                                }
                        }
                        //Get value of Other
                        if (CreditMemoRet.Other != null)
                        {
                                string Other5496 = (string)CreditMemoRet.Other.GetValue();
                        }
                        //Get value of ExternalGUID
                        if (CreditMemoRet.ExternalGUID != null)
                        {
                                string ExternalGUID5497 = (string)CreditMemoRet.ExternalGUID.GetValue();
                        }
                        if (CreditMemoRet.LinkedTxnList != null)
                        {
                                for (int i5498 = 0; i5498 < CreditMemoRet.LinkedTxnList.Count; i5498++)
                                {
                                        ILinkedTxn LinkedTxn = CreditMemoRet.LinkedTxnList.GetAt(i5498);
                                        //Get value of TxnID
                                        string TxnID5499 = (string)LinkedTxn.TxnID.GetValue();
                                        //Get value of TxnType
                                        ENTxnType TxnType5500 = (ENTxnType)LinkedTxn.TxnType.GetValue();
                                        //Get value of TxnDate
                                        DateTime TxnDate5501 = (DateTime)LinkedTxn.TxnDate.GetValue();
                                        //Get value of RefNumber
                                        if (LinkedTxn.RefNumber != null)
                                        {
                                                string RefNumber5502 = (string)LinkedTxn.RefNumber.GetValue();
                                        }
                                        //Get value of LinkType
                                        if (LinkedTxn.LinkType != null)
                                        {
                                                ENLinkType LinkType5503 = (ENLinkType)LinkedTxn.LinkType.GetValue();
                                        }
                                        //Get value of Amount
                                        double Amount5504 = (double)LinkedTxn.Amount.GetValue();
                                }
                        }
                        if (CreditMemoRet.ORCreditMemoLineRetList != null)
                        {
                                for (int i5505 = 0; i5505 < CreditMemoRet.ORCreditMemoLineRetList.Count; i5505++)
                                {
                                        IORCreditMemoLineRet ORCreditMemoLineRet5506 = CreditMemoRet.ORCreditMemoLineRetList.GetAt(i5505);
                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet != null)
                                        {
                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet != null)
                                                {
                                                        //Get value of TxnLineID
                                                        string TxnLineID5507 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.TxnLineID.GetValue();
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ItemRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.ItemRef.ListID != null)
                                                                {
                                                                        string ListID5508 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.ItemRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.ItemRef.FullName != null)
                                                                {
                                                                        string FullName5509 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.ItemRef.FullName.GetValue();
                                                                }
                                                        }
                                                        //Get value of Desc
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.Desc != null)
                                                        {
                                                                string Desc5510 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.Desc.GetValue();
                                                        }
                                                        //Get value of Quantity
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.Quantity != null)
                                                        {
                                                                int Quantity5511 = (int)ORCreditMemoLineRet5506.CreditMemoLineRet.Quantity.GetValue();
                                                        }
                                                        //Get value of UnitOfMeasure
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.UnitOfMeasure != null)
                                                        {
                                                                string UnitOfMeasure5512 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.UnitOfMeasure.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.OverrideUOMSetRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.OverrideUOMSetRef.ListID != null)
                                                                {
                                                                        string ListID5513 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.OverrideUOMSetRef.FullName != null)
                                                                {
                                                                        string FullName5514 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue();
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORRate != null)
                                                        {
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORRate.Rate != null)
                                                                {
                                                                        //Get value of Rate
                                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORRate.Rate != null)
                                                                        {
                                                                                double Rate5516 = (double)ORCreditMemoLineRet5506.CreditMemoLineRet.ORRate.Rate.GetValue();
                                                                        }
                                                                }
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORRate.RatePercent != null)
                                                                {
                                                                        //Get value of RatePercent
                                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORRate.RatePercent != null)
                                                                        {
                                                                                double RatePercent5517 = (double)ORCreditMemoLineRet5506.CreditMemoLineRet.ORRate.RatePercent.GetValue();
                                                                        }
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ClassRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.ClassRef.ListID != null)
                                                                {
                                                                        string ListID5518 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.ClassRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.ClassRef.FullName != null)
                                                                {
                                                                        string FullName5519 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.ClassRef.FullName.GetValue();
                                                                }
                                                        }
                                                        //Get value of Amount
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.Amount != null)
                                                        {
                                                                double Amount5520 = (double)ORCreditMemoLineRet5506.CreditMemoLineRet.Amount.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteRef.ListID != null)
                                                                {
                                                                        string ListID5521 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteRef.FullName != null)
                                                                {
                                                                        string FullName5522 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteRef.FullName.GetValue();
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteLocationRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteLocationRef.ListID != null)
                                                                {
                                                                        string ListID5523 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteLocationRef.FullName != null)
                                                                {
                                                                        string FullName5524 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue();
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORSerialLotNumber != null)
                                                        {
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null)
                                                                {
                                                                        //Get value of SerialNumber
                                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null)
                                                                        {
                                                                                string SerialNumber5526 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue();
                                                                        }
                                                                }
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORSerialLotNumber.LotNumber != null)
                                                                {
                                                                        //Get value of LotNumber
                                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ORSerialLotNumber.LotNumber != null)
                                                                        {
                                                                                string LotNumber5527 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue();
                                                                        }
                                                                }
                                                        }
                                                        //Get value of ExpirationDateForSerialLotNumber
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ExpirationDateForSerialLotNumber != null)
                                                        {
                                                                string Expdate = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.ExpirationDateForSerialLotNumber.GetValue();
                                                        }
                                                        //Get value of ServiceDate
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.ServiceDate != null)
                                                        {
                                                                DateTime ServiceDate5528 = (DateTime)ORCreditMemoLineRet5506.CreditMemoLineRet.ServiceDate.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.SalesTaxCodeRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.SalesTaxCodeRef.ListID != null)
                                                                {
                                                                        string ListID5529 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.SalesTaxCodeRef.FullName != null)
                                                                {
                                                                        string FullName5530 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue();
                                                                }
                                                        }
                                                        //Get value of Other1
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.Other1 != null)
                                                        {
                                                                string Other15531 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.Other1.GetValue();
                                                        }
                                                        //Get value of Other2
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.Other2 != null)
                                                        {
                                                                string Other25532 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.Other2.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo != null)
                                                        {
                                                                //Get value of CreditCardNumber
                                                                string CreditCardNumber5533 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue();
                                                                //Get value of ExpirationMonth
                                                                int ExpirationMonth5534 = (int)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue();
                                                                //Get value of ExpirationYear
                                                                int ExpirationYear5535 = (int)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue();
                                                                //Get value of NameOnCard
                                                                string NameOnCard5536 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue();
                                                                //Get value of CreditCardAddress
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress != null)
                                                                {
                                                                        string CreditCardAddress5537 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue();
                                                                }
                                                                //Get value of CreditCardPostalCode
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode != null)
                                                                {
                                                                        string CreditCardPostalCode5538 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue();
                                                                }
                                                                //Get value of CommercialCardCode
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode != null)
                                                                {
                                                                        string CommercialCardCode5539 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue();
                                                                }
                                                                //Get value of TransactionMode
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode != null)
                                                                {
                                                                        ENTransactionMode TransactionMode5540 = (ENTransactionMode)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue();
                                                                }
                                                                //Get value of CreditCardTxnType
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType != null)
                                                                {
                                                                        ENCreditCardTxnType CreditCardTxnType5541 = (ENCreditCardTxnType)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue();
                                                                }
                                                                //Get value of ResultCode
                                                                int ResultCode5542 = (int)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue();
                                                                //Get value of ResultMessage
                                                                string ResultMessage5543 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue();
                                                                //Get value of CreditCardTransID
                                                                string CreditCardTransID5544 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue();
                                                                //Get value of MerchantAccountNumber
                                                                string MerchantAccountNumber5545 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue();
                                                                //Get value of AuthorizationCode
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode != null)
                                                                {
                                                                        string AuthorizationCode5546 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue();
                                                                }
                                                                //Get value of AVSStreet
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet != null)
                                                                {
                                                                        ENAVSStreet AVSStreet5547 = (ENAVSStreet)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue();
                                                                }
                                                                //Get value of AVSZip
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip != null)
                                                                {
                                                                        ENAVSZip AVSZip5548 = (ENAVSZip)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue();
                                                                }
                                                                //Get value of CardSecurityCodeMatch
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch != null)
                                                                {
                                                                        ENCardSecurityCodeMatch CardSecurityCodeMatch5549 = (ENCardSecurityCodeMatch)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue();
                                                                }
                                                                //Get value of ReconBatchID
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID != null)
                                                                {
                                                                        string ReconBatchID5550 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue();
                                                                }
                                                                //Get value of PaymentGroupingCode
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode != null)
                                                                {
                                                                        int PaymentGroupingCode5551 = (int)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue();
                                                                }
                                                                //Get value of PaymentStatus
                                                                ENPaymentStatus PaymentStatus5552 = (ENPaymentStatus)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue();
                                                                //Get value of TxnAuthorizationTime
                                                                DateTime TxnAuthorizationTime5553 = (DateTime)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue();
                                                                //Get value of TxnAuthorizationStamp
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp != null)
                                                                {
                                                                        int TxnAuthorizationStamp5554 = (int)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue();
                                                                }
                                                                //Get value of ClientTransID
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID != null)
                                                                {
                                                                        string ClientTransID5555 = (string)ORCreditMemoLineRet5506.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue();
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineRet.DataExtRetList != null)
                                                        {
                                                                for (int i5556 = 0; i5556 < ORCreditMemoLineRet5506.CreditMemoLineRet.DataExtRetList.Count; i5556++)
                                                                {
                                                                        IDataExtRet DataExtRet = ORCreditMemoLineRet5506.CreditMemoLineRet.DataExtRetList.GetAt(i5556);
                                                                        //Get value of OwnerID
                                                                        if (DataExtRet.OwnerID != null)
                                                                        {
                                                                                string OwnerID5557 = (string)DataExtRet.OwnerID.GetValue();
                                                                        }
                                                                        //Get value of DataExtName
                                                                        string DataExtName5558 = (string)DataExtRet.DataExtName.GetValue();
                                                                        //Get value of DataExtType
                                                                        ENDataExtType DataExtType5559 = (ENDataExtType)DataExtRet.DataExtType.GetValue();
                                                                        //Get value of DataExtValue
                                                                        string DataExtValue5560 = (string)DataExtRet.DataExtValue.GetValue();
                                                                }
                                                        }
                                                }
                                        }
                                        if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet != null)
                                        {
                                                if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet != null)
                                                {
                                                        //Get value of TxnLineID
                                                        string TxnLineID5561 = (string)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.TxnLineID.GetValue();
                                                        //Get value of ListID
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.ItemGroupRef.ListID != null)
                                                        {
                                                                string ListID5562 = (string)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.ItemGroupRef.ListID.GetValue();
                                                        }
                                                        //Get value of FullName
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.ItemGroupRef.FullName != null)
                                                        {
                                                                string FullName5563 = (string)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.ItemGroupRef.FullName.GetValue();
                                                        }
                                                        //Get value of Desc
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.Desc != null)
                                                        {
                                                                string Desc5564 = (string)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.Desc.GetValue();
                                                        }
                                                        //Get value of Quantity
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.Quantity != null)
                                                        {
                                                                int Quantity5565 = (int)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.Quantity.GetValue();
                                                        }
                                                        //Get value of UnitOfMeasure
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.UnitOfMeasure != null)
                                                        {
                                                                string UnitOfMeasure5566 = (string)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.UnitOfMeasure.GetValue();
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.OverrideUOMSetRef != null)
                                                        {
                                                                //Get value of ListID
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID != null)
                                                                {
                                                                        string ListID5567 = (string)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID.GetValue();
                                                                }
                                                                //Get value of FullName
                                                                if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName != null)
                                                                {
                                                                        string FullName5568 = (string)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName.GetValue();
                                                                }
                                                        }
                                                        //Get value of IsPrintItemsInGroup
                                                        bool IsPrintItemsInGroup5569 = (bool)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.IsPrintItemsInGroup.GetValue();
                                                        //Get value of TotalAmount
                                                        double TotalAmount5570 = (double)ORCreditMemoLineRet5506.CreditMemoLineGroupRet.TotalAmount.GetValue();
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.CreditMemoLineRetList != null)
                                                        {
                                                                for (int i5571 = 0; i5571 < ORCreditMemoLineRet5506.CreditMemoLineGroupRet.CreditMemoLineRetList.Count; i5571++)
                                                                {
                                                                        ICreditMemoLineRet CreditMemoLineRet = ORCreditMemoLineRet5506.CreditMemoLineGroupRet.CreditMemoLineRetList.GetAt(i5571);
                                                                        //Get value of TxnLineID
                                                                        string TxnLineID5572 = (string)CreditMemoLineRet.TxnLineID.GetValue();
                                                                        if (CreditMemoLineRet.ItemRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.ItemRef.ListID != null)
                                                                                {
                                                                                string ListID5573 = (string)CreditMemoLineRet.ItemRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.ItemRef.FullName != null)
                                                                                {
                                                                                string FullName5574 = (string)CreditMemoLineRet.ItemRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        //Get value of Desc
                                                                        if (CreditMemoLineRet.Desc != null)
                                                                        {
                                                                                string Desc5575 = (string)CreditMemoLineRet.Desc.GetValue();
                                                                        }
                                                                        //Get value of Quantity
                                                                        if (CreditMemoLineRet.Quantity != null)
                                                                        {
                                                                                int Quantity5576 = (int)CreditMemoLineRet.Quantity.GetValue();
                                                                        }
                                                                        //Get value of UnitOfMeasure
                                                                        if (CreditMemoLineRet.UnitOfMeasure != null)
                                                                        {
                                                                                string UnitOfMeasure5577 = (string)CreditMemoLineRet.UnitOfMeasure.GetValue();
                                                                        }
                                                                        if (CreditMemoLineRet.OverrideUOMSetRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.OverrideUOMSetRef.ListID != null)
                                                                                {
                                                                                string ListID5578 = (string)CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.OverrideUOMSetRef.FullName != null)
                                                                                {
                                                                                string FullName5579 = (string)CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.ORRate != null)
                                                                        {
                                                                                if (CreditMemoLineRet.ORRate.Rate != null)
                                                                                {
                                                                                //Get value of Rate
                                                                                if (CreditMemoLineRet.ORRate.Rate != null)
                                                                                {
                                                                                double Rate5581 = (double)CreditMemoLineRet.ORRate.Rate.GetValue();
                                                                                }
                                                                                }
                                                                                if (CreditMemoLineRet.ORRate.RatePercent != null)
                                                                                {
                                                                                //Get value of RatePercent
                                                                                if (CreditMemoLineRet.ORRate.RatePercent != null)
                                                                                {
                                                                                double RatePercent5582 = (double)CreditMemoLineRet.ORRate.RatePercent.GetValue();
                                                                                }
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.ClassRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.ClassRef.ListID != null)
                                                                                {
                                                                                string ListID5583 = (string)CreditMemoLineRet.ClassRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.ClassRef.FullName != null)
                                                                                {
                                                                                string FullName5584 = (string)CreditMemoLineRet.ClassRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        //Get value of Amount
                                                                        if (CreditMemoLineRet.Amount != null)
                                                                        {
                                                                                double Amount5585 = (double)CreditMemoLineRet.Amount.GetValue();
                                                                        }
                                                                        if (CreditMemoLineRet.InventorySiteRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.InventorySiteRef.ListID != null)
                                                                                {
                                                                                string ListID5586 = (string)CreditMemoLineRet.InventorySiteRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.InventorySiteRef.FullName != null)
                                                                                {
                                                                                string FullName5587 = (string)CreditMemoLineRet.InventorySiteRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.InventorySiteLocationRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.InventorySiteLocationRef.ListID != null)
                                                                                {
                                                                                string ListID5588 = (string)CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.InventorySiteLocationRef.FullName != null)
                                                                                {
                                                                                string FullName5589 = (string)CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.ORSerialLotNumber != null)
                                                                        {
                                                                                if (CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null)
                                                                                {
                                                                                //Get value of SerialNumber
                                                                                if (CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null)
                                                                                {
                                                                                string SerialNumber5591 = (string)CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue();
                                                                                }
                                                                                }
                                                                                if (CreditMemoLineRet.ORSerialLotNumber.LotNumber != null)
                                                                                {
                                                                                //Get value of LotNumber
                                                                                if (CreditMemoLineRet.ORSerialLotNumber.LotNumber != null)
                                                                                {
                                                                                string LotNumber5592 = (string)CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue();
                                                                                }
                                                                                }
                                                                        }
                                                                        //Get value of ExpirationDateForSerialLotNumber
                                                                        if (CreditMemoLineRet.ExpirationDateForSerialLotNumber != null)
                                                                        {
                                                                                string ExpDate = (string)CreditMemoLineRet.ExpirationDateForSerialLotNumber.GetValue();
                                                                        }
                                                                        //Get value of ServiceDate
                                                                        if (CreditMemoLineRet.ServiceDate != null)
                                                                        {
                                                                                DateTime ServiceDate5593 = (DateTime)CreditMemoLineRet.ServiceDate.GetValue();
                                                                        }
                                                                        if (CreditMemoLineRet.SalesTaxCodeRef != null)
                                                                        {
                                                                                //Get value of ListID
                                                                                if (CreditMemoLineRet.SalesTaxCodeRef.ListID != null)
                                                                                {
                                                                                string ListID5594 = (string)CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue();
                                                                                }
                                                                                //Get value of FullName
                                                                                if (CreditMemoLineRet.SalesTaxCodeRef.FullName != null)
                                                                                {
                                                                                string FullName5595 = (string)CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue();
                                                                                }
                                                                        }
                                                                        //Get value of Other1
                                                                        if (CreditMemoLineRet.Other1 != null)
                                                                        {
                                                                                string Other15596 = (string)CreditMemoLineRet.Other1.GetValue();
                                                                        }
                                                                        //Get value of Other2
                                                                        if (CreditMemoLineRet.Other2 != null)
                                                                        {
                                                                                string Other25597 = (string)CreditMemoLineRet.Other2.GetValue();
                                                                        }
                                                                        if (CreditMemoLineRet.CreditCardTxnInfo != null)
                                                                        {
                                                                                //Get value of CreditCardNumber
                                                                                string CreditCardNumber5598 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue();
                                                                                //Get value of ExpirationMonth
                                                                                int ExpirationMonth5599 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue();
                                                                                //Get value of ExpirationYear
                                                                                int ExpirationYear5600 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue();
                                                                                //Get value of NameOnCard
                                                                                string NameOnCard5601 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue();
                                                                                //Get value of CreditCardAddress
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress != null)
                                                                                {
                                                                                string CreditCardAddress5602 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue();
                                                                                }
                                                                                //Get value of CreditCardPostalCode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode != null)
                                                                                {
                                                                                string CreditCardPostalCode5603 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue();
                                                                                }
                                                                                //Get value of CommercialCardCode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode != null)
                                                                                {
                                                                                string CommercialCardCode5604 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue();
                                                                                }
                                                                                //Get value of TransactionMode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode != null)
                                                                                {
                                                                                ENTransactionMode TransactionMode5605 = (ENTransactionMode)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue();
                                                                                }
                                                                                //Get value of CreditCardTxnType
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType != null)
                                                                                {
                                                                                ENCreditCardTxnType CreditCardTxnType5606 = (ENCreditCardTxnType)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue();
                                                                                }
                                                                                //Get value of ResultCode
                                                                                int ResultCode5607 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue();
                                                                                //Get value of ResultMessage
                                                                                string ResultMessage5608 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue();
                                                                                //Get value of CreditCardTransID
                                                                                string CreditCardTransID5609 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue();
                                                                                //Get value of MerchantAccountNumber
                                                                                string MerchantAccountNumber5610 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue();
                                                                                //Get value of AuthorizationCode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode != null)
                                                                                {
                                                                                string AuthorizationCode5611 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue();
                                                                                }
                                                                                //Get value of AVSStreet
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet != null)
                                                                                {
                                                                                ENAVSStreet AVSStreet5612 = (ENAVSStreet)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue();
                                                                                }
                                                                                //Get value of AVSZip
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip != null)
                                                                                {
                                                                                ENAVSZip AVSZip5613 = (ENAVSZip)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue();
                                                                                }
                                                                                //Get value of CardSecurityCodeMatch
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch != null)
                                                                                {
                                                                                ENCardSecurityCodeMatch CardSecurityCodeMatch5614 = (ENCardSecurityCodeMatch)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue();
                                                                                }
                                                                                //Get value of ReconBatchID
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID != null)
                                                                                {
                                                                                string ReconBatchID5615 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue();
                                                                                }
                                                                                //Get value of PaymentGroupingCode
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode != null)
                                                                                {
                                                                                int PaymentGroupingCode5616 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue();
                                                                                }
                                                                                //Get value of PaymentStatus
                                                                                ENPaymentStatus PaymentStatus5617 = (ENPaymentStatus)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue();
                                                                                //Get value of TxnAuthorizationTime
                                                                                DateTime TxnAuthorizationTime5618 = (DateTime)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue();
                                                                                //Get value of TxnAuthorizationStamp
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp != null)
                                                                                {
                                                                                int TxnAuthorizationStamp5619 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue();
                                                                                }
                                                                                //Get value of ClientTransID
                                                                                if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID != null)
                                                                                {
                                                                                string ClientTransID5620 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue();
                                                                                }
                                                                        }
                                                                        if (CreditMemoLineRet.DataExtRetList != null)
                                                                        {
                                                                                for (int i5621 = 0; i5621 < CreditMemoLineRet.DataExtRetList.Count; i5621++)
                                                                                {
                                                                                IDataExtRet DataExtRet = CreditMemoLineRet.DataExtRetList.GetAt(i5621);
                                                                                //Get value of OwnerID
                                                                                if (DataExtRet.OwnerID != null)
                                                                                {
                                                                                string OwnerID5622 = (string)DataExtRet.OwnerID.GetValue();
                                                                                }
                                                                                //Get value of DataExtName
                                                                                string DataExtName5623 = (string)DataExtRet.DataExtName.GetValue();
                                                                                //Get value of DataExtType
                                                                                ENDataExtType DataExtType5624 = (ENDataExtType)DataExtRet.DataExtType.GetValue();
                                                                                //Get value of DataExtValue
                                                                                string DataExtValue5625 = (string)DataExtRet.DataExtValue.GetValue();
                                                                                }
                                                                        }
                                                                }
                                                        }
                                                        if (ORCreditMemoLineRet5506.CreditMemoLineGroupRet.DataExtRetList != null)
                                                        {
                                                                for (int i5626 = 0; i5626 < ORCreditMemoLineRet5506.CreditMemoLineGroupRet.DataExtRetList.Count; i5626++)
                                                                {
                                                                        IDataExtRet DataExtRet = ORCreditMemoLineRet5506.CreditMemoLineGroupRet.DataExtRetList.GetAt(i5626);
                                                                        //Get value of OwnerID
                                                                        if (DataExtRet.OwnerID != null)
                                                                        {
                                                                                string OwnerID5627 = (string)DataExtRet.OwnerID.GetValue();
                                                                        }
                                                                        //Get value of DataExtName
                                                                        string DataExtName5628 = (string)DataExtRet.DataExtName.GetValue();
                                                                        //Get value of DataExtType
                                                                        ENDataExtType DataExtType5629 = (ENDataExtType)DataExtRet.DataExtType.GetValue();
                                                                        //Get value of DataExtValue
                                                                        string DataExtValue5630 = (string)DataExtRet.DataExtValue.GetValue();
                                                                }
                                                        }
                                                }
                                        }
                                }
                        }
                        if (CreditMemoRet.DataExtRetList != null)
                        {
                                for (int i5631 = 0; i5631 < CreditMemoRet.DataExtRetList.Count; i5631++)
                                {
                                        IDataExtRet DataExtRet = CreditMemoRet.DataExtRetList.GetAt(i5631);
                                        //Get value of OwnerID
                                        if (DataExtRet.OwnerID != null)
                                        {
                                                string OwnerID5632 = (string)DataExtRet.OwnerID.GetValue();
                                        }
                                        //Get value of DataExtName
                                        string DataExtName5633 = (string)DataExtRet.DataExtName.GetValue();
                                        //Get value of DataExtType
                                        ENDataExtType DataExtType5634 = (ENDataExtType)DataExtRet.DataExtType.GetValue();
                                        //Get value of DataExtValue
                                        string DataExtValue5635 = (string)DataExtRet.DataExtValue.GetValue();
                                }
                        }
                }




        }
}