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 method.

Restrictions

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

Input data

The input data structure in JSON is shown below.

Attention. It is mandatory to include the finance_token and operation_num parameters in the request. For more information, see the Accessing finance methods.
{
   "method": "GetCreditLimits",
   "finance_token": (string),
   "operation_num": (int)
}

Output data

The output data structure in JSON is shown below.

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

Parameters are described below.

Parameter Description
CreditLimitsInfo object
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.
CreditLimitsItem object
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.
Parameter Description
CreditLimitsInfo object
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.
CreditLimitsItem object
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.