Delivery: upload tariff [sandbox]
delivery_add_tariff_sandbox_v2Upload a tariff to manage direction availability, delivery cost, and terms. Use with delivery_update_terms and delivery_add_terminals_sandbox for complete tariff setup.
Instructions
Creates or replaces a tariff. [SANDBOX v2] Uploads a tariff so the delivery service controls direction availability, delivery cost and terms. Returns 200 on accept. Limits: body up to 400MB, up to 1 million directions. For delivery-service PARTNERS only. Prefer this v2 over any v1 tariff endpoint. Pair with delivery_update_terms (term zones) and delivery_add_terminals_sandbox (pickup points) to complete the tariff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable tariff name (for the UI). | |
| deliveryProviderTariffId | Yes | Tariff identifier on the delivery-service side. | |
| directions | Yes | Directions: directionTagFrom→directionTagTo link, tariff zone, minTerm/maxTerm (business days). | |
| tariffZones | Yes | Tariff zones: name, deliveryProviderTariffZoneId, items (per-service price calculation models). | |
| termsZones | Yes | Delivery-term zones: deliveryProviderZoneId, name, minTerm/maxTerm (business days). | |
| tariffType | No | Tariff type (optional). | |
| dryRun | No | v0.7.0: if true — returns a preview of the HTTP request without calling the Avito API. Safe for inspecting exactly what would be done. Default: the value of AVITO_MCP_DRY_RUN_DEFAULT (usually false). | |
| idempotencyKey | No | v0.7.0: optional key for duplicate protection. A repeat call with the same key within AVITO_MCP_IDEMPOTENCY_TTL_SEC returns the cached result. The same key with different args returns a conflict error — this is safe by design. |