Create a sandbox account
create_sandbox_accountCreate a test advertiser account in the Avito Ads sandbox and receive its accountID. Use it to set up a safe environment for testing campaigns and API interactions without affecting real data.
Instructions
SANDBOX ONLY: creates a test advertiser account and returns its accountID. This server refuses the call unless AVITO_ADS_ENVIRONMENT=sandbox, and the refusal costs no API point. contact must be a non-empty object, e.g. {"name":"Ivan Ivanov","email":"ivan@example.com","phone":"+79001234567"} — an empty one is rejected before any request goes out. Calling twice creates two accounts. It cannot edit or delete an account, and the server keeps working against AVITO_ADS_ACCOUNT_ID: the new id is not adopted, put it in the config to use it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inn | Yes | Taxpayer number (INN) of the test company: 10 digits for a company, 12 for a sole proprietor. | |
| kpp | No | Tax registration reason code (KPP). Companies (legalType ul) have one; sole proprietors do not — omit it then. | |
| ogrn | Yes | State registration number (OGRN for a company, OGRNIP for a sole proprietor). | |
| contact | Yes | Contact person of the account, passed to the API as-is and must not be empty, e.g. {"name":"Ivan Ivanov","email":"ivan@example.com","phone":"+79001234567"}. | |
| longName | Yes | Full legal name, e.g. "Obshchestvo s ogranichennoy otvetstvennostyu Romashka". | |
| legalType | No | Legal form: ul = company, ip = sole proprietor. | |
| shortName | Yes | Short legal name, e.g. "OOO Romashka". | |
| legalAddress | Yes | Registered legal address. | |
| actualAddress | Yes | Actual postal address; may repeat legalAddress. |