contractor
Get a list of contractors.
Request format
Note
Pagination available.
https://adfox.yandex.com/api/v1
? object=account
& action=list
& actionObject=contractor
& [actionObjectID=<integer>]
|
To get data for only one contractor, specify their ID. Default value: |
* Required
Response format
<response>
<status>
<code>{integer}</code>
</status>
<result>
<data>
<row0>
<ID>{integer}</ID>
<ownerID>{integer}</ownerID>
<name>{string}</name>
<type>{integer}</type>
<roles>
<row0>{integer}</row0>
<row1>{integer}</row1>
</roles>
<countryOKSM>{string}</countryOKSM>
<inn>{string}</inn>
<mobilePhone>{string}</mobilePhone>
<epayNumber>{string}</epayNumber>
<regNumber>{string}</regNumber>
<isOrs>{integer}</isOrs>
<isRr>{integer}</isRr>
<rsUrl>{string}</rsUrl>
</row0>
</data>
</result>
</response>
Response parameters
|
Request processing status. If the value is |
|
List item with its corresponding number. |
|
Contractor's unique ID. |
|
Account ID. |
|
Contractor's name. |
|
Contractor type. Acceptable values:
|
|
Roles that a contractor can assume when entering into a contract. Acceptable values:
|
|
Country code of jurisdiction of registration as per the All-Russian Classifier of Countries of the World. |
|
Contractor's TIN. |
|
Contractor's phone number. |
|
Number of the electronic payment facility. |
|
Registration number. |
|
Is an ad system operator. Acceptable values:
|
|
Is an ad distributor. Acceptable values:
|
|
Ad system URL or other information. |
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=account&action=list&actionObject=contractor
Response:
<response> <status> <code>0</code> </status> <result> <data> <row0> <ID>1111</ID> <ownerID>111111</ownerID> <name>contractor_1</name> <type>0</type> <roles> <row0>0</row0> <row1>1</row1> </roles> <countryOKSM>643</countryOKSM> <inn>1234567890</inn> <mobilePhone>+7 (999) 999-99-99</mobilePhone> <epayNumber>1234567890987654321</epayNumber> <regNumber>123</regNumber> <isOrs>0</isOrs> <isRr>0</isRr> <rsUrl>adfox.com</rsUrl> </row0> </data> </result> </response>
Other actions with the object
See more actions with the contractor
object:
To get data for only one contractor, specify their ID.
Default value: 0
(display the list of all contractors).
Required