Skip to content

Xero: Retrieve reports for 1099

Xero accounting.getReportTenNinetyNine: arguments, response, policy and SDK examples.

← Accounting operations · Get started

Operation xero.getreporttenninetynine

Provider route: GET /api.xro/2.0/Reports/TenNinetyNine. Alter supplies the connection’s credentials and routing.

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

import { App } from "@alter-ai/sdk";
import { XeroIntegration } from "@alter-ai/xero";
async function execute(input: Parameters<XeroIntegration["accounting"]["getReportTenNinetyNine"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new XeroIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.accounting.getReportTenNinetyNine(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_xero import XeroIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = XeroIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.accounting.get_report_ten_ninety_nine(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.reportYearstringOptional
headersobjectRequired within parentAdditional keys: not allowed
headers.xero-tenant-idstringRequired within parent

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve reports for 1099 — response body

Referenced models: Retrieve reports for 1099 — response body

Retrieve reports for 1099 — response body
FieldTypePresenceDescription and constraints
$objectRoot
ReportsarrayOptional
Reports[]ModelEach itemExpand Retrieve reports for 1099 — response body — Reports item

Referenced models: Retrieve reports for 1099 — response body — Reports item

Retrieve reports for 1099 — response body — Reports item
FieldTypePresenceDescription and constraints
$JSONRoot
ContactsarrayOptional
Contacts[]ModelEach itemExpand Retrieve reports for 1099 — response body — Reports item Contacts item
ReportDatestringOptionalDate of report
ReportNamestringOptionalSee Prepayment Types
ReportTitlestringOptionalSee Prepayment Types
ReportTypestringOptionalSee Prepayment Types
Known values: AgedPayablesByContact
UpdatedDateUTCstringOptionalUpdated Date
Read only: true

Referenced models: Retrieve reports for 1099 — response body — Reports item Contacts item

Retrieve reports for 1099 — response body — Reports item Contacts item
FieldTypePresenceDescription and constraints
$JSONRoot
Box1JSONOptional
Box1 (anyOf 1)numberAlternativeBox 1 on 1099 Form
Format: double
Box1 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box10JSONOptional
Box10 (anyOf 1)numberAlternativeBox 10 on 1099 Form
Format: double
Box10 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box11JSONOptional
Box11 (anyOf 1)numberAlternativeBox 11 on 1099 Form
Format: double
Box11 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box13JSONOptional
Box13 (anyOf 1)numberAlternativeBox 13 on 1099 Form
Format: double
Box13 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box14JSONOptional
Box14 (anyOf 1)numberAlternativeBox 14 on 1099 Form
Format: double
Box14 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box2JSONOptional
Box2 (anyOf 1)numberAlternativeBox 2 on 1099 Form
Format: double
Box2 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box3JSONOptional
Box3 (anyOf 1)numberAlternativeBox 3 on 1099 Form
Format: double
Box3 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box4JSONOptional
Box4 (anyOf 1)numberAlternativeBox 4 on 1099 Form
Format: double
Box4 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box5JSONOptional
Box5 (anyOf 1)numberAlternativeBox 5 on 1099 Form
Format: double
Box5 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box6JSONOptional
Box6 (anyOf 1)numberAlternativeBox 6 on 1099 Form
Format: double
Box6 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box7JSONOptional
Box7 (anyOf 1)numberAlternativeBox 7 on 1099 Form
Format: double
Box7 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box8JSONOptional
Box8 (anyOf 1)numberAlternativeBox 8 on 1099 Form
Format: double
Box8 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Box9JSONOptional
Box9 (anyOf 1)numberAlternativeBox 9 on 1099 Form
Format: double
Box9 (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
BusinessNamestringOptionalContact business name
CitystringOptionalContact city on 1099 Form
ContactIdstringOptionalContact contact id
Format: uuid
EmailstringOptionalContact email on 1099 Form
FederalTaxClassificationstringOptionalContact federal tax classification
Known values: SOLE_PROPRIETOR, PARTNERSHIP, TRUST_OR_ESTATE, NONPROFIT, C_CORP, S_CORP, OTHER
FederalTaxIDTypestringOptionalContact Fed Tax ID type
LegalNamestringOptionalContact legal name
NamestringOptionalContact name on 1099 Form
StatestringOptionalContact State on 1099 Form
StreetAddressstringOptionalContact address on 1099 Form
TaxIDstringOptionalContact tax id on 1099 Form
ZipstringOptionalContact zip on 1099 Form

SDK function policy ID: xero.getreporttenninetynine. Catalog operation: getReportTenNinetyNine. 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.