CData Python Connector for Xero

Build 25.0.9454

GetLimitInfo

Retrieves limit information regarding API calls to the Projects API. It's used to monitor how many API calls remain for a tenant.

Procedure-Specific Information

This procedure reports information that the connector caches after each API request. If no requests have been made to a tenant on a connection than this procedure will report 0 rows. Otherwise, the LastModified field reports the last time the information in the row was updated.

If the last modified time is too long ago for your application to use, then this table may be refreshed by executing a query. The query must read at least one row to ensure that an API request is triggered:

SELECT * FROM Projects LIMIT 1

Result Set Columns

Name Type Description
TenantId String The unique identifier for the tenant that the API rate limit applies to. This value represents the specific tenant for which the API call limit is being tracked. The output will typically contain one row per tenant queried, though multiple tenants may be queried in some cases.
AppRemaining Integer The number of remaining API calls allowed for the current OAuth application within the current minute. The maximum allowable API calls for an app in a minute is 10,000, and this value reflects how many are still available.
MinuteRemaining Integer The number of API calls remaining for the current OAuth application for the current minute. This limit is specific to each individual tenant and the maximum number of calls allowed per minute per tenant is 60.
DayRemaining Integer The number of API calls the current OAuth app is allowed to make for the current day. The limit per tenant is set at a maximum of 5000 calls per day, and this value indicates how many calls are left for that specific tenant.
RetryAfter Integer The suggested time (in seconds) before retrying an API request if one of the above rate limits (minute or day) was exceeded. This value helps guide the client to avoid unnecessary retry attempts that could be rejected due to rate limiting.
LastModified Datetime The timestamp of when the API rate limit information was last updated. This value reflects when the rate limit data was last refreshed based on an API call. Since rate limit data is only updated when performing API calls, this value might be slightly out-of-date.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454