contract
Get a list of contracts.
Request format
Note
Pagination 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. Default value: |
* Required
Response format
<response>
<status>
<code>{integer}</code>
</status>
<result>
<data>
<row0>
<ID>{integer}</ID>
<externalID>{string}</externalID>
<customerID>{integer}</customerID>
<executorID>{integer}</executorID>
<type>{integer}</type>
<isRegReport>{integer}</isRegReport>
<actionType>{integer}</actionType>
<subjectType>{integer}</subjectType>
<number>{string}</number>
<amountRub>{float}</amountRub>
<isVat>{integer}</isVat>
<intermediaryContractID>{integer}</intermediaryContractID>
<dateConclusion>{string}</dateConclusion>
<isFinalAgreement>{integer}</isFinalAgreement>
</row0>
</data>
</result>
</response>
Response parameters
|
Request processing status. If the value is |
|
List item with its corresponding number. |
|
Internal ID of the contract in Adfox |
|
Contract ID for the Russian state register. |
|
Customer ID. |
|
Executor ID. |
|
Contract type. Acceptable values:
|
|
The executor is obliged to register and submit creatives. |
|
Description of the mediation/representative activity. Acceptable values:
|
|
Information about the subject matter of a contract. Acceptable values:
|
|
Number of a contract/additional agreement. |
|
Contract price. |
|
Price includes VAT. Acceptable values:
|
|
Parent contract ID. |
|
Date of a contract/additional agreement. Format: |
|
Original contract or not. Acceptable values:
|
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=account&action=list&actionObject=contract
Response:
<response> <status> <code>0</code> </status> <result> <data> <row0> <ID>123</ID> <externalID>321</externalID> <customerID>1</customerID> <executorID>2</executorID> <type>0</type> <isRegReport>1</isRegReport> <actionType>1</actionType> <subjectType>0</subjectType> <number>123456</number> <amountRub>1000000 RUB</amountRub> <isVat>1</isVat> <intermediaryContractID>12</intermediaryContractID> <dateConclusion>2022-11-10</dateConclusion> <isFinalAgreement>1</isFinalAgreement> </row0> </data> </result> </response>
Other actions with the object
See more actions with the contract
object:
To get data for only one contract, specify its ID.
Default value: 0
(display the list of all contracts).
Required