Accounts
Retrieve an account
QuickBooks Desktop API
Core Resources
- Auth Sessions
- End Users
Utilities
Transactions
- All Transactions
- Bill Check Payments
- Bill Credit Card Payments
- Bills
- Checks
- Credit Card Charges
- Credit Card Credits
- Credit Memos
- Estimates
- Inventory Adjustments
- Invoices
- Item Receipts
- Journal Entries
- Purchase Orders
- Receive-Payments
- Sales Orders
- Sales Receipts
- Time Tracking Activities
- Transfers
- Vendor Credits
General
- Account Tax Lines
- Accounts
- Classes
- Company
- Customers / Jobs
- Date-Driven Terms
- Employees
- Inventory Sites
- Payment Methods
- Payroll Wage Items
- Preferences
- Price Levels
- Sales Representatives
- Sales-Tax Codes
- Standard Terms
- Vendors
Items
- Discount Items
- Inventory Assembly Items
- Inventory Items
- Item Groups
- Item Sites
- Non-Inventory Items
- Sales-Tax Items
- Service Items
- Subtotal Items
Accounts
Retrieve an account
Retrieves an account by ID.
GET
/
quickbooks-desktop
/
accounts
/
{id}
import Conductor from 'conductor-node';
const client = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
async function main() {
const account = await client.qbd.accounts.retrieve('80000001-1234567890', {
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(account.id);
}
main();
{
"id": "80000001-1234567890",
"objectType": "qbd_account",
"createdAt": "2021-10-01T17:34:56.000Z",
"updatedAt": "2021-10-01T20:45:30.000Z",
"revisionNumber": "1721172183",
"name": "Accounts-Payable",
"fullName": "Corporate:Accounts-Payable",
"isActive": true,
"parent": {
"id": "80000001-1234567890",
"fullName": "Corporate"
},
"sublevel": 1,
"accountType": "bank",
"specialAccountType": "undeposited_funds",
"isTaxAccount": true,
"accountNumber": "1010",
"bankAccountNumber": "123456789",
"description": "Accounts-payable are the amounts owed to suppliers for goods and services purchased on credit.",
"balance": "1000.00",
"totalBalance": "5000.00",
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"taxLineDetails": {
"taxLineId": 123,
"taxLineName": "State Sales Tax"
},
"cashFlowClassification": "operating",
"currency": {
"id": "80000001-1234567890",
"fullName": "USD"
},
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
Authorizations
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
Headers
The ID of the EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}"
).
Example:
"end_usr_1234567abcdefg"
Path Parameters
The QuickBooks-assigned unique identifier of the account to retrieve.
Example:
"80000001-1234567890"
Response
200 - application/json
Returns the specified account.
The response is of type object
.
import Conductor from 'conductor-node';
const client = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
async function main() {
const account = await client.qbd.accounts.retrieve('80000001-1234567890', {
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(account.id);
}
main();
{
"id": "80000001-1234567890",
"objectType": "qbd_account",
"createdAt": "2021-10-01T17:34:56.000Z",
"updatedAt": "2021-10-01T20:45:30.000Z",
"revisionNumber": "1721172183",
"name": "Accounts-Payable",
"fullName": "Corporate:Accounts-Payable",
"isActive": true,
"parent": {
"id": "80000001-1234567890",
"fullName": "Corporate"
},
"sublevel": 1,
"accountType": "bank",
"specialAccountType": "undeposited_funds",
"isTaxAccount": true,
"accountNumber": "1010",
"bankAccountNumber": "123456789",
"description": "Accounts-payable are the amounts owed to suppliers for goods and services purchased on credit.",
"balance": "1000.00",
"totalBalance": "5000.00",
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"taxLineDetails": {
"taxLineId": 123,
"taxLineName": "State Sales Tax"
},
"cashFlowClassification": "operating",
"currency": {
"id": "80000001-1234567890",
"fullName": "USD"
},
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}