Plan or create Nova Poshta waybills in bulk
np_create_waybills_bulkBuilds a waybill plan for many orders (dry run, default) or creates the waybills of a previous plan. The plan lists for every order whether it is ready, needs a city/branch choice (with candidates), is skipped (already has a waybill, cancelled, other carrier, courier delivery) or has an error, plus the cash-on-delivery total. Creation costs one action per created waybill and writes the numbers back to the stores.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "np_create_waybills_bulk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| store | No | Limit to one store connection id or platform (prom, rozetka …) | |
| choices | No | Corrections for needs_choice items: {order_ref: {warehouse_ref, city_ref}} | |
| dry_run | No | true (default): only build a plan; false: create the ready items of plan_id | |
| plan_id | No | plan_id returned by a dry run (required when dry_run=false) | |
| order_refs | No | Orders to include; default: open orders without a waybill | |
| created_from | No | Orders created from YYYY-MM-DD; default 7 days ago | |
| connection_id | No | Nova Poshta connection id from list_connections; default: the main one |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| demo | No | ||
| note | No | ||
| failed | No | ||
| created | No | ||
| dry_run | Yes | ||
| plan_id | Yes | Identifier of this plan; creation with dry_run=false refers to it | |
| results | No | Creation: one entry per order | |
| skipped | No | ||
| summary | No | Dry run: counts and cash-on-delivery total | |
| expires_at | No | ||
| plan_items | No | Dry run: one entry per order | |
| labels_a4_url | No | ||
| labels_100x100_url | No |