Register a contract (ORD)
create_contractRegister an ORD contract with an advertiser, specifying type, counterparty, and required legal details. Returns the contract ID and remaining API points.
Instructions
Registers an ORD contract between the account and an advertiser and returns {id} plus apiPointBalance (weekly API points left). Which fields are mandatory depends on type: service needs subject, isReportingRequired, date and number (cid is rejected); intermediary needs all of those plus object and isFundsAllocationToPrincipal (cid is rejected); external needs cid only (parentId is rejected). Pass the contractor's legal details in intermediary — required unless parentId is set; with parentId the record is an additional agreement to that contract and must omit intermediary. There is no edit or delete endpoint, so a wrong contract stays on the account forever.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | No | External contract id (ERID-side identifier). Required for type external, rejected for the others. | |
| date | No | Contract date, YYYY-MM-DD. Required for service and intermediary. | |
| type | Yes | Contract type: service (services rendered), intermediary (mediation), external (concluded outside Avito, identified by cid). | |
| number | No | Contract number. Required for service and intermediary. | |
| object | No | Contract action, the API's `object` field: distribution, conclude, commercial, other. Required for intermediary. | |
| subject | No | Contract subject: org-distribution, mediation, distribution, representation, other. Required for service and intermediary. | |
| parentId | No | Parent contract id. Set it to register an additional agreement; then omit intermediary. | |
| advertiserId | Yes | Advertiser this contract is with (the client). From list_advertisers. | |
| intermediary | No | Legal details of the contractor (the intermediary). Required unless parentId is set. | |
| counterpartyType | Yes | Counterparty type — sent as the API's `description` field: direct_with_advertiser or advertiser_intermediary. | |
| isReportingRequired | No | Whether acts/reports are required under the contract. Required for service and intermediary. | |
| isFundsAllocationToPrincipal | No | Whether funds are allocated to the principal. Required for intermediary. |