Packeta PUDOs
Using Widget
For integrating our Widget into your website, we suggest utilizing our integration library, which can be found at https://widget.packeta.com/v6/www/js/library.js.
You have the option to create a local mirror of this library. However, this approach won't provide access to any updates. As such, we advise dynamically linking this library to your website.
<script src="https://widget.packeta.com/v6/www/js/library.js"></script>
The library offers the Packeta.Widget.pick(apiKey, callback, options*, inElement*) method to open the widget window.
The easiest way to set up the widget and get a ready-to-use code snippet, similar to the one below, for your website is through our configurator:
- Register yourself at Packeta Client section, and get your API key at User support at Packeta Client section, or ask your account manager for the API key.
- You can also allow countries, PUDO point categories, external carrier's PUDO points, and specific PUDO points at Allowed branch settings at Packeta Client section. Your settings will be applicable in your widget within a maximum of 90 minutes.
- Configure your Widget and get a code snippet ready to paste to your website. Please note you have to provide your API key, for the example to work correctly.
The following is an example of a widget implementation designed to present Packeta pick-up points:
Use the Widget above to select a pick-up point and then open your browser's developer console to observe the object our widget returns upon selection of the pick-up point.
Additionally, you have the option to insert your own API key in the JS section of the fiddle.
Using data feed
To access the data on the currently available Packeta pick-up points, feel free to use our Packeta PUDOs feed. This data may assist you in crafting your own method for providing pick-up point options to your customers.
The URL for retrieving Packeta PUDOs data is as follows:
<!-- Packeta Pick-up points -->
https://pickup-point.api.packeta.com/v5/__API_KEY__/branch/json?lang=__LANGUAGE__
<!-- Packeta Boxes -->
https://pickup-point.api.packeta.com/v5/__API_KEY__/box/json?lang=__LANGUAGE__
It's vital to download these data feeds on a regular basis to ensure information accuracy. Under normal circumstances, it's advised to perform this operation at least once a day. For greater relevance, a four times daily download is ideally suggested. However, during high-activity periods or peak seasons, the recommended frequency is every hour.
Not updating your Packeta pick-up point / boxes data regularly can lead to issues during the packet creation or delivery process.
-
Minimum frequency is once a day.
-
Recommended update of Packeta pick-up point / boxes data is 4 times a day between 7:00 - 21:00.
-
Up to every hour between 7:00 - 21:00 during season time (October - December).
Processing speed optimizationRequest feed at times 'in between', like 14:23 | 17:37 | 19:56, rather than on the hour.
Calling it more than once an hour also isn't necessary, as the data is cached and result will be same.