---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/direct/doc/dg-v4/en/reference/GetCreditLimits.md
  - https://yandex.com/dev/direct/doc/dg-v4/ru/reference/GetCreditLimits.md
  - href: en/reference/GetCreditLimits.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/direct/doc/dg-v4/en/llms.txt

# GetCreditLimits
Returns information about credit provided to an advertising agency for campaign payments.
Credit is given to advertising agencies based on contracts. Payment by credit is made using the [PayCampaigns](https://yandex.com/dev/direct/doc/dg-v4/en/reference/PayCampaigns.md) method.

## Restrictions

The method can be called on behalf of a single user up to 1000 times per day.


## Input data {#input}

The input data structure in JSON is shown below.


{% note alert %}

It is mandatory to include the `finance_token` and `operation_num` parameters in the request. For more information, see the [Accessing finance methods](https://yandex.com/dev/direct/doc/dg-v4/en/concepts/finance-token.md).

{% endnote %}


```javascript
{
   "method": "GetCreditLimits",
   "finance_token": (string),
   "operation_num": (int)
}
```


## Output data {#output}

The output data structure in JSON is shown below.

```javascript
{
   "data": {
      /* CreditLimitsInfo */
      "Currency": (string),
      "Limits": [
         {  /* CreditLimitsItem */
            "ContractID": (string),
            "Limit": (float),
            "LimitSpent": (float)
         }
         ...
      ]
   }
}
```

Parameters are described below.


#|
||
**<sup >Parameter</sup>**
|
**<sup >Description</sup>**
||

||
**<sub >CreditLimitsInfo object</sub>**
||
||
`Currency`
|
The currency that is used for providing credit information.
||
||
`Limits`
|
An array of `CreditLimitsItem` objects. Each object contains credit data for a single credit agreement. If credit has not been granted to the client, the `Limits` parameter is absent.
||

||
**<sub >CreditLimitsItem object</sub>**
||
||
`ContractID`
|
The number of the credit agreement.
||
||
`Limit`
|
Maximum amount of credit.
||
||
`LimitSpent`
|
The amount of credit already used for campaign payments when the method is called.
||
|#

