Implementing product codes and business rules
At this stage the customer has selected a delivery option. The data that is required to prepare a parcel should now be available (generally speaking: delivery date, shipping product, delivery option, customer contact and address details). It is now possible to determine the shipping product code and apply the necessary business rules required for transmission of the shipments’ data to PostNL.
Each shipping product has its own product code(s) and (additional) business rules. Please consult the Products page for more information on product codes, business rules and validations.
A customer has selected a delivery date for an evening delivery. In a previous step we have confirmed (via an API call) evening delivery is available for the specified address and desired delivery date.
As a next step we choose a shippng product that is suitable for an evening delivery. For this example we will implement a Standard Shipment with product code “3085”.
Applying the additional business rules for evening deliveries we, for example, find an additional product option code is required in the confirmation to PostNL. This is (“characteristic 118, option 006”).
All required shipping data is transmitted to PostNL by sending a confirmation using a PostNL API.
Business rules Evening Delivery:
- Evening delivery is allowed on specified address and delivery date. This is confirmed via a call to the DeliveryDate and Timeframe API's.
- Product code is required and is suitable for evening deliveries.
- Product option code characteristic 118, option 006 is required
- Receiver Address fields required
- Company name or last name
- House number
- The receiver’s contact mobile phone number or email address is required.
Create shipping labels and send a confirmation
Creating a shipping label and confirming the shipments’ data to the carrier needs to happen fast and reliably. Choosing the right API solution helps streamline your order processing.
PostNL offers state-of-the-art API's that can be combined or used independently to fit your unique order processing needs.