Skip to content

QuickBooks: Query a report — apagingdetail query

QuickBooks apagingdetail.query: arguments, response, policy and SDK examples.

← apagingdetail operations · Get started · OpenAPI downloads

Contract 2026-10-20 · Operation quickbooks.apagingdetail.query_a_report

Provider route: GET /v3/company/{realmID}/reports/AgedPayableDetail. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/quickbooks with npm, or alter-sdk-quickbooks with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { QuickBooksIntegration } from "@alter-ai/quickbooks";
async function execute(input: Parameters<QuickBooksIntegration["apagingdetail"]["query"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new QuickBooksIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.apagingdetail.query(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_quickbooks import QuickBooksIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = QuickBooksIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.apagingdetail.query(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.accounting_methodstringOptionalThe accounting method used in the report. Supported Values: Cash , Accrual
query.aging_periodJSONOptionalThe number of days in the aging period. Supported Values: A numeric value.
Decimal string
query.aging_period (anyOf 1)numberAlternative
query.aging_period (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?$
query.columnsstringOptionalColumn types to be shown in the report. Supported Values: create_by, create_date, doc_num*, due_date*, last_mod_by, last_mod_date, memo*, past_due*, term_name, tx_date*, txn_type*, vend_bill_addr, vend_comp_name, vend_name*, vend_pri_cont, vend_pri_email, vend_pri_tel Additional columns with location tracking enabled: dept_name*
query.custom1stringOptionalFilter by the specified custom field as defined by the CustomField attribute in transaction entities where supported. Supported Values: Name of custom field.
query.custom2stringOptionalFilter by the specified custom field as defined by the CustomField attribute in transaction entities where supported. Supported Values: Name of custom field.
query.custom3stringOptionalFilter by the specified custom field as defined by the CustomField attribute in transaction entities where supported. Supported Values: Name of custom field.
query.end_duedatestringOptionalThe range of dates over which receivables are due, in the format YYYY-MM-DD . start_duedate must be less than end_duedate . If not specified, all data is returned.
query.num_periodsJSONOptionalThe number of periods to be shown in the report. Supported Values: A numeric value.
query.num_periods (anyOf 1)integerAlternative
query.num_periods (anyOf 2)stringAlternativePattern: ^-?[0-9]+$
query.past_dueJSONOptionalFilters report contents based on minimum days past due. Supported Values: Integer number of days. no filtering
query.past_due (anyOf 1)integerAlternative
query.past_due (anyOf 2)stringAlternativePattern: ^-?[0-9]+$
query.report_datestringOptionalStart date to use for the report, in the format YYYY-MM-DD .
query.shipviastringOptionalFilter by the shipping method as stored in Invoice.ShipMethodRef.Name . Supported Values: Any shipping method as sent in the Invoice.ShipMethodRef.Name attribute at Invoice create- or update-time.
query.start_duedatestringOptionalThe range of dates over which receivables are due, in the format YYYY-MM-DD . start_duedate must be less than end_duedate . If not specified, all data is returned.
query.termstringOptionalFilters report contents based on term or terms supplied. Supported Values: One or more comma separated term IDs as returned in the attribute, Term.Id of the Term object response code.
query.vendorstringOptionalFilters report contents to include information for specified vendors. Supported Values: One or more comma separated vendor IDs as returned in the attribute, Vendor.Id , of the Vendor object response code.
query.minorversionintegerOptionalMust equal: 75
query.requestidstringOptionalMinimum length: 1

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Query a report — taxsummary query — response body

Referenced models: Query a report — taxsummary query — response body

SDK function policy ID: quickbooks.apagingdetail.query_a_report. Catalog operation: apagingdetail/query_a_report. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.