Real-time shipping options in the checkout
Before you get started, make sure you have everything you need:
Checkout integration
If you have an existing Checkout v3 integration, you should adjust the following for an ideal integration:
allow_separate_shipping_address
to true if you want to offer separate shipping and billing. The displayed delivery options will be based on the billing address if this flag is false or not specified.shipping_countries
list countries you ship to. It will default to the purchase country only if it's not set.shipping_attributes
at the order level or the order line level. These are passed on to the Shipping API and can influence the available shipping options.shipping_options_update
callback from KCO. If you implement it, you must set the shipping fee as an order line in every call.If you have an existing Instant Shopping integration, you should adjust the following for an ideal integration:
When creating a button key from the server side:
allow_separate_shipping_address
to true if you want to offer separate shipping and billing. The displayed delivery options will be based on the billing address if this flag is false or not specified.The following you can do either while configuring an Instant Shopping display through the JavaScript API from the client side or while creating a button key through the REST API from the server side.
shipping_countries
the list of countries to which you ship. It will default to the purchase country only if it's not set. (JavaScript API | REST API)shipping_attributes
.merchant_urls.place_order
endpoint. This endpoint you have defined when creating the button key. The request will include the authorized order, including information about the selected_shipping_option, which includes the tms_reference
.To activate the Klarna Shipping Assistant, you must provide us with your shipping credentials in the merchant portal. The shipping credentials consist of an endpoint, an identifier and a key. How you obtain these credentials depends on the type of integration:
You can activate Shipping in the merchant portal.
You can come back to this app anytime to update your credentials.
Onboarding guides to our partners can be found on our Partnerships page.