Nova Poshta: Create a waybill
np_waybill_createNova Poshta: CREATE the waybill (ТТН) for an order from its card. Pass draft_id from np_quote, or the order number (the card is prepared from the order). The confirmation shows the recipient, branch, box, weight, who pays, COD and NP's price; on «Створити» the waybill is created in the shop's NP account, its number and cost go into the order. Refused with the reason when something is missing (no key, no sender, no phone, no branch, no sizes) — say it as is. «створи ТТН для SO-17». test=true marks it «ТЕСТ OrgLines, видалити» (only when the person says it is a test). Runs propose→confirm. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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_waybill_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | No | A box key from np_quote/np_box_suggest options (np:… or own:…), when the person picks one. | |
| test | No | ||
| payer | No | Who pays NP: Recipient (default from settings) or Sender (the shop). | |
| phone | No | Recipient phone, only when the person names it. | |
| number | No | The order number as said: SO-17, 17. | |
| draft_id | No | ||
| order_id | No | The order id from erp_order_list. | |
| last_name | No | ||
| cod_amount | No | Cash on delivery in UAH; 0 = none. Only when the person says so. | |
| first_name | No | ||
| warehouse_ref | No | An NP branch ref from np_branches, only when the person picks another branch. |