Shopify + Nova Poshta + Monobank: how to automate shipments and payments
How we connect Shopify with Nova Poshta and Monobank: automatic shipment creation, payment links, statuses in the order. The architecture, the pitfalls and what ready-made apps don't do.
- Shopify
- Нова пошта
- Monobank
- Render
For a Ukrainian online store on Shopify, the two biggest manual processes are creating shipments with Nova Poshta, Ukraine's largest delivery service, and checking payments. A manager opens the order, copies the address into the Nova Poshta account, creates a waybill, copies the number back and separately checks the payment. That's a few minutes per order and a chance to get one digit wrong. Here's how we automated this process for the jewellery brand Tobi Mozhna, and what to keep in mind if you're doing something similar.
What a Shopify and Nova Poshta integration automates
- Branch selection at checkout with search by city and number, so the address lands in the order already in Nova Poshta's format.
- Automatic shipment creation when the order is ready to ship (for example, after payment).
- The tracking number and link are written to the Shopify order, and the customer gets them by email.
- A Monobank payment link for orders paid after confirmation.
- Statuses: payment and delivery are visible right in the Shopify admin, without opening the Nova Poshta account.
Architecture: how it works under the hood
The integration is a small service between three APIs:
- Shopify sends a webhook about a new or updated order.
- The service checks the conditions: delivery method is Nova Poshta, payment received (or cash on delivery chosen), no shipment created yet.
- It creates the shipment through the Nova Poshta API: sender, recipient, branch, weight, declared value and, if needed, payment control.
- It writes the tracking number to the order as a fulfilment with tracking, and Shopify emails the customer itself.
- For Monobank payment, it creates an invoice in acquiring and sends the customer a link. Monobank's payment webhook is verified and marks the order as paid.
The service runs on cloud hosting with its code on GitHub: updates deploy automatically, and errors arrive as notifications.
Why not a ready-made app
Ready-made Shopify apps for Nova Poshta cover the typical scenario well. We build a custom integration when:
- shipments have to be created conditionally (after payment, after a manager's approval, only for certain products);
- there's Monobank payment and its status has to control shipping;
- you need non-standard parameters: several senders, different warehouses, insurance, special content descriptions;
- the store doesn't want to depend on a subscription and a third-party app developer.
Pitfalls of the Nova Poshta API
- Directories. Cities, branches and parcel lockers have their own identifiers. You need to store them and update them regularly, because branches open and close.
- Weight and dimensions. If product weight isn't filled in on Shopify, the shipment is created with default parameters and the delivery cost may differ. Fill in weights at least for your main products.
- Recipient phone. Nova Poshta requires a valid Ukrainian number. Normalise the format at checkout, or some shipments won't be created.
- Repeat webhooks. Shopify can send the same order update several times, so the service has to check whether a shipment already exists to avoid duplicates.
- API outages. Sometimes the Nova Poshta API doesn't respond. You need retries with a pause and a notification if a shipment still isn't created after several attempts.
Pitfalls of Monobank payments
- Webhook verification. Don't trust a webhook without checking its signature, or someone could "pay" for an order with a forged request.
- Amounts and currency. The invoice amount is passed in kopiykas (hundredths of a hryvnia), so it's easy to be off by a factor of 100.
- Unpaid invoices. Set an expiry for the link and an automatic reminder to the customer if the payment doesn't arrive.
What changes for the manager
Before the integration, the manager works in three windows: Shopify, the Nova Poshta account and Monobank. After it, in one: the Shopify admin, which already shows payment, tracking number and delivery status. Manual work remains only for exceptions: address changes, returns, unusual shipments.
What you can add on top
- A Telegram bot for parcel tracking: the customer sends a phone number and the bot replies with the status.
- Reminders about a parcel waiting at the branch, to reduce returns.
- A daily report for the owner: how many shipments, how many payments, which shipments are stuck.
Summary
A Shopify integration with Nova Poshta and Monobank removes the most routine and error-prone part of the process: copying addresses and reconciling payments. For a typical store, a ready-made app may be enough. But if you take payments through Monobank, create shipments conditionally or send unusual parcels, a small custom service pays off quickly and doesn't depend on third-party subscriptions.
FAQ
Are there ready-made Shopify apps for Nova Poshta?
Yes, the Shopify App Store has apps for branch selection at checkout and shipment creation, and for a typical store they're often enough. A custom integration is needed when shipments must be created automatically under certain conditions (after payment, after a manager's approval), when you work with several warehouses or cash on delivery, or when Monobank payment has to be built into the process.
How does a customer choose a Nova Poshta branch at Shopify checkout?
Through a city and branch field with search that pulls the directories from the Nova Poshta API. An app or a custom checkout extension adds it. The selected branch is saved in the order, and the shipment is later created from it.
How does Monobank payment work in Shopify?
The most reliable option for Ukrainian stores: the service creates an invoice in Monobank acquiring and sends the customer a payment link. After payment, Monobank sends a webhook; the service verifies it and marks the Shopify order as paid.
What about cash on delivery?
For cash on delivery, the shipment is created with a payment-control amount, and the Shopify order stays unpaid until the parcel is collected. The payment status updates when Nova Poshta returns the "received" status.
Where does an integration like this run?
As a small service on cloud hosting (we use Render) with the code on GitHub. It receives webhooks from Shopify and Monobank, calls the Nova Poshta API and writes data back to the order. Hosting costs about as much as an inexpensive subscription.