contract
Get a list of contracts.
Request format
Note
Pagination is available.
https://adfox.yandex.com/api/v1
? object=account
& action=list
& actionObject=contract
& [actionObjectID=<integer>]
|
|
To get data for only one contract, specify its ID. |
* Required parameter
Response format
<response>
<status>
<code>{integer}</code>
</status>
<result>
<data>
<row0>
<ID>{integer}</ID>
<externalID>{string}</externalID>
<type>{integer}</type>
<agentActingForPublisher>{integer}</agentActingForPublisher>
<chargePaidByAgent>{integer}</chargePaidByAgent>
<intermediaryContractID>{integer}</intermediaryContractID>
<customerID>{integer}</customerID>
<executorID>{integer}</executorID>
<subjectType>{integer}</subjectType>
<number>{string}</number>
<dateConclusion>{string}</dateConclusion>
<amountType>{float}</amountType>
<amountRub>{float}</amountRub>
<actionType>{integer}</actionType>
<isRegReport>{integer}</isRegReport>
<socialType>{integer}</socialType>
<contractRole>{integer}</contractRole>
</row0>
</data>
</result>
</response>
Response parameters
|
|
Request processing status. A value of |
|
|
List item with its corresponding number. |
|
|
Internal ID of the contract in Adfox. |
|
|
ID of the contract for the state register (ERIR). |
|
|
Client ID. To learn how to get a list of counterparty IDs, see contractor. |
|
|
Contractor ID. To learn how to get a list of counterparty IDs, see contractor. |
|
|
Contract type. Acceptable values:
|
|
|
The contractor is responsible for registering and submitting ad creatives. |
|
|
Description of actions performed by the intermediary representative. Acceptable values:
|
|
|
Subject matter of the contract. Acceptable values:
|
|
|
Number of the contract or additional agreement. |
|
|
Contract price. |
|
|
Contract price. Acceptable values:
|
|
|
Parent contract ID. |
|
|
Date of the contract or additional agreement. |
|
|
Contract type. Acceptable values:
|
|
|
Intermediary function, attribute of the monetary flow direction towards the principal. Required if the contract type
|
|
|
Attribute “Fee under this contract is paid by the intermediary, attorney, commission agent, or agent”. The field can be passed only in the intermediary contract
|
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=account&action=list&actionObject=contractResponse:
<response> <status> <code>0</code> </status> <result> <data> <row0> <ID>123</ID> <externalID>321</externalID> <type>0</type> <agentActingForPublisher>0</agentActingForPublisher> <chargePaidByAgent>0</chargePaidByAgent> <intermediaryContractID>12</intermediaryContractID> <customerID>1</customerID> <executorID>2</executorID> <subjectType>0</subjectType> <number>123456</number> <dateConclusion>2022-11-10</dateConclusion> <amountType>0</amountType> <amountRub>1000000 RUB</amountRub> <actionType>1</actionType> <isRegReport>1</isRegReport> <socialType>0</socialType> <contractRole>0</contractRole> </row0> </data> </result> </response>
Other actions with the object
See also other actions with the contract object:
To get data for only one contract, specify its ID.