novaposhta

v0.0.1-alpha.7
io.github.shopanaio/novaposhta Checked 1 day ago Published 1 year ago

MCP Server for Nova Poshta API integration with AI assistants

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

track_document

Track a single Nova Poshta document by number and optional phone to receive live status, location, and ETA. Doc 1.2 describes the standard success/data/errors/warnings/info envelope returned by Nova Poshta, which this helper surfaces back to the caller.

ParameterTypeDescription
DocumentNumber *stringNova Poshta tracking number (14 digits).
PhonestringOptional recipient phone in international format (380XXXXXXXXX).

track_multiple_documents

Track multiple Nova Poshta documents at once and receive aggregated statistics. Doc 1.2 states every API call returns the same envelope, so use the success/errors/warnings fields here to mirror the native batch tracking response.

ParameterTypeDescription
DocumentNumbers *arrayList of tracking numbers to check.

track_multiple

Track multiple Nova Poshta documents with organized results and statistics via TrackingDocument/getStatusDocuments (doc 1.2). Returns successful/failed tracking attempts with delivery statistics (delivered, in-transit, at-warehouse counts). More convenient than track_multiple_documents for batch operations.

ParameterTypeDescription
DocumentNumbers *arrayList of tracking numbers (14 digits each).

get_document_movement

Get movement history for up to 10 documents including statuses and timestamps. Doc 1.2 identifies InternetDocument numbers as the primary shipment identifiers, which this endpoint accepts in batches.

ParameterTypeDescription
DocumentNumbers *array
ShowDeliveryDetailsbooleanInclude extended delivery checkpoints.

get_document_list

List documents created in the given date range. Per doc 1.2, these queries target the InternetDocument model used for оформлення відправлень, so date filters help keep the success/data/errors response manageable.

ParameterTypeDescription
DateTimeFrom *stringStart date (format dd.mm.yyyy).
DateTimeTo *stringEnd date (format dd.mm.yyyy).
GetFullListstringUse "1" to request full list ignoring pagination (may be slow).
PagenumberPage number (default 1).

address_get_settlements

Get settlement areas (областей) via Address/getSettlementAreas (doc 1.3). Returns list of administrative regions/areas in Ukraine. Docs recommend caching this public directory for 12 hours.

ParameterTypeDescription
RefstringOptional area reference to get specific area.

address_get_settlement_country_region

Get settlement country regions (регіонів) for a specific area via Address/getSettlementCountryRegion (doc 1.3). Returns list of regions within an administrative area. Requires areaRef parameter. Docs recommend caching for 12 hours.

ParameterTypeDescription
AreaRef *stringArea reference from address_get_settlements.
RefstringOptional region reference to get specific region.

address_search_cities

Find Nova Poshta cities by name or postal index using Address/getCities (doc 1.3). Docs note the city directory is public (no API key) but must be cached and refreshed daily because it exposes Area and Delivery1-Delivery7 flags. IMPORTANT: Always use limit parameter (recommended: 10) to avoid large responses.

ParameterTypeDescription
FindByString *stringPartial city name or postal code.
LimitnumberItems per page (max 50). Recommended: 10 to avoid large responses.
PagenumberPage number (default 1).

address_search_settlements

Search for settlements (city, town, village) with pagination over the same Address/getCities dataset described in doc 1.3 (Area + Delivery1-Delivery7 fields, daily refresh recommended). IMPORTANT: Always use limit parameter (recommended: 10) to avoid large responses.

ParameterTypeDescription
CityName *stringSettlement name or postal code.
LimitnumberItems per page (1-500). Recommended: 10 to avoid large responses.
PagenumberPage number (default 1).

address_search_streets

Search for streets inside a settlement via Address/getStreet (doc 1.4). Used for door pickup/delivery flows, limited to 500 records per page, public but should be cached and refreshed daily. IMPORTANT: Always use limit parameter (recommended: 10) to avoid large responses.

ParameterTypeDescription
SettlementRef *stringSettlement reference ID.
StreetName *stringStreet name or fragment.
LimitnumberMax items to return. Recommended: 10 to avoid large responses.

address_get_warehouses

List Nova Poshta warehouses (branches, postomats, pickup points) via Address/getWarehouses (doc 1.5). Docs emphasize caching the branch directory daily to leverage schedule arrays, max weight limits, and warehouse types without re-fetching thousands of rows. IMPORTANT: Always use limit parameter (recommended: 10-20) to avoid large responses.

ParameterTypeDescription
BicycleParkingstringFilter by bicycle parking availability (1/0).
CityNamestringCity name filter.
CityRefstringCity reference from getCities.
FindByStringstringSearch string for warehouse name, address, or street.
LanguagestringLanguage code (UA, RU, EN).
LimitnumberItems per page (default 50). Recommended: 10-20 to avoid large responses.
POSTerminalstringFilter by POS terminal availability (1/0).
PagenumberPage number (default 1).
PostFinancestringFilter by NovaPay cash desk availability (1/0).
RefstringSpecific warehouse reference (returns single warehouse).
SettlementRefstringSettlement reference from searchSettlements.
TypeOfWarehouseRefstringFilter by warehouse type (Branch, Postomat, Pickup Point).
WarehouseIdstringWarehouse number (e.g., "1" for Branch #1).

address_save

Create new address for a counterparty via Address/save (doc 1.24). Requires API key plus CounterpartyRef, StreetRef, BuildingNumber; response returns the Ref and Description needed for door-to-door delivery.

ParameterTypeDescription
BuildingNumber *stringBuilding number (required).
CounterpartyRef *stringCounterparty reference.
StreetRef *stringStreet reference from address_search_streets.
FlatstringApartment number (optional).
NotestringAdditional note (optional).

address_update

Update existing counterparty address with Address/update (doc 1.25). Nova Poshta docs stress you can edit an address only until a waybill is created with it, so run this immediately after address creation.

ParameterTypeDescription
CounterpartyRef *stringCounterparty reference.
Ref *stringAddress reference to update.
BuildingNumberstringUpdated building number.
FlatstringUpdated apartment number.
NotestringUpdated note.
StreetRefstringUpdated street reference.

address_delete

Delete counterparty address by reference using Address/delete (doc 1.25). Allowed only before the address participates in an Internet document; afterward the API blocks deletion.

ParameterTypeDescription
Ref *stringAddress reference to delete.

waybill_calculate_cost

Calculate delivery cost and optional delivery date estimation for a shipment. Doc 1.2 explains that every Nova Poshta call sends apiKey/modelName/calledMethod/methodProperties, so this helper either forwards your raw InternetDocument payload or builds one from typed fields (CitySender, CityRecipient, ServiceType, CargoType, Cost, Weight, SeatsAmount).

ParameterTypeDescription
CargoTypestringCargo type (Parcel, Documents, TiresWheels, etc.).
CityRecipientstringRecipient city reference.
CitySenderstringSender city reference.
CostnumberDeclared value in UAH.
SeatsAmountnumberNumber of seats.
ServiceTypestringService type (WarehouseWarehouse, WarehouseDoors, etc.).
WeightnumberWeight in kg.
requestobjectRaw Nova Poshta price calculation payload (CitySender, CityRecipient, ServiceType, CargoType, Cost, Weight, SeatsAmount).

waybill_get_estimate

Get complete shipment estimate (price + delivery date) in one call via InternetDocument/getDocumentPrice and getDocumentDeliveryDate (doc 1.2). Combines cost calculation and delivery date estimation for convenience. Requires the same PascalCase parameters as waybill_calculate_cost.

ParameterTypeDescription
CargoTypestringCargo type (Parcel, Documents, TiresWheels, etc.).
CityRecipientstringRecipient city reference.
CitySenderstringSender city reference.
CostnumberDeclared value in UAH.
SeatsAmountnumberNumber of seats.
ServiceTypestringService type (WarehouseWarehouse, WarehouseDoors, etc.).
WeightnumberWeight in kg.
requestobjectRaw Nova Poshta price calculation payload.

waybill_create

Create a standard Nova Poshta waybill (Internet document) via InternetDocument/save (doc 1.2). This is the basic waybill creation method. For additional services use waybill_create_with_options. For postomat delivery use waybill_create_for_postomat.

ParameterTypeDescription
request *objectRaw Nova Poshta create waybill payload (see docs).

waybill_create_with_options

Create a Nova Poshta waybill with additional options and services via InternetDocument/save (doc 1.2). Supports backward delivery, additional services, third-party payer, and RedBox barcodes. Use this when you need COD, insurance, or return shipments.

ParameterTypeDescription
request *objectRaw Nova Poshta create waybill payload with additional options (backwardDeliveryData, additionalServices, thirdPerson, redBoxBarcode).

waybill_create_for_postomat

Create a waybill for postomat delivery via InternetDocument/save (doc 1.2). Postomats have size/weight restrictions (max 30kg, max dimensions). Requires proper warehouse selection (postomat type) and seat options configuration.

ParameterTypeDescription
request *objectRaw Nova Poshta create postomat waybill payload with optionsSeat array.

waybill_create_batch

Batch create multiple waybills sequentially via InternetDocument/save (doc 1.2). Processes each waybill one by one to avoid rate limiting. Returns array of results including any errors. Useful for bulk shipment creation.

ParameterTypeDescription
requests *arrayArray of Nova Poshta create waybill payloads.

waybill_update

Update an existing waybill. Per doc 1.2 the same InternetDocument request envelope is used for update calls, so pass the raw payload (must include DocumentRef) exactly as defined by Nova Poshta.

ParameterTypeDescription
request *objectRaw Nova Poshta update payload (must include DocumentRef).

waybill_delete

Delete one or multiple waybills by their DocumentRef via InternetDocument/delete (doc 1.2). Waybills can only be deleted before they enter processing. Returns success/error status for the operation.

ParameterTypeDescription
documentRefs *arrayArray of DocumentRef values to delete.

waybill_delete_batch

Batch delete multiple waybills by their DocumentRef via InternetDocument/delete (doc 1.2). Alias for waybill_delete that processes all refs in a single API call. Waybills can only be deleted before they enter processing.

ParameterTypeDescription
documentRefs *arrayArray of DocumentRef values to delete.

waybill_get_delivery_date

Get estimated delivery date for a city pair and service type. Doc 1.2 outlines the generic Nova Poshta envelope, and this helper builds the methodProperties (CitySender, CityRecipient, ServiceType, optional DateTime) expected by the delivery-date method.

ParameterTypeDescription
CityRecipientstringRecipient city reference.
CitySenderstringSender city reference.
DateTimestringOptional shipment date (dd.mm.yyyy).
ServiceTypestringService type.
requestobjectRaw Nova Poshta delivery date payload.

reference_get_cargo_types

List available cargo types supported by Nova Poshta via Common/getCargoTypes (doc 1.8). Docs advise caching this API-key-protected directory monthly; expect values such as Parcel, Cargo, Documents, TiresWheels, Pallet.

reference_get_pack_list

List available packaging types via Common/getPackList (doc 1.10). Returns standard package dimensions and descriptions. Useful for calculating delivery costs and validating package options. Docs recommend caching monthly.

ParameterTypeDescription
HeightnumberOptional package height filter in cm.
LengthnumberOptional package length filter in cm.
WidthnumberOptional package width filter in cm.

reference_get_tires_wheels_list

List available tires and wheels types via Common/getTiresWheelsList (doc 1.12). Returns types and descriptions for shipping tires and wheels as cargo. Docs recommend caching monthly.

reference_get_cargo_description_list

List cargo descriptions with optional search via Common/getCargoDescriptionList (doc 1.15). Returns predefined descriptions for common cargo types. Supports search by keyword. Docs recommend caching monthly.

ParameterTypeDescription
FindByStringstringOptional search keyword for cargo description.
PagenumberPage number (default 1).

reference_get_pickup_time_intervals

Get available pickup time intervals via Common/getPickupTimeIntervals (doc 1.17). Returns time windows when Nova Poshta can pick up packages from sender. Requires city reference and date. Docs recommend caching hourly.

ParameterTypeDescription
DateTime *stringPickup date (dd.mm.yyyy).
SenderCityRef *stringSender city reference from address_search_cities.

reference_get_backward_cargo_types

List backward delivery cargo types via Common/getBackwardDeliveryCargoTypes (doc 1.18). Returns types of cargo that can be sent back (documents, money, etc.). Used for return shipments and COD. Docs recommend caching monthly.

reference_get_redelivery_payers

List payer types for redelivery via Common/getTypesOfPayersForRedelivery (doc 1.19). Returns who can pay for backward delivery (Sender/Recipient). Used with return shipments. Docs recommend caching monthly.

reference_get_service_types

List delivery service types (warehouse-door etc.) through Common/getServiceType (doc 1.9). Docs say to refresh monthly and point out the four core technologies: WarehouseWarehouse, WarehouseDoors, DoorsWarehouse, DoorsDoors.

reference_get_payment_methods

List supported payment methods for shipments (Cash/NonCash) matching the Common/getPaymentForm directory from doc 1.7, which notes that non-cash payments are only available to customers with a Nova Poshta contract.

reference_get_pallet_types

List pallet types with dimensions and weight via Common/getPalletsList (doc 1.13). Refresh monthly per docs, especially when offering reverse delivery of pallets.

reference_get_time_intervals

Get available delivery time intervals for recipient city using Common/getTimeIntervals (doc 1.16). Requires RecipientCityRef (and optional DateTime) and returns Number/Start/End entries that docs recommend caching monthly.

ParameterTypeDescription
RecipientCityRef *stringRecipient city reference.
DateTimestringSpecific date (dd.mm.yyyy).

reference_get_ownership_forms

List corporate ownership forms required for counterparty creation via Common/getOwnershipFormsList (doc 1.11). Docs provide both short and full names for refs such as ТОВ, ПрАТ, ФГ and recommend a monthly refresh.

reference_decode_message

Decode Nova Poshta API message code into human readable text. Doc 1.2 explains how every response contains success/data/errors/warnings/info blocks with numeric codes; this helper calls getMessageCodeText to map those codes to UA/RU descriptions.

ParameterTypeDescription
MessageCode *stringMessage code (e.g., 20000200039).

reference_get_types_of_payers

Get list of payer types (Sender/Recipient/ThirdPerson) for waybill creation via Common/getTypesOfPayers (doc 1.7). Docs stress the ThirdPerson payer is accessible only after signing a service contract and that the directory should be cached monthly.

reference_get_payment_forms

Get list of payment forms (Cash/NonCash) for waybill creation with Common/getPaymentForm (doc 1.7). Nova Poshta notes non-cash payments are available only to contracted clients, so keep a cached copy to validate user choices.

reference_get_types_of_counterparties

Get list of counterparty types (PrivatePerson/Organization) via Common/getTypesOfCounterparties (doc 1.14). Requires API key and, per docs, should be refreshed monthly to stay aligned with sender/recipient onboarding rules.

counterparty_get_counterparties

Get counterparties list filtered by property (Sender/Recipient/ThirdPerson) via Counterparty/getCounterparties (doc 1.6). Docs require an API key, recommend caching the directory daily, and note each page tops out at 500 rows so always filter with CounterpartyProperty/FindByString.

ParameterTypeDescription
CounterpartyProperty *stringCounterparty role: Sender, Recipient, or ThirdPerson.
CityRefstringFilter by city reference.
FindByStringstringSearch by name, phone, or EDRPOU.
PagenumberPage number (default 1).

counterparty_get_addresses

Get addresses for a specific counterparty using Counterparty/getCounterpartyAddresses (doc 1.6). Requires API key plus CounterpartyProperty/Ref and, per docs, should be refreshed daily because every page is capped at 500 entries.

ParameterTypeDescription
Ref *stringCounterparty reference from getCounterparties.
CounterpartyPropertystringCounterparty role: Sender or Recipient.
PagenumberPage number (default 1).

counterparty_get_contact_persons

Get contact persons for a counterparty through Counterparty/getCounterpartyContactPersons (doc 1.6). API key is mandatory and the list should be cached daily; use paging to stay under the 500-record response cap.

ParameterTypeDescription
Ref *stringCounterparty reference.
PagenumberPage number (default 1).

counterparty_save

Create new counterparty (private person or organization) with Counterparty/save (docs 1.20–1.21). Provide CityRef + CounterpartyProperty/Type; private persons require first/last name while organizations must also send OwnershipForm and EDRPOU. Docs recommend refreshing supporting directories monthly and note an API key is required.

ParameterTypeDescription
CounterpartyProperty *stringRole: Sender or Recipient
CounterpartyType *stringType: PrivatePerson or Organization
Phone *stringPhone number in format 380XXXXXXXXX (required).
EDRPOUstringEDRPOU code (required for Organization).
EmailstringEmail address (optional).
FirstNamestringFirst name (required for PrivatePerson, optional for Organization).
LastNamestringLast name (required for PrivatePerson, optional for Organization).
MiddleNamestringMiddle name (optional).
OwnershipFormstringOwnership form reference (required for Organization).

counterparty_update

Update existing counterparty details via Counterparty/update (doc 1.22). Nova Poshta only lets you edit a counterparty from creation up until you create a waybill (ІД) with it, so run updates early.

ParameterTypeDescription
CounterpartyProperty *stringCounterparty role: Sender or Recipient
Ref *stringCounterparty reference to update.
EmailstringUpdated email.
FirstNamestringUpdated first name.
LastNamestringUpdated last name.
MiddleNamestringUpdated middle name.
PhonestringUpdated phone.

counterparty_delete

Delete counterparty by reference using Counterparty/delete (doc 1.22). IMPORTANT: Docs explicitly state only Recipient counterparties can be deleted through the API; Sender cleanup must go through your account manager.

ParameterTypeDescription
Ref *stringCounterparty reference to delete.

counterparty_get_options

Get counterparty options and permissions via Counterparty/getCounterpartyOptions (doc 1.23) to see booleans such as CanPayTheThirdPerson, CanSameDayDelivery, HideDeliveryCost, etc., before building a waybill.

ParameterTypeDescription
Ref *stringCounterparty reference.

contact_person_save

Create new contact person for a counterparty via ContactPerson/save (doc 1.26). Docs require entering all fields in Ukrainian and with an API key; response returns the Ref/Description pair referenced in waybills.

ParameterTypeDescription
CounterpartyRef *stringCounterparty reference from getCounterparties.
FirstName *stringFirst name (required).
LastName *stringLast name (required).
Phone *stringPhone number 380XXXXXXXXX (required).
EmailstringEmail address (optional).
MiddleNamestringMiddle name (optional).

contact_person_update

Update existing contact person details via ContactPerson/update (doc 1.27). Only legal entities may edit full profiles, private persons can change phone only, and edits are allowed solely before a waybill is issued for that counterparty.

ParameterTypeDescription
CounterpartyRef *stringCounterparty reference.
Ref *stringContact person reference to update.
EmailstringUpdated email.
FirstNamestringUpdated first name.
LastNamestringUpdated last name.
MiddleNamestringUpdated middle name.
PhonestringUpdated phone.

contact_person_delete

Delete contact person by reference using ContactPerson/delete (doc 1.27). Nova Poshta allows deletions via API only for legal entities and only until the contact was used on an Internet document.

ParameterTypeDescription
CounterpartyRef *stringCounterparty reference.
Ref *stringContact person reference to delete.