|
| 1 | +--- |
| 2 | +title: ApiRateLimits |
| 3 | +--- |
| 4 | + |
| 5 | +The `ApiRateLimits` class represents the rate limits of the GoCardless API. |
| 6 | + |
| 7 | +## Properties |
| 8 | + |
| 9 | +### `RequestLimit` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32) |
| 10 | + |
| 11 | +Indicates the maximum number of allowed requests within the defined time window. Usually populated in every response. |
| 12 | + |
| 13 | +### `RemainingRequests` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32) |
| 14 | + |
| 15 | +Indicates the number of remaining requests you can make in the current time window. Usually populated in every response. |
| 16 | + |
| 17 | +### `RemainingSecondsInTimeWindow` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32) |
| 18 | + |
| 19 | +Indicates the time remaining in the current time window (in seconds). Usually populated in every response. |
| 20 | + |
| 21 | +### `RequestLimitAccountsEndpoint` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32) |
| 22 | + |
| 23 | +Indicates the maximum number of allowed requests to the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint) within the defined time window. Only populated in responses from the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint). |
| 24 | + |
| 25 | +### `RemainingRequestsAccountsEndpoint` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32) |
| 26 | + |
| 27 | +Indicates the number of remaining requests to the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint) you can make in the current time window. Only populated in responses from the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint). |
| 28 | + |
| 29 | +### `RemainingSecondsInTimeWindowAccountsEndpoint` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32) |
| 30 | + |
| 31 | +Indicates the time remaining in the current time window (in seconds) for requests to the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint). Only populated in responses from the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint). |
| 32 | + |
| 33 | +## Constructor |
| 34 | + |
| 35 | +```csharp |
| 36 | +public ApiRateLimits(int requestLimit, int remainingRequests, int remainingTimeInTimeWindow, |
| 37 | + int maxAccountRequests, int remainingAccountRequests, int remainingTimeInAccountTimeWindow) |
| 38 | +``` |
| 39 | + |
| 40 | +### Parameters |
| 41 | + |
| 42 | +#### `requestLimit` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32)? |
| 43 | + |
| 44 | +Indicates the maximum number of allowed requests within the defined time window. Usually populated in every response. |
| 45 | + |
| 46 | +#### `remainingRequests` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32)? |
| 47 | + |
| 48 | +Indicates the number of remaining requests you can make in the current time window. Usually populated in every response. |
| 49 | + |
| 50 | +#### `remainingSecondsInTimeWindow` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32)? |
| 51 | + |
| 52 | +Indicates the time remaining in the current time window (in seconds). Usually populated in every response. |
| 53 | + |
| 54 | +#### `requestLimitAccountsEndpoint` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32)? |
| 55 | + |
| 56 | +Indicates the maximum number of allowed requests to the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint) within the defined time window. Only populated in responses from the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint). |
| 57 | + |
| 58 | +#### `remainingRequestsAccountsEndpoint` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32)? |
| 59 | + |
| 60 | +Indicates the number of remaining requests to the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint) you can make in the current time window. Only populated in responses from the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint). |
| 61 | + |
| 62 | +#### `remainingSecondsInTimeWindowAccountsEndpoint` - [int](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-int32)? |
| 63 | + |
| 64 | +Indicates the time remaining in the current time window (in seconds) for requests to the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint). Only populated in responses from the [AccountsEndpoint](/docs/api-reference/endpoints/accounts-endpoint). |
0 commit comments