ODBC Driver for QuickBooks Online

Build 20.0.7587

RefundReceiptLineItems

Create, update, delete, and query QuickBooks RefundReceiptLineItems.

Table Specific Information

RefundReceipts may be inserted, queried, or updated via the RefundReceipts or RefundReceiptLineItems tables. RefundReceipts may be deleted by using the RefundReceipts table.

Insert

To add a RefundReceipt, specify a Customer, DepositToAccount and at least one Line Item. All columns denoted with a # are Line Item columns and can be used for inserting multiple Line Items for a new RefundReceipt transaction. For example, the following will insert a new RefundReceipt with two Line Items:

INSERT INTO RefundReceiptLineItems (CustomerRef, DepositToAccountRef, Line_DetailType#1, Line_SalesItemLineDetail_ItemRef#1, Line_Amount#1, Line_DetailType#2, Line_SalesItemLineDetail_ItemRef#2, Line_Amount#2) VALUES ('4', '45', 'SalesItemLineDetail', '2', 0.01, 'SalesItemLineDetail', '3', 0.02)

To add lines to an existing RefundReceipt, You'll need to specify the RefundReceiptId in the WHERE clause for the INSERT command. For example:

INSERT INTO RefundReceiptLineItems (RefundReceiptId, Line_DetailType#1, Line_SalesItemLineDetail_ItemRef#1, Line_Amount#1, Line_DetailType#2, Line_SalesItemLineDetail_ItemRef#2, Line_Amount#2) VALUES ('1234', 'SalesItemLineDetail', '2', 0.01, 'SalesItemLineDetail', '3', 0.02)

Update

To update an existing Line Item, you'll need to specify the LineId:

UPDATE RefundReceiptLineItems SET Line_SalesItemLineDetail_Qty=20 WHERE LineId='5656'

Delete

To delete existing Line Items, you'll need to set the LineId and RefundReceiptId:

DELETE From RefundReceiptLineItems WHERE LineId='5656' AND RefundReceiptId='1'

Columns

Name Type ReadOnly References Filterable Sortable Description
LineId [KEY] String True true false

The Id of the line item of the invoice of the read receipt.

RefundReceiptId [KEY] String False

RefundReceipts.Id

true true

The Id of the read receipt.

SyncToken String True false false

Version number of the object. It is used to lock an object for use by one app at a time. As soon as an application modifies an object, its SyncToken is incremented. Attempts to modify an object specifying an older SyncToken fails. Only the latest version of the object is maintained by QuickBooks Online.

MetaData_CreateTime Datetime True true true

The time the record was created.

MetaData_LastUpdatedTime Datetime True true true

The time the record was last updated.

CustomFieldAggregate String False false false

An XML aggregate of custom field information.

DocNumber String False true true

The reference number for the transaction.

TxnDate Date False true true

The date entered by the user when this transaction occurred.

PrivateNote String False false false

A private note that does not appear on the transaction records.

Line_Id# String False false false

The Id of the line item.

Line_LineNum# String False false false

The line number of the line item.

Line_Description# String False false false

The description of the line item.

Line_Amount# Decimal False false false

The amount of the line item.

Line_DetailType# String False false false

The detail type of the line item. Different detail types indicate different types of line items.

Line_SalesItemLineDetail_ItemRef# String False

Items.Id

false false

The Id of the item in the line item.

Line_SalesItemLineDetail_ItemRef_Name# String True

Items.Name

false false

The name of the item in the line item.

Line_SalesItemLineDetail_ClassRef# String False

Class.Id

false false

The Id of the class in the line item.

Line_SalesItemLineDetail_ClassRef_Name# String True

Class.FullyQualifiedName

false false

The name of the class in the line item.

Line_SalesItemLineDetail_UnitPrice# Decimal False false false

The unit price of the item.

Line_SalesItemLineDetail_Qty# Double False false false

The number of items for the line item.

Line_SalesItemLineDetail_TaxCodeRef# String False

TaxCodes.Id

false false

The tax code for the item.

Line_SalesItemLineDetail_ServiceDate# Date False false false

The service date for the item.

TxnTaxDetail_TxnTaxCodeRef String False

TaxCodes.Id

false false

The tax code of the transaction.

TxnTaxDetail_TotalTax String False false false

Total tax calculated for the transaction, excluding any tax lines manually inserted into the transaction line list.

TxnTaxDetail_TaxLineAggregate String False false false

An XML aggregate of tax line items.

CustomerRef String False

Customers.Id

true false

The Id of the customer.

CustomerRef_Name String True

Customers.DisplayName

false false

The name of the customer.

CustomerMemo String False false false

The message to the customer that appears in the invoice and in the printed invoice.

BillAddr_Id String False false false

The Id of the entity for the billing address, mainly used for modifying the address. This field is assigned by the data service.

BillAddr_Line1 String False false false

First line of the address.

BillAddr_Line2 String False false false

Second line of the address.

BillAddr_Line3 String False false false

Third line of the address.

BillAddr_Line4 String False false false

Fourth line of the address.

BillAddr_Line5 String False false false

Fifth line of the address.

BillAddr_City String False false false

City name.

BillAddr_Country String False false false

Country name.

BillAddr_CountrySubDivisionCode String False false false

Region within a country. For example, the state name for the USA or the province name for Canada.

BillAddr_PostalCode String False false false

Postal code. For example, the zip code for the USA and Canada.

BillAddr_Note String False false false

Note for the customer.

BillAddr_Lat String False false false

The latitude coordinate of the geocoded billing address.

BillAddr_Long String False false false

The longitude coordinate of the geocoded billing address.

ShipAddr_Id String False false false

The Id of the entity for the shipping address, mainly used for modifying the address. This field is assigned by the data service.

ShipAddr_Line1 String False false false

First line of the address.

ShipAddr_Line2 String False false false

Second line of the address.

ShipAddr_Line3 String False false false

Third line of the address.

ShipAddr_Line4 String False false false

Fourth line of the address.

ShipAddr_Line5 String False false false

Fifth line of the address.

ShipAddr_City String False false false

City name.

ShipAddr_Country String False false false

Country name.

ShipAddr_CountrySubDivisionCode String False false false

Region within a country. For example, the state name for the USA or the province name for Canada.

ShipAddr_PostalCode String False false false

Postal code. For example, the zip code for the USA and Canada.

ShipAddr_Note String False false false

Note for the customer.

ShipAddr_Lat String False false false

The latitude coordinate of the geocoded shipping address.

ShipAddr_Long String False false false

The longitude coordinate of the geocoded shipping address.

ClassRef String False

Class.Id

false false

The Id of the class associated with the transaction.

ClassRef_Name String True

Class.FullyQualifiedName

false false

The name of the class associated with the transaction.

CheckPayment_CheckNum String True false false

The check number printed on the check.

CheckPayment_Status String False false false

Status of the check. Values provided by service/business logic.

CheckPayment_NameOnAccount String False false false

Name of persons or entities holding the account, as printed on the check.

CheckPayment_AcctNum String False false false

Checking account number, as printed on the check.

CheckPayment_BankName String True false false

The name of the bank on which the check was drawn.

CreditCardPayment_CreditChargeInfo_Type String False false false

The type of credit card.

CreditCardPayment_CreditChargeInfo_NameOnAcct String False false false

The name of the account holder, as printed on the card.

CreditCardPayment_CreditChargeInfo_CcExpiryMonth Integer False false false

The expiration month of the card.

CreditCardPayment_CreditChargeInfo_CcExpiryYear Integer False false false

The four-digit expiration year of the card.

CreditCardPayment_CreditChargeInfo_BillAddrStreet String False false false

The street of the billing address of the credit card holder.

CreditCardPayment_CreditChargeInfo_PostalCode String False false false

The postal code.

CreditCardPayment_CreditChargeInfo_Amount Decimal False false false

The amount processed using the credit card

CreditCardPayment_CreditChargeInfo_ProcessPayment Boolean False false false

False or no value-Store credit card information only.True-Store credit card payment transaction information in CreditChargeResponse below.

CreditCardPayment_CreditChargeResponse_CCTransId String False false false

Unique identifier of the payment transaction.

CreditCardPayment_CreditChargeResponse_AuthCode String False false false

Code returned from the credit card processor to indicate that the charge will be paid by the card issuer.

CreditCardPayment_CreditChargeResponse_TxnAuthorizationTime Datetime False false false

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

CreditCardPayment_CreditChargeResponse_Status String False false false

Indicates the status of the payment transaction. Possible values include Completed, Unknown.

SalesTermRef String False

Terms.Id

false false

The Id of the sales term associated with the transaction.

SalesTermRef_Name String True

Terms.Name

false false

The name of the sales term associated with the transaction.

DueDate Date False true false

The date when the invoice is to be paid, not including any early payment discount incentives or late payment penalties. If the date is not supplied, the current date on the server is used.

ShipMethodRef String False false false

The Id of the shipping method associated with the transaction.

ShipMethodRef_Name String True false false

The name of the shipping method associated with the transaction.

ShipDate Date False false false

The date for delivery of goods or services.

TotalAmt Decimal True true true

This field indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.

ApplyTaxAfterDiscount Boolean False false false

This field sets whether discounts are applied before the tax is calculated.

DepartmentRef String False

Departments.Id

false false

The Id of the department, which stores the location of the transaction as defined using location tracking in QuickBooks Online.

DepartmentRef_Name String True

Departments.Name

false false

The name of the department, which store the location of the transaction as defined using location tracking in QuickBooks Online.

PrintStatus String False false false

The print status of the invoice.

The allowed values are NotSet, NeedToPrint, PrintComplete.

BillEmail_Address String False false false

This field identifies the email address where the invoice is sent. If the value of EmailStatus is NeedToSend, BillEmail is a required input.

Balance Decimal False false false

This field indicates whether the transaction is a finance charge.

PaymentMethodRef String False

PaymentMethods.Id

false false

The Id of the payment method associated with the transaction.

PaymentMethodRef_Name String True

PaymentMethods.Name

false false

The name of the payment method associated with the transaction.

PaymentRefNum String False false false

The reference number for the payment received.

PaymentType String False false false

The type of payment used for the transaction.

The allowed values are Cash, Check, CreditCard, Other.

DepositToAccountRef String False

Accounts.Id

false false

The asset account where the payment money is deposited. If you do not specify this account, QuickBooks Online uses the Undeposited Funds account.

DepositToAccountRef_Name String True

Accounts.Name

false false

The name of the asset account where the payment money is deposited. If you do not specify this account, QuickBooks Online uses the Undeposited Funds account.

CurrencyRef String False false false

The Id of the currency used in the transaction. This field is valid in the UK, AU, IN, and CA editions.

CurrencyRef_Name String False false false

The name of the currency in which all amounts on the associated transaction are expressed. This field is valid in the UK, AU, IN, and CA editions.

ExchangeRate Decimal False false false

The currency exchange rate. This field is valid only if the company file is set up to use the multicurrency feature. In QuickBooks, exchange rates are always recorded as the number of home currency units it takes to equal one foreign currency unit.This field is available for the UK, AU, IN, and CA editions.

GlobalTaxCalculation String False false false

The method in which tax is applied. This field is valid in the UK, AU, IN, and CA editions.

The allowed values are TaxExcluded, TaxInclusive, NotApplicable.

HomeTotalAmt Decimal True false false

Total amount of the transaction in the home currency. Includes the total of all the charges, allowances, and taxes. This field is valid in the UK, AU, IN, and CA editions.

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7587