Integrated shipping
Use our integrated shipping to present available shipping methods to the customer directly in the checkout.
Overview
Integrated shipping presents your shipping options to the customer in the checkout. You can customize how the options are presented.
There are three options:
- Merchant provided. You handle all the shipping logic and send the options to present to the customer.
- nShift. Use this option if you use nShift Delivery checkout. Qliro Checkout then handles all shipping interactions with customers through nShift.
- Ingrid. Qliro Checkout works with the Ingrid delivery platform. You configure your shipping preferences in Ingrid, and the checkout displays them to the customer.
Merchant provided
You decide which options to present to the customer. Send them in the create order call, or as a response to Qliro's request to MerchantOrderAvailableShippingMethodsUrl. When the customer changes address or the cart updates, Qliro sends a POST request to that URL. You can then update the shipping options.
Example
{
"AvailableShippingMethods": [
{
"MerchantReference": "HOME_DELIVERY",
"ShippingFeeMerchantReference": "SHIPPING_FEE_REF_1",
"DisplayName": "Home Deliver",
"Descriptions": ["Expected date", "Expected time"],
"Brand": "DHL",
"PriceIncVat": 300,
"PriceExVat": 200,
"OriginalPrice": 0,
"SupportsAccessCode": true,
"SupportsDynamicSecondaryOptions": true,
"SecondaryOptions": [
{
"MerchantReference": "UniqueMerchantReference",
"DisplayName": "Pickup location 1",
"Descriptions": ["Address", "Hours"],
"Coordinates": { "Lat": 59.349962, "Lng": 18.04763 },
"DeliveryDateInfo": {
"DateStart": "2099-01-01",
"DateEnd": "2099-01-01",
"Unit": "Date"
}
}
],
"AdditionalShippingServices": [
{
"MerchantReference": "ADDITIONAL_SHIPPING_SERVICE_1",
"DisplayName": "Express delivery",
"Descriptions": ["Faster delivery"],
"PriceExVat": 100,
"PriceIncVat": 150,
"DeliveryDate": "2099-01-01",
"DeliveryDateInfo": {
"DateStart": "2099-01-01",
"DateEnd": "2099-01-01",
"Unit": "Date"
}
}
],
"DeliveryDate": "2099-01-01",
"CategoryDisplayName": "HOME_DELIVERY",
"LabelDisplayName": "Name",
"DeliveryDateInfo": {
"DateStart": "2099-01-01",
"DateEnd": "2099-01-01",
"Unit": "Date"
}
}
]
}For the request and response parameters in the create order call and the error codes, see the API Reference.
For the Update Shipping Methods push, see Notifications.
Recommendations
- To present only static options, send them in the create order call.
- You can update shipping options with update order. Qliro recommends
MerchantOrderAvailableShippingMethodsUrlinstead, for a better customer experience.
nShift
You can integrate nShift checkout so that Qliro Checkout handles all shipping communication with nShift.
The Qliro API refers to nShift by its previous name "Unifaun".
How-to
1. Contact merchant solutions
Contact merchant solutions to activate the feature on your account.
2. Create nShift configuration
Create a new checkout configuration on the nShift side with the Qliro template.
3. Specify nShift parameters
Specify the nShift parameters under the ShippingConfiguration parameter in the create order call.
4. Qliro fetches shipping info
Qliro uses the information from create order to get shipping information from nShift.
5. Iframe updated
Qliro updates the iframe with the shipping information.
6. Retrieve order information
Use getOrder to retrieve information about the order. Pass the OrderID to nShift as "preparedID".
Example
{
"ShippingConfiguration": {
"Unifaun": {
"CheckoutId": "string",
"Tags": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
}
}Ingrid
Qliro Checkout works with Ingrid delivery checkout. You set your shipping configuration in Ingrid. Qliro handles all shipping communication with Ingrid and presents the shipping alternatives in the checkout.
How-to
1. Share credentials and enable Ingrid
Contact merchant solutions to activate the feature on your account. Tell them which countries to enable Ingrid in. Provide the Ingrid Credential Key (base 64) as merchant solutions instructs.
2. Create and update orders with Ingrid enabled
You can send optional Ingrid-specific metadata for each order item in CreateOrder and UpdateOrder. See the API documentation. In merchantProvidedMetadata you can send cart vouchers (key: Ingrid.Vouchers) or cart attributes (key: Ingrid.CartAttributes).
3. Set up your fallback shipping option
Send at least one shipping option in the AvailableShippingMethods property of the CreateOrder and UpdateOrder requests. Qliro strongly recommends this. The option is the fallback if the Ingrid API does not respond.
You can NOT use MerchantOrderAvailableShippingMethodsUrl for the fallback. Do not send it if Ingrid is turned on.
4. Post-purchase administration
After the purchase is completed, Qliro creates a shipping order item from the shipping method the customer selected. The Ingrid checkout session ID is available on this order item.
Qliro uses MerchantReference as "External ID" when it completes the Ingrid Checkout Session. When Ingrid ships the transport order, set the shipping order item to shipped through the Qliro Admin API.
You manage the Ingrid transport orders yourself. Do this manually at https://mad.ingrid.com/ or through Ingrid's shipment order management API.
Good to know
- Qliro recommends the Qliro shipping section, which you can customize to your and your customers' needs. For visual customization, see Custom shipping.
- The checkout presents the shipping options in the order you send them. The first option appears at the top and is pre-selected.
- Use the optional listeners onShippingMethodChanged or onShippingPriceChanged to know when the customer changes shipping data. See Listeners.
- The checkout shows a shipping logo if you use the correct tag. Available tags: Airmee, Aramex, Asendia, Best, Bring, Brt, Budbee, Chronopost, Dao, Dpd, Dhl, Dsv, EarlyBird, FedEx, Helthjem, icapaket, Instabikes, Instabox, Oda, Posti, PostNord, Porterbuddy, Schenker, Svosj, Ups