Budget: 25 EUR Deadline: 3 days
The task is solved by connecting the Wix Velo backend with the SPEEDY and ECONT REST APIs: upon the order creation event (onOrderCreated in wix-ecom-backend), the server module collects the recipient's data, weight, and payment method, calls the necessary operator's API, and creates a waybill. If the order is not paid online, the request includes the amount of the cash on delivery plus the shipping cost - both operators support this by default, it is important to correctly pass the COD and payer side fields; otherwise, the waybill will be created but with an incorrect amount to be paid to the courier. The tracking number is saved in the order and sent to the client via a triggered email with the operator's tracking link.
A nuance of Wix Studio: all this logic must strictly reside on the Velo backend, and the API keys for SPEEDY and ECONT must be in the wix-secrets-manager, not in the frontend code, otherwise the keys will leak to anyone who opens the page's source. Additionally, both operators have a test mode, so the generation can be tested without real shipments.
I have already created a similar connection between Wix Velo and an external courier API, and I have been in web development since 2013, with delivery API integrations being a regular part of my work.
The only question: do you already have SPEEDY and ECONT accounts with API access, or do they still need to be obtained from the operators?
Please write in the chat - I will clarify the details and provide an exact timeline.