Last updated

nShift Shipping Adapter

Overview

The nShift Adapter integrates nShift Delivery Checkout with Norce Checkout, enabling merchants to offer a flexible and carrier-agnostic delivery experience directly within the Norce Commerce platform. nShift provides an embedded checkout widget that allows customers to select from multiple delivery options such as home delivery, pickup points, and time-slot–based delivery across different carriers.

This adapter is part of Norce Checkout (NCO) and manages the complete shipping lifecycle – from session initialization to order completion. Changes made in Norce Checkout are automatically synchronized with nShift and vice versa, ensuring both systems remain consistent throughout the checkout flow.

When an order is accepted, the adapter creates a partial shipment in nShift, enabling tracking and fulfilment through nShift’s logistics platform.


Capabilities and Supported Flows

Shipping Operations

FeatureFullPartialDescription
Create SessionYesInitialize nShift checkout session
Update SessionYesSync cart and customer changes
Complete SessionYesCreate partial shipment on order acceptance
Remove SessionYesRemove shipping from order

Supported Delivery Methods

MethodSupportedDescription
Home DeliveryYesStandard carrier home delivery
Pickup PointsYesService points, lockers, stores
Scheduled DeliveryYesTime-slot based delivery windows (carrier dependent)
Multiple CarriersYesBased on merchant configuration in nShift

Advanced Features

FeatureSupportedDescription
B2B SupportYesBusiness customer checkout
B2C SupportYesConsumer checkout
Bidirectional SyncYesNorce ↔ nShift synchronization
Carrier AddonsYesCarrier-specific extra services
Logistics Data MappingYesWeight, dimensions, package contents
Pickup Point DetailsYesFull pickup point address and metadata
Delivery Time EstimatesYesEarliest/latest delivery dates
Custom FieldsYesCarrier-specific customer input fields
OAuth2 AuthenticationYesAutomatic token handling and refresh
Connection-based RoutingYesMerchant routing using nShift Connection ID

Integration Model

The adapter uses a widget-based checkout model:

  • Norce Checkout provides order, cart, customer, currency, and locale data to the adapter.
  • The adapter creates and maintains a session in nShift.
  • The nShift Checkout widget is embedded in the merchant’s frontend and displays delivery options.
  • Customer selections (delivery option, pickup point, time slot, addons, and custom fields) are sent back to Norce Checkout through adapter callback endpoints.
  • When the order is accepted, the adapter finalizes the session by creating a partial shipment in nShift.

All synchronization hooks are registered automatically when the session is created.


Limitations

  • Orders must contain country, culture, and currency before a session can be created.
  • The cart must contain at least one item.
  • Checkout sessions have a limited lifetime and may expire.
  • Available delivery methods and carriers depend on the merchant’s configuration in the nShift platform.
  • Carrier pricing and delivery options are controlled by nShift configuration.

Shipping States

The adapter uses the following shipping states in Norce Checkout:

StateDescription
intentShipping session created, awaiting customer selection
processingOrder is being processed, session validated
confirmedSession completed successfully, partial shipment created
removedShipping removed from order

Architecture Notes

  • Authentication towards nShift is handled using OAuth2 client credentials flow.
  • Access tokens are cached and refreshed automatically by the adapter.
  • Merchant configuration is resolved using a Connection ID provided by nShift, which determines available carriers, delivery options, and pricing rules.
  • The adapter automatically registers callbacks for:
    • Cart changes
    • Customer updates
    • Order state transitions

Norce Checkout API References

nShift Adapter API

Norce Checkout Overview

External Documentation