How we handle shipping in Klarna checkout.
There are several ways shipping can be added to an order and below we will explain the differences.
Creating an order without specifying the property options.allow_separate_shipping will not have the shipping section of checkout visible and the shipping_address of the completed order will always be the same as the billing address.
With this order configuration Klarna Shipping Assistant (KSA) is disabled.
An order that is created with allow_separate_shipping true will have the Klarna Shipping Assistant (KSA) visible in Checkout if the "Merchant Portal" configuration is set properly. This will allow the consumer to enter a separate shipping address.
As a merchant you can provide Klarna with shipping_options you want to present to the consumer. These are sent in using the property shipping options . This will enable Klarna Shipping Assistant(KSA) if the "Merchant Portal" configuration is set properly which will present a shipping selector in the checkout where the consumer can select a shipping option and the cart will be updated automatically.
You can specify a shipping_option_update url to get a server-side callback whenever the consumer changes the shipping option. Read more .
When this callback is used the shipping option cost will not be added automatically to the
order_lines or the
order_total of the order and this will be your responsibility.
If you want to use a transport management system (TMS), please see Klarna Shipping Assistant(KSA) documentation.