Before you get started, make sure you have everything you need:
Klarna Checkout v3 integration. Click here to learn more about direct or partner integrations.
Fallback. You can optionally provide fallback shipping options when you create a Checkout session. We use those options if the Shipping API integration is not responding or otherwise fails. This way, we ensure the user can always complete their purchase.
If you have an existing Checkout v3 integration, you should adjust the following for an ideal integration:
You can set allow_separate_shipping_address to true if you want to offer separate shipping and billing. If this flag is false or not set, the displayed delivery options will be based on the billing address.
You can indicate with the shipping_countries list countries you ship to. If it’s not set, it will default to the purchase country only.
You can define shipping_attributes at the order level or at the order line level. These are passed on to the Shipping API and can influence the available shipping options. undefinedundefined
You can show delivery information after the checkout on the confirmation page.
You can send fallback shipping options for every KCO session. These are used if the Integrator fails to provide real time data.
You should not use the shipping_options_update callback from KCO. If you implement it, you will have to set the shipping fee as an order line in every call.
You cannot use our Shipping API flow for digital products (e.g. giftcards which are not shipped physically), as they are currently not supported. If there are no physical items in the cart, we recommend not to show KSA at all. To do this: undefinedundefinedundefined This will suppress the Shipping Assistant.
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:
You should set allow_separate_shipping_address to true if you want to offer separate shipping and billing. If this flag is false or not set, the displayed delivery options will be based on the billing address.
You can define shipping_attributes undefinedundefined
When an order is authorized you will receive a ping to approve or decline the order at the 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 need to 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:
If you work with one of our partners, like Unifaun or Consignor, you will get the credentials from them.
If you implement the Shipping API directly, you should be able to provide us with these credentials.