Pickup point data examples
Pickup points work differently for each shipping provider, but we tried to make it as generic as possible. But still, every shipping provider needs different information. Therefor we provide some examples.
The pickup_point_data in the order will be filled automatically for supported webshops, and will be used by supported shipping providers. We have support for Magento 1 and Lightspeed, with PostNL and B2C Europe for example. But more will be added over time.
We provide this information in a generic way in our API, so you can support this in your custom webshop or in your custom shipping provider.
These are the default attributes in pickup_point_data:
Most shipping providers work either with an 'id' of the pickup location, or with a full address. Extra options can be given in the 'options' array.
B2C Europe is pretty easy. You just provide the CYP ID as the pickup point ID.
With PakjeGemak we always need the full address of the point point location.
In the 'options' you need to set 'pakjegemak' to true and if the phone number in the order is not a mobile phone, you need to provide a mobile phone number in the options array.
PostNL PakjeGemak Early Morning
If the customer wants to pickup the shipment early, you can set `pickup_moment` to 'PGE' for 'PakjeGemakEarly'.
PostNL PakjeGemak Parcel Machine
If the pickup location is a Parcel Machine, you need to set `pakjegemak` to false, and `parcel_machine` to true.
PostNL Specific date in the future
If all options are false, but a delivery_date in the future is given, the shipment will be created with that delivery date. This will show the right expected delivery date on the track and trace page.
PostNL Evening delivery
Define 'pickup_moment' as 'Avond' to create a Evening shipment. This is only allowed on specific dates on specific addresses as defined by PostNL.