save_waybill
Create or update a Georgian waybill (ზედნადები) by submitting structured data including buyer, driver, transport, and goods details. Builds the full XML for tax compliance.
Instructions
Create or update a waybill (ზედნადების შექმნა/რედაქტირება). Builds the full WAYBILL XML from structured input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Waybill ID, 0 or omit for new | |
| type | Yes | Waybill type (1=inner, 2=transportation, 3=without transport, 4=distribution, 5=return, 6=sub-waybill) | |
| is_med | No | 0=normal, 1=medicine | |
| par_id | No | Parent waybill ID (for sub-waybills) | |
| status | Yes | Status: 0=saved, 1=active, 2=closed | |
| comment | No | Comment | |
| category | No | Category: 0=normal, 1=wood | |
| trans_id | Yes | Transport type ID from get_trans_types | |
| buyer_tin | Yes | Buyer TIN (taxpayer identification number) | |
| trans_txt | No | Transport type text (when trans_id=other) | |
| begin_date | Yes | Transport start date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss) | |
| buyer_name | Yes | Buyer name | |
| car_number | No | Vehicle plate number | |
| driver_tin | Yes | Driver personal number | |
| goods_list | Yes | Goods/items list (at least one item) | |
| driver_name | Yes | Driver full name | |
| end_address | Yes | Unloading/end address | |
| seler_un_id | Yes | Seller unique ID (from get_un_id) | |
| sub_waybills | No | Sub-waybill references | |
| delivery_date | No | Delivery date (YYYY-MM-DD) | |
| receiver_info | No | Receiver info | |
| start_address | Yes | Loading/start address | |
| chek_buyer_tin | No | 1=Georgian TIN, 0=foreign ID | |
| reception_info | No | Reception info | |
| waybill_number | No | Waybill number (assigned on activation) | |
| wood_docs_list | No | Wood documents (for category=1) | |
| chek_driver_tin | No | 1=Georgian TIN, 0=foreign ID | |
| tran_cost_payer | No | Transport cost payer: 1=buyer, 2=seller, 3=other | |
| transport_coast | No | Transport cost |