JSON

Klarna API Reference

Find what you're looking for with our search form.

Introduction

This is the API reference for Klarna's APIs. The checkout API is used to create and update an instance of the Klarna Checkout for the customer to place their order and the order management API is used to handle the order lifecycle.

The APIs are organized around resources using URLs and the different HTTP methods to create and modify these resources. You authenticate using your credentials and basic auth.


API URLs

The API is accessible through a few different URLS. There are different URLs for testing and for making live purchases as well as different URLs for depending on if you are based in Europe or in the U.S.

All interaction with Klarna's APIs must be done over HTTPS.

Live environment

The API for the European production environment can be found at

https://api.klarna.com/

The API for the U.S. production environment can be found at

https://api-na.klarna.com/

Testing environment

The API for the European testing environment can be found at

https://api.playground.klarna.com/

The API for the U.S. testing environment can be found at

https://api-na.playground.klarna.com/


Authentication

Example credentials
Username: A100001_1b818918f9db

Password: rPvw912p34CkdLo4

To authenticate with Klarna you use your API Credentials and HTTP Basic auth.

The credentials consist of two elements:

Username - Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string.

Password - a string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs

Note: The API credentials are separate from your Merchant ID, and it is possible to have several API credentials associated with the same Merchant ID.

The credentials should be sent as an authorization header for every request with the username and password.

You receive both your live and test credentials by contacting Klarna sales for your country.

If the credentials are missing or wrong Klarna will respond with 401 Unauthorized. You can read more about HTTP Basic auth in the Wikipedia article.


Errors

Example error (multiple errors)
{
  "error_code" : "ERROR_CODE",
  "error_messages" : [
    "This is a human readable english message to aid in debugging",
    "This is another english error message"
  ],
  "correlation_id" : "Unique id for this request used for troubleshooting."
}
Example error (single error)
{
  "error_code" : "ERROR_CODE",
  "error_message" : "This is a single human readable english message to aid in debugging",
  "correlation_id" : "Unique id for this request used for troubleshooting."
}

Klarna's APIs use HTTP status codes together with error objects to handle errors. When an API call fails Klarna will respond with a 4xx or 5xx status code together with a response body containing an error object with the error code, an array of error messages and a unique correlation id to be used to identify the request.

The Error object MUST contain an error_code and an error_messages property (or error_message, see Example).


Location Headers

All Klarna API actions that create a new resource will return a Location header with the precise URL at which the newly created resource can be found. This URL should be used in all interaction with the API regarding this resource. We recommend you to use this URL instead of constructing one yourself.


Metadata

{
  "merchant_data": "The metadata associated with this item."
}

You can store additional metadata with Klarna that will be returned whenever an order is read from Klarna. The data take two forms: two reference fields to be used to store your internal order reference, and general metadata fields on the order and on each order line that can be used to store arbitrary data.

The reference fields are merchant_reference1 and merchant_reference2 used to store the interal reference to the order.

The general metadata fields are merchant_data on the order and merchant_data on each order line.


Data Types

We use a coherent format for currencies, amount and dates across all Klarna APIs.

Currency
{
  "purchase_currency": "usd"
}

We use the ISO 4217 standard for defining currencies. Examples are usd, gbp, eur or sek.

Amount
{
  "order_amount": 1000
}

We express amounts in minor units according to the ISO 4217 standard. That means they are expressed in the smallest unit of currency. Examples are USD with 1000 representing $10, GBP with 500 representing £5, EUR with 50 representing €0.50 and SEK with 100 representing 1kr.

Strings

Strings may be up to 255 characters, unless otherwise noted in the field description.

Dates
{
  "started_at": "2018-08-08T08:37:22Z",
  "date_of_birth": "1981-09-06"
}

Dates are expressed according to the ISO 8601 standard with combined date, time and timezone. We do not support milliseconds (or any decimal fractions). One example is 2015-08-10T07:45:00Z representing the 10th of August 2015 at 07:45:00 and the UTC timezone.

Locale & Country
{
  "locale": "en-us",
  "purchase_country": "us"
}

Locales should be formatted as a language tag consisting of a two-letter language code combined with a two-letter country code according to RFC 1766. Examples are en-us for US English, en-gb for British English and sv-se for Swedish (in Sweden).

Countries are handled as two-letter country codes according to ISO 3166 alpha-2. Examples are us for the United States, gb for Great Britain and se for Sweden.

Encoding

We expect all data that is sent to Klarna's APIs to be UTF-8 encoded.


API Updates

We always try to update our APIs in a backwards compatible way to avoid breaking existing integrations. Unfortunatly that's not always possible when we iterate on our APIs and release new products and features. Sometimes we need to make breaking changes which will result in a version bump of our APIs. We have collected a list of what we consider to be "non-breaking" changes as well as some integration guidelines.

Non-breaking changes

Guidelines

Checkout API

The checkout API is used to create a checkout with Klarna and update the checkout order during the purchase.

As soon as the purchase is completed the order should be read and handled using the Order Management API.

Order

Create a new order

Request
Path:POST /checkout/v3/orders
Headers:Content-Type: application/json
See full example
{
    "order_id": "f3392f8b-6116-4073-ab96-e330819e2c07",
    "name": "Women's Fashion",
    "purchase_country": "US",
    "purchase_currency": "USD",
    "locale": "en-US",
    "status": "CHECKOUT_INCOMPLETE",
    "billing_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "family_name": "Doe",
        "email": "john@doe.com",
        "title": "Mr",
        "street_address": "Lombard St 10",
        "street_address2": "Apt 214",
        "street_name": "Lombard St",
        "street_number": "10",
        "house_extension": "B",
        "postal_code": "90210",
        "city": "Beverly Hills",
        "region": "CA",
        "phone": "333444555",
        "country": "US",
        "care_of": "C/O"
    },
    "shipping_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "family_name": "Doe",
        "email": "john@doe.com",
        "title": "Mr",
        "street_address": "Lombard St 10",
        "street_address2": "Apt 214",
        "street_name": "Lombard St",
        "street_number": "10",
        "house_extension": "B",
        "postal_code": "90210",
        "city": "Beverly Hills",
        "region": "CA",
        "phone": "333444555",
        "country": "US",
        "care_of": "C/O"
    },
    "order_amount": 50000,
    "order_tax_amount": 4545,
    "order_lines": [
        {
            "type": "physical",
            "reference": "19-402-USA",
            "name": "Red T-Shirt",
            "quantity": 5,
            "quantity_unit": "pcs",
            "unit_price": 10000,
            "tax_rate": 1000,
            "total_amount": 50000,
            "total_discount_amount": 0,
            "total_tax_amount": 4545,
            "merchant_data": "{\"marketplace_seller_info\":[{\"product_category\":\"Women's Fashion\",\"product_name\":\"Women Sweatshirt\"}]}",
            "product_url": "https://www.example.com/products/f2a8d7e34",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "product_identifiers": {
                "category_path": "Electronics Store > Computers & Tablets > Desktops",
                "global_trade_item_number": "735858293167",
                "manufacturer_part_number": "BOXNUC5CPYH",
                "brand": "Intel"
            },
            "shipping_attributes": {
                "weight": 1000,
                "dimensions": "height: 100, width: 100, length: 100",
                "tags": "[\"dangerous_goods\", \"bulky\"]"
            }
        }
    ],
    "customer": {
        "date_of_birth": "1995-10-20",
        "type": "person",
        "organization_registration_id": "556737-0431",
        "gender": "male"
    },
    "merchant_urls": {
        "terms": "https://www.example.com/terms.html",
        "cancellation_terms": "https://www.example.com/terms/cancellation.html",
        "checkout": "https://www.example.com/checkout.html",
        "confirmation": "https://www.example.com/confirmation.html",
        "push": "https://www.example.com/api/push",
        "validation": "https://www.example.com/api/validation",
        "shipping_option_update": "https://www.example.com/api/shipment",
        "address_update": "https://www.example.com/api/address",
        "notification": "https://www.example.com/api/pending",
        "country_change": "https://www.example.com/api/country"
    },
    "html_snippet": "<div id='klarna-checkout-container'><script>alert('Initializing Klarna Checkout');</script></div>",
    "merchant_reference1": "45aa52f387871e3a210645d4",
    "merchant_reference2": "45aa52f387871e3a210645d4",
    "started_at": "2020-01-23T13:48:29.053Z",
    "completed_at": "2020-01-23T13:48:29.053Z",
    "last_modified_at": "2020-01-23T13:48:29.053Z",
    "options": {
        "acquiring_channel": "eCommerce",
        "allow_separate_shipping_address": false,
        "color_button": "#FF9900",
        "color_button_text": "#FF9900",
        "color_checkbox": "#FF9900",
        "color_checkbox_checkmark": "#FF9900",
        "color_header": "#FF9900",
        "color_link": "#FF9900",
        "date_of_birth_mandatory": false,
        "shipping_details": "Delivered within 1-3 working days",
        "title_mandatory": false,
        "additional_checkbox": {
            "text": "Please add me to the newsletter list, read more here \link\",
            "checked": false,
            "required": false
        },
        "national_identification_number_mandatory": false,
        "additional_merchant_terms": "string",
        "phone_mandatory": false,
        "radius_border": "5",
        "allowed_customer_types": "[\"person\", \"organization\"]",
        "show_subtotal_detail": false,
        "additional_checkboxes": 
            {
                "id": "newsletter_opt_in",
                "text": "Please add me to the newsletter list, read more here \[link\",
                "checked": false,
                "required": false
            }
        ],
        "require_validate_callback_success": false,
        "vat_removed": false,
        "verify_national_identification_number": false,
        "show_vat_registration_number_field": false
    },
    "attachment": {
        "content_type": "application/vnd.klarna.internal.emd-v2+json",
        "body": "{\"hotel_reservation_details\": [{\"pnr\": \"VH67899\",\"hotel_intinerary\": [{\"hotel_name\": \"Hotel ltd.\",\"address\": {\"street_address\": \"Storgatan 3\",\"postal_code\": \"113 35\",\"city\": \"Stockholm\",\"country\": \"Sweden\"},\"start_time\": \"2019-01-31T15:00:00Z\",\"end_time\": \"2019-01-31T15:30:00Z\",\"number_of_rooms\": 2,\"ticket_delivery_method\": \"email\",\"ticket_delivery_recipient\": \"jonas.larlsson@klarna.com\",\"hotel_price\": 23050,\"class\": \"Business\",\"passenger_id\": [1]}],\"passengers\": [{\"id\": 1,\"title\": \"mr\",\"first_name\": \"Adam\",\"last_name\": \"Adamson\"}],\"insurance\": [{\"insurance_company\": \"Insurance Company X\",\"insurance_type\": \"travel\",\"insurance_price\": 0}],\"affiliate_name\": \"TradeMaxi AB\"}],\"air_reservation_details\": [{\"pnr\": \"VH67899\",\"intinerary\": [{\"departure\": \"ARN\",\"departure_city\": \"Stockholm\",\"arrival\": \"NCE\",\"arrival_city\": \"Nice\",\"carrier\": \"SK\",\"segment_price\": 34000,\"departure_date\": \"2019-01-30T15:00:00Z\",\"ticket_delivery_method\": \"email\",\"ticket_delivery_recipient\": \"jonas.larlsson@klarna.com\",\"passenger_id\": [1]}],\"passengers\": [{\"id\": 1,\"title\": \"mr\",\"first_name\": \"Adam\",\"last_name\": \"Adamson\"}],\"insurance\": [{\"insurance_company\": \"Insurance Company X\",\"insurance_type\": \"travel\",\"insurance_price\": 0}],\"affiliate_name\": \"TradeMaxi AB\"}],\"customer_account_info\": [{\"unique_account_identifier\": \"12345\",\"account_registration_date\": \"2016-01-24T15:00:00Z\",\"account_last_modified\": \"2017-01-24T15:00:00Z\"}],\"payment_history_full\": [{\"payment_option\": \"card\",\"number_paid_purchases\": 2,\"total_amount_paid_purchases\": 1234,\"date_of_last_paid_purchase\": \"2018-01-24T15:00:00Z\",\"date_of_first_paid_purchase\": \"2018-01-24T15:00:00Z\"}]}"
    },
    "external_payment_methods": [
        {
            "name": "PayhereUs",
            "redirect_url": "https://www.example.com/us/start",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "fee": 0,
            "description": "an American company operating a worldwide online payments system",
            "countries": [
                "us",
                "gb"
            ],
            "label": "continue"
        }
    ],
    "external_checkouts": [
        {
            "name": "PayhereUs",
            "redirect_url": "https://www.example.com/us/start",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "fee": 0,
            "description": "an American company operating a worldwide online payments system",
            "countries": [
                "us",
                "gb"
            ],
            "label": "continue"
        }
    ],
    "shipping_countries": [
        "us",
        "gb"
    ],
    "shipping_options": [
        {
            "id": "express_priority",
            "name": "EXPRESS 1-2 Days",
            "description": "Delivery by 4:30 pm",
            "promo": "Christmas Promotion",
            "price": 0,
            "tax_amount": 0,
            "tax_rate": 0,
            "preselected": false,
            "shipping_method": "PickUpStore",
            "delivery_details": {
                "carrier": "string",
                "class": "string",
                "product": {
                    "name": "string",
                    "identifier": "string"
                },
                "pickup_location": {
                    "id": "string",
                    "name": "string",
                    "address": {
                        "organization_name": "string",
                        "reference": "string",
                        "attention": "string",
                        "given_name": "John",
                        "family_name": "Doe",
                        "email": "john@doe.com",
                        "title": "Mr",
                        "street_address": "Lombard St 10",
                        "street_address2": "Apt 214",
                        "street_name": "Lombard St",
                        "street_number": "10",
                        "house_extension": "B",
                        "postal_code": "90210",
                        "city": "Beverly Hills",
                        "region": "CA",
                        "phone": "333444555",
                        "country": "US",
                        "care_of": "C/O"
                    }
                },
                "timeslot": {
                    "id": "string",
                    "start": "string",
                    "end": "string"
                }
            },
            "tms_reference": "a1b2c3d4-e4f6-g7h8-i9j0-k1l2m3n4o5p6"
        }
    ],
    "merchant_data": "{\"marketplace_seller_info\":[{\"product_category\":\"Women's Fashion\",\"product_name\":\"Women Sweatshirt\"}]}",
    "gui": {
        "options": [
            "disable_autofocus"
        ]
    },
    "merchant_requested": {
        "additional_checkbox": false,
        "additional_checkboxes": [
            {
                "id": "string",
                "checked": false
            }
        ]
    },
    "selected_shipping_option": {
        "id": "express_priority",
        "name": "EXPRESS 1-2 Days",
        "description": "Delivery by 4:30 pm",
        "promo": "Christmas Promotion",
        "price": 0,
        "tax_amount": 0,
        "tax_rate": 0,
        "preselected": false,
        "shipping_method": "PickUpStore",
        "delivery_details": {
            "carrier": "string",
            "class": "string",
            "product": {
                "name": "string",
                "identifier": "string"
            },
            "pickup_location": {
                "id": "string",
                "name": "string",
                "address": {
                    "organization_name": "string",
                    "reference": "string",
                    "attention": "string",
                    "given_name": "John",
                    "family_name": "Doe",
                    "email": "john@doe.com",
                    "title": "Mr",
                    "street_address": "Lombard St 10",
                    "street_address2": "Apt 214",
                    "street_name": "Lombard St",
                    "street_number": "10",
                    "house_extension": "B",
                    "postal_code": "90210",
                    "city": "Beverly Hills",
                    "region": "CA",
                    "phone": "333444555",
                    "country": "US",
                    "care_of": "C/O"
                }
            },
            "timeslot": {
                "id": "string",
                "start": "string",
                "end": "string"
            }
        },
        "tms_reference": "a1b2c3d4-e4f6-g7h8-i9j0-k1l2m3n4o5p6"
    },
    "recurring": false,
    "recurring_token": "string",
    "recurring_description": "string",
    "billing_countries": [
        "us",
        "gb"
    ],
    "tags": "[\"dangerous_goods\", \"bulky\"]"
}
Response
Description:successful operation
Headers:Status Code: 200
Content-Type: application/json
See full example
{
    "order_id": "f3392f8b-6116-4073-ab96-e330819e2c07",
    "name": "Women's Fashion",
    "purchase_country": "US",
    "purchase_currency": "USD",
    "locale": "en-US",
    "status": "CHECKOUT_INCOMPLETE",
    "billing_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "family_name": "Doe",
        "email": "john@doe.com",
        "title": "Mr",
        "street_address": "Lombard St 10",
        "street_address2": "Apt 214",
        "street_name": "Lombard St",
        "street_number": "10",
        "house_extension": "B",
        "postal_code": "90210",
        "city": "Beverly Hills",
        "region": "CA",
        "phone": "333444555",
        "country": "US",
        "care_of": "C/O"
    },
    "shipping_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "family_name": "Doe",
        "email": "john@doe.com",
        "title": "Mr",
        "street_address": "Lombard St 10",
        "street_address2": "Apt 214",
        "street_name": "Lombard St",
        "street_number": "10",
        "house_extension": "B",
        "postal_code": "90210",
        "city": "Beverly Hills",
        "region": "CA",
        "phone": "333444555",
        "country": "US",
        "care_of": "C/O"
    },
    "order_amount": 50000,
    "order_tax_amount": 4545,
    "order_lines": [
        {
            "type": "physical",
            "reference": "19-402-USA",
            "name": "Red T-Shirt",
            "quantity": 5,
            "quantity_unit": "pcs",
            "unit_price": 10000,
            "tax_rate": 1000,
            "total_amount": 50000,
            "total_discount_amount": 0,
            "total_tax_amount": 4545,
            "merchant_data": "{\"marketplace_seller_info\":[{\"product_category\":\"Women's Fashion\",\"product_name\":\"Women Sweatshirt\"}]}",
            "product_url": "https://www.example.com/products/f2a8d7e34",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "product_identifiers": {
                "category_path": "Electronics Store > Computers & Tablets > Desktops",
                "global_trade_item_number": "735858293167",
                "manufacturer_part_number": "BOXNUC5CPYH",
                "brand": "Intel"
            },
            "shipping_attributes": {
                "weight": 1000,
                "dimensions": "height: 100, width: 100, length: 100",
                "tags": "[\"dangerous_goods\", \"bulky\"]"
            }
        }
    ],
    "customer": {
        "date_of_birth": "1995-10-20",
        "type": "person",
        "organization_registration_id": "556737-0431",
        "gender": "male"
    },
    "merchant_urls": {
        "terms": "https://www.example.com/terms.html",
        "cancellation_terms": "https://www.example.com/terms/cancellation.html",
        "checkout": "https://www.example.com/checkout.html",
        "confirmation": "https://www.example.com/confirmation.html",
        "push": "https://www.example.com/api/push",
        "validation": "https://www.example.com/api/validation",
        "shipping_option_update": "https://www.example.com/api/shipment",
        "address_update": "https://www.example.com/api/address",
        "notification": "https://www.example.com/api/pending",
        "country_change": "https://www.example.com/api/country"
    },
    "html_snippet": "<div id='klarna-checkout-container'><script>alert('Initializing Klarna Checkout');</script></div>",
    "merchant_reference1": "45aa52f387871e3a210645d4",
    "merchant_reference2": "45aa52f387871e3a210645d4",
    "started_at": "2020-01-23T13:48:29.053Z",
    "completed_at": "2020-01-23T13:48:29.053Z",
    "last_modified_at": "2020-01-23T13:48:29.053Z",
    "options": {
        "acquiring_channel": "eCommerce",
        "allow_separate_shipping_address": false,
        "color_button": "#FF9900",
        "color_button_text": "#FF9900",
        "color_checkbox": "#FF9900",
        "color_checkbox_checkmark": "#FF9900",
        "color_header": "#FF9900",
        "color_link": "#FF9900",
        "date_of_birth_mandatory": false,
        "shipping_details": "Delivered within 1-3 working days",
        "title_mandatory": false,
        "additional_checkbox": {
            "text": "Please add me to the newsletter list, read more here \link\",
            "checked": false,
            "required": false
        },
        "national_identification_number_mandatory": false,
        "additional_merchant_terms": "string",
        "phone_mandatory": false,
        "radius_border": "5",
        "allowed_customer_types": "[\"person\", \"organization\"]",
        "show_subtotal_detail": false,
        "additional_checkboxes": 
            {
                "id": "newsletter_opt_in",
                "text": "Please add me to the newsletter list, read more here \[link\",
                "checked": false,
                "required": false
            }
        ],
        "require_validate_callback_success": false,
        "vat_removed": false,
        "verify_national_identification_number": false,
        "show_vat_registration_number_field": false
    },
    "attachment": {
        "content_type": "application/vnd.klarna.internal.emd-v2+json",
        "body": "{\"hotel_reservation_details\": [{\"pnr\": \"VH67899\",\"hotel_intinerary\": [{\"hotel_name\": \"Hotel ltd.\",\"address\": {\"street_address\": \"Storgatan 3\",\"postal_code\": \"113 35\",\"city\": \"Stockholm\",\"country\": \"Sweden\"},\"start_time\": \"2019-01-31T15:00:00Z\",\"end_time\": \"2019-01-31T15:30:00Z\",\"number_of_rooms\": 2,\"ticket_delivery_method\": \"email\",\"ticket_delivery_recipient\": \"jonas.larlsson@klarna.com\",\"hotel_price\": 23050,\"class\": \"Business\",\"passenger_id\": [1]}],\"passengers\": [{\"id\": 1,\"title\": \"mr\",\"first_name\": \"Adam\",\"last_name\": \"Adamson\"}],\"insurance\": [{\"insurance_company\": \"Insurance Company X\",\"insurance_type\": \"travel\",\"insurance_price\": 0}],\"affiliate_name\": \"TradeMaxi AB\"}],\"air_reservation_details\": [{\"pnr\": \"VH67899\",\"intinerary\": [{\"departure\": \"ARN\",\"departure_city\": \"Stockholm\",\"arrival\": \"NCE\",\"arrival_city\": \"Nice\",\"carrier\": \"SK\",\"segment_price\": 34000,\"departure_date\": \"2019-01-30T15:00:00Z\",\"ticket_delivery_method\": \"email\",\"ticket_delivery_recipient\": \"jonas.larlsson@klarna.com\",\"passenger_id\": [1]}],\"passengers\": [{\"id\": 1,\"title\": \"mr\",\"first_name\": \"Adam\",\"last_name\": \"Adamson\"}],\"insurance\": [{\"insurance_company\": \"Insurance Company X\",\"insurance_type\": \"travel\",\"insurance_price\": 0}],\"affiliate_name\": \"TradeMaxi AB\"}],\"customer_account_info\": [{\"unique_account_identifier\": \"12345\",\"account_registration_date\": \"2016-01-24T15:00:00Z\",\"account_last_modified\": \"2017-01-24T15:00:00Z\"}],\"payment_history_full\": [{\"payment_option\": \"card\",\"number_paid_purchases\": 2,\"total_amount_paid_purchases\": 1234,\"date_of_last_paid_purchase\": \"2018-01-24T15:00:00Z\",\"date_of_first_paid_purchase\": \"2018-01-24T15:00:00Z\"}]}"
    },
    "external_payment_methods": [
        {
            "name": "PayhereUs",
            "redirect_url": "https://www.example.com/us/start",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "fee": 0,
            "description": "an American company operating a worldwide online payments system",
            "countries": [
                "us",
                "gb"
            ],
            "label": "continue"
        }
    ],
    "external_checkouts": [
        {
            "name": "PayhereUs",
            "redirect_url": "https://www.example.com/us/start",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "fee": 0,
            "description": "an American company operating a worldwide online payments system",
            "countries": [
                "us",
                "gb"
            ],
            "label": "continue"
        }
    ],
    "shipping_countries": [
        "us",
        "gb"
    ],
    "shipping_options": [
        {
            "id": "express_priority",
            "name": "EXPRESS 1-2 Days",
            "description": "Delivery by 4:30 pm",
            "promo": "Christmas Promotion",
            "price": 0,
            "tax_amount": 0,
            "tax_rate": 0,
            "preselected": false,
            "shipping_method": "PickUpStore",
            "delivery_details": {
                "carrier": "string",
                "class": "string",
                "product": {
                    "name": "string",
                    "identifier": "string"
                },
                "pickup_location": {
                    "id": "string",
                    "name": "string",
                    "address": {
                        "organization_name": "string",
                        "reference": "string",
                        "attention": "string",
                        "given_name": "John",
                        "family_name": "Doe",
                        "email": "john@doe.com",
                        "title": "Mr",
                        "street_address": "Lombard St 10",
                        "street_address2": "Apt 214",
                        "street_name": "Lombard St",
                        "street_number": "10",
                        "house_extension": "B",
                        "postal_code": "90210",
                        "city": "Beverly Hills",
                        "region": "CA",
                        "phone": "333444555",
                        "country": "US",
                        "care_of": "C/O"
                    }
                },
                "timeslot": {
                    "id": "string",
                    "start": "string",
                    "end": "string"
                }
            },
            "tms_reference": "a1b2c3d4-e4f6-g7h8-i9j0-k1l2m3n4o5p6"
        }
    ],
    "merchant_data": "{\"marketplace_seller_info\":[{\"product_category\":\"Women's Fashion\",\"product_name\":\"Women Sweatshirt\"}]}",
    "gui": {
        "options": [
            "disable_autofocus"
        ]
    },
    "merchant_requested": {
        "additional_checkbox": false,
        "additional_checkboxes": [
            {
                "id": "string",
                "checked": false
            }
        ]
    },
    "selected_shipping_option": {
        "id": "express_priority",
        "name": "EXPRESS 1-2 Days",
        "description": "Delivery by 4:30 pm",
        "promo": "Christmas Promotion",
        "price": 0,
        "tax_amount": 0,
        "tax_rate": 0,
        "preselected": false,
        "shipping_method": "PickUpStore",
        "delivery_details": {
            "carrier": "string",
            "class": "string",
            "product": {
                "name": "string",
                "identifier": "string"
            },
            "pickup_location": {
                "id": "string",
                "name": "string",
                "address": {
                    "organization_name": "string",
                    "reference": "string",
                    "attention": "string",
                    "given_name": "John",
                    "family_name": "Doe",
                    "email": "john@doe.com",
                    "title": "Mr",
                    "street_address": "Lombard St 10",
                    "street_address2": "Apt 214",
                    "street_name": "Lombard St",
                    "street_number": "10",
                    "house_extension": "B",
                    "postal_code": "90210",
                    "city": "Beverly Hills",
                    "region": "CA",
                    "phone": "333444555",
                    "country": "US",
                    "care_of": "C/O"
                }
            },
            "timeslot": {
                "id": "string",
                "start": "string",
                "end": "string"
            }
        },
        "tms_reference": "a1b2c3d4-e4f6-g7h8-i9j0-k1l2m3n4o5p6"
    },
    "recurring": false,
    "recurring_token": "string",
    "recurring_description": "string",
    "billing_countries": [
        "us",
        "gb"
    ],
    "tags": "[\"dangerous_goods\", \"bulky\"]"
}
400We were unable to create an order with the provided data. Some field constraint was violated. Show
{
    "error_text": [
        "Bad value: order_amount",
        "Bad value: order_tax_amount",
        "Bad value: locale"
    ]
}
401You were not authorized to execute this operation. Show
{}
Code Examples
Use this API call to create a new order. The response body will contain the full order object and the location header will contain the URL at which the newly created order can be found.

Use this API call to create a new order. The response body will contain the full order object and the location header will contain the URL at which the newly created order can be found.

HTTP Request

POST /checkout/v3/orders

body collapse expand

ParameterDescription
order_id
string
read only
Unique order ID that will be used for the entire lifecycle of the order. (max 255 characters)
name
string
read only
The merchant name (max 255 characters).
purchase_country
string
required
purchase country of the merchant's store. The format to be used is ISO 3166 alpha-2. Eg: GB, SE, DE, US, etc. Note: purchase country and currency need to match the defined merchant configuration. For global configuration read this https://developers.klarna.com/documentation/klarna-checkout/kco-global/
Read more about data types
purchase_currency
string
required
purchase currency of the merchant's store. The format to be used is ISO 4217. Eg: USD, EUR, SEK, GBP, etc. Note: purchase country and currency need to match the defined merchant configuration. For global configuration read this https://developers.klarna.com/documentation/klarna-checkout/kco-global/
Read more about data types
locale
string
required
Used to define the language and region of the customer. RFC 1766 customer's locale.
Read more about data types
status
string
read only
The current status of the order. The status will be ‘incomplete’ until the customer has been successfully authorized.
billing_address
object
Provide the billing address of the customer, if you have collected already. If not, then Klarna will collect the details inside the Klarna Checkout iFrame before authorization. The billing address is the 'home address' where the credit cards and bank accounts are registered under the customer's name. Note: Once the customer has provided any data in the checkout iframe, updates to this object will be ignored (without generating an error).
Expand
Billing Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
shipping_address
object
read only
Provide the shipping address of the customer, if you have collected already. Unless the customer has explicitly chosen to enter a separate shipping address, this is a clone of billing_address. The customer has the possibility of changing the shipping address inside the Klarna checkout. You will be notified about the change either through the merchant URLs that you provide or through Javascript callbacks.
Expand
Shipping Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
order_amount
integer
required
"Total amount of the order including tax and any available discounts. The value should be in non-negative minor units. Example: 25 Euros should be 2500."
order_tax_amount
integer
required
Total tax amount of the order. The value should be in non-negative minor units. Example: 25 Euros should be 2500.
order_lines
array of order lines
required
An array containing list of line items that are part of this order. Maximum of 1000 line items could be processed in a single order.
Expand
Order Line Object
ParameterDescription
type
string
Type of the order line item. The possible values are:
  • physical (physical good)
  • discount
  • shipping_fee
  • sales_tax (depends on the country/city, usually called VAT)
  • digital (digital good)
  • gift_card
  • store_credit (credit from the merchant)
  • surcharge (extra charge)
reference
string
Article number, SKU or similar. (max 64 characters)
name
string
required
Descriptive name of the order line item (max 255 characters)
quantity
integer
required
Non-negative number. Quantity of the order line item.
quantity_unit
string
Unit used to describe the quantity, e.g. kg, pcs... If defined has to be 1-8 characters
unit_price
integer
required
Minor units. Includes tax, excludes discount. (max value: 100000000). Example: 100 Euros should be 10000.
tax_rate
integer
required
Non-negative value. The percentage value is represented with two implicit decimals. (max 10000) Example: 25% should be 2500.
total_amount
integer
required
Minor units. Includes tax and discount. Example: 25 euros should be 2500 Value = (quantity x unit_price) - total_discount_amount. (max value: 100000000)
total_discount_amount
integer
Non-negative minor units. Includes tax. Example: 25 euros should be 2500
total_tax_amount
integer
required
Must be within ±1 of total_amount - total_amount * 10000 / (10000 + tax_rate). Negative when type is discount.
merchant_data
string
Property used to store additional metadata per item that will be returned whenever an order is read from Klarna. Pass through field. (max 1024 characters).
product_url
string
URL to the product page that can be later embedded in communications between Klarna and the customer. (max 1024 characters)
image_url
string
URL to an image that can be later embedded in communications between Klarna and the customer. (max 1024 characters) Improves post-purchase customer experiences.
product_identifiers
object
Additional information identifying an item
Expand
Product Identifiers Object
ParameterDescription
category_path
string
The product's category path as used in the merchant's webshop. Include the full and most detailed category and separate the segments with ' > '. (max 750 characters) Example: "Electronics Store > Computers & Tablets > Desktops"
global_trade_item_number
string
The product's Global Trade Item Number (GTIN). Common types of GTIN are EAN, ISBN or UPC. Exclude dashes and spaces, where possible
manufacturer_part_number
string
The product's Manufacturer Part Number (MPN), which - together with the brand - uniquely identifies a product. Only submit MPNs assigned by a manufacturer and use the most specific MPN possible
brand
string
The product's brand name as generally recognized by consumers. If no brand is available for a product, do not supply any value.
shipping_attributes
object
Shipping attributes of an item
Expand
Shipping Attributes Object
ParameterDescription
weight
integer
The product's weight as used in the merchant's webshop. Non-negative. Measured in grams.
dimensions
object
The product's dimensions: height, width and length. Of type Long.
Expand
Dimensions Object
ParameterDescription
height
integer
The product's height as used in the merchant's webshop. Non-negative. Measured in millimeters.
width
integer
The product's width as used in the merchant's webshop. Non-negative. Measured in millimeters.
length
integer
The product's length as used in the merchant's webshop. Non-negative. Measured in millimeters.
tags
array of strings
The product's extra features
customer
object
Object to provide the details of the customer making the payment.
Expand
Customer Object
ParameterDescription
date_of_birth
string
Customer’s date of birth. The format is ‘yyyy-mm-dd’. ISO 8601 date.
Read more about data types
type
string
The default supported value is 'person'. If B2B is enabled for the merchant, the value may be "organization".
organization_registration_id
string
"The organization's official registration id (organization number). Note: Applicable only for B2B orders."
gender
string
Customer’s gender - ‘male’ or ‘female’.
merchant_urls
object
required
Used to send in the different merchant URLs that Klarna needs at different stages of the process. Note: it should be HTTPS. Also, it can have {checkout.order.id}, {checkout.order.url} and/or {checkout.order.uri} and KCO will replace it accordingly.
Expand
Merchant Urls Object
ParameterDescription
terms
string
required
URL for the terms and conditions page of the merchant. The URL will be displayed inside the Klarna Checkout iFrame.(max 2000 characters) Example: "https://merchant.com/terms"
cancellation_terms
string
URL for the cancellation terms page of the merchant. The URL will be displayed in the email that is sent to the customer after the order is captured.(max 2000 characters) Example: "https://merchant.com/terms/cancelation"
checkout
string
required
URL for the checkout page of the merchant. (max 2000 characters) Example: "https://merchant.com/checkout"
confirmation
string
required
URL of the merchant confirmation page. The consumer will be redirected back to the confirmation page if the authorization is successful after the customer clicks on the ‘Place Order’ button inside checkout.(max 2000 characters) Example: "https://merchant.com/confirmation"
push
string
required
URL that will be used for push notification when an order is completed. Should be different than checkout and confirmation URLs. (max 2000 characters) Example: "https://merchant.com/push"
validation
string
URL that will be requested for final merchant validation. (must be https, max 2000 characters) Example: "https://merchant.com/validation"
shipping_option_update
string
URL for shipping option update. (must be https, max 2000 characters) Example: "https://merchant.com/shippingoptionupdate"
address_update
string
URL for shipping, tax and purchase currency updates. Will be called on address changes. (must be https, max 2000 characters) Example: "https://merchant.com/addressupdate"
notification
string
URL for notifications on pending orders. (max 2000 characters) Example: "https://merchant.com/notification/{checkout.order.id}"
country_change
string
URL for shipping, tax and purchase currency updates. Will be called on billing or shipping country changes. (must be https, max 2000 characters) Example: "https://merchant.com/countrychange"
html_snippet
string
read only
The HTML snippet that is used to render the checkout in an iframe.
merchant_reference1
string
Used for storing merchant's internal order number or other reference. If set, will be shown on the confirmation page as "order number" . The value is also available in the settlement files. (max 255 characters). Example: "45aa52f387871e3a210645d4"
merchant_reference2
string
Used for storing merchant's internal order number or other reference. The value is available in the settlement files. (max 255 characters). Example: "45aa52f387871e3a210645d4"
started_at
string (datetime)
read only
ISO 8601 datetime. The date and time when the order has been created. The format will be as follows: "yyyy-mm-ddThh:mm:ssZ"
Read more about data types
completed_at
string (datetime)
read only
ISO 8601 datetime. The date and time when the order has been completed. The format will be as follows: "yyyy-mm-ddThh:mm:ssZ"
Read more about data types
last_modified_at
string (datetime)
read only
ISO 8601 datetime. The date and time when the order was last modified. The format will be as follows: "yyyy-mm-ddThh:mm:ssZ"
Read more about data types
options
object
Customization options for the order.
Expand
Options Object
ParameterDescription
acquiring_channel
string
Acquiring channel for the order. The possible values are:
  • MOTO for "Mail Order Telephone Order"
  • ECOMMERCE for "E-commerce"
  • IN_STORE for "Purchase in boutique"
  • TELESALES for "Telesales/telemarketing"
  • Default : ECOMMERCE
allow_separate_shipping_address
boolean
If true, the consumer can enter different billing and shipping addresses. Default: false
color_button
string
Color for the buttons within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_button_text
string
Color for the text inside the buttons within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_checkbox
string
Color for the checkboxes within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_checkbox_checkmark
string
Color for the checkboxes checkmark within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_header
string
Color for the headers within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
date_of_birth_mandatory
boolean
If true, the consumer cannot skip date of birth. Default: false
shipping_details
string
A message that will be presented on the confirmation page under the headline "Delivery" (max 255 characters).
title_mandatory
boolean
If specified to false, title becomes optional. Only available for orders for country GB.
additional_checkbox
object
required
Additional merchant defined checkbox. e.g. for Newsletter opt-in.
Expand
Additional Checkbox Object
ParameterDescription
text
string
required
Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)
checked
boolean
required
Default state of the additional checkbox. It will use this value when loaded for the first time.
required
boolean
required
Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.
national_identification_number_mandatory
boolean
Additional merchant defined field. e.g. for purchases that MUST have a national insurance number.
additional_merchant_terms
string
Additional merchant defined field. e.g. Extra terms and conditions to show. Example: "ADDITIONAL MERCHANT TERMS! [terms link](https://merchant.com/extra_terms)"
phone_mandatory
boolean
If false, the consumer can skip the phone. Only available for orders in DACH countries.
radius_border
string
Radius for the border of elements within the iFrame.
allowed_customer_types
array of strings
A list of allowed customer types. Supported types: person & organization. Example: ["person","organization"]
show_subtotal_detail
boolean
If true, the Order Detail subtotals view is expanded when the Klarna Checkout iFrame is loaded. Default: false
additional_checkboxes
array of checkbox-v2s
Additional merchant defined checkboxes. e.g. for Newsletter opt-in.
Expand
Checkbox-v2 Object
ParameterDescription
id
string
required
Identifier used when presenting data back to merchant
text
string
required
Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)
checked
boolean
required
Default state of the additional checkbox. It will use this value when loaded for the first time.
required
boolean
required
Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.
require_validate_callback_success
boolean
If true, validate callback must get a positive response to not stop purchase. Default: false.
vat_removed
boolean
If true, VAT is not displayed in Checkout's Order Summary page.
verify_national_identification_number
boolean
Enable verification of National Identification Numbers in Sweden and Norway.This option also make the national identification number mandatory
show_vat_registration_number_field
boolean
If true, a optional VAT registration number field will be shown in the address form. Only applies for b2b orders.
attachment
object
Extra Merchant Data (additional information) required for additional risk check. The required parameters will be described in the appendix of contract agreement.
Expand
Attachment Object
ParameterDescription
content_type
string
required
The content type of the body. It is usually represented as "application/vnd.klarna.internal.emd-v2+json"
body
string
required
The content of the extra merchant data which should be presented as a string inside this property. The body should be an object containing any of the keys and sub objects described below serialised to JSON.
Expand
ParameterDescription
air_reservation_details
array of air reservation detailss
Details about the reservation of airline tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
IATA Airport Code (three letters)
departure_city
string
arrival
string
IATA Airport Code (three letters)
arrival_city
string
carrier
string
IATA Airline standard (two letters or digits)
segment_price
number
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
bus_reservation_details
array of bus reservation detailss
Details about the reservation of bus tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
City code or name
departure_city
string
arrival
string
City code or name
arrival_city
string
carrier
string
Name of transportation company
segment_price
integer
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
train_reservation_details
array of train reservation detailss
Details about the reservation of train tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
City code or name
departure_city
string
arrival
string
City code or name
arrival_city
string
carrier
string
Name of transportation company
segment_price
integer
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
ferry_reservation_details
array of ferry reservation detailss
Details about the reservation of ferry tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
City code or name
departure_city
string
arrival
string
City code or name
arrival_city
string
carrier
string
Name of transportation company
segment_price
integer
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
hotel_reservation_details
array of hotel reservation detailss
Details about the reservation of hotel rooms
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
hotel_itinerary
array of hotel itinerarys
Hotel itinerary data, one per hotel stay
Expand
ParameterDescription
hotel_name
string
Name of hotel
address
object

Expand
Address Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
number_of_rooms
integer
passenger_id
array of passenger ids

Expand
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
hotel_price
number
Local currency
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
car_rental_reservation_details
array of car rental reservation detailss
Details about the reservation of rental cars
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
car_rental_itinerary
array of car rental itinerarys
Car rental itinerary data
Expand
ParameterDescription
rental_company
string
Name of rental company
drivers_id
array of drivers ids

Expand
pick_up_location
object

Expand
Pick Up Location Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
drop_off_location
object

Expand
Drop Off Location Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
car_price
number
Local currency
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
drivers
array of driverss

Expand
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
event
array of events

Expand
ParameterDescription
event_name
string
Name of the event, e.g. "Fancy Singer"
event_company
string
Name of the company arranging the event, e.g. "Happy Parties Ltd."
genre_of_event
string
Category or type of venue, "Pop"
arena_name
string
Name of the venue, "Song Arena"
arena_location
object
Location of the arena.
Expand
Location Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
access_controlled_venue
boolean
Tickets are digitally checked when enetering the venue
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
voucher
array of vouchers

Expand
ParameterDescription
voucher_name
string
Description of the product the voucher entitles to, e.g. "China trip"
voucher_company
string
Name of the company that will provide good / service upon voucher (not the same as the selling merchant), e.g. "Sun Trips Ltd."
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
subscription
array of subscriptions

Expand
ParameterDescription
subscription_name
string
Name of the product on subscription, e.g. "Contact lenses"
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
auto_renewal_of_subscription
boolean
Info whether the subscription will be auto renewed upon expiry.
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
marketplace_seller_info
array of marketplace seller infos

Expand
ParameterDescription
unique_account_identifier_seller
object

Expand
Unique Account Identifier Seller Object
ParameterDescription
email
string
required
pno
string
required
other
string
sub_merchant_id
string
Name or unique number of the selling / delivering merchant, e.g. "Marketbrick Ltd."
product_category
string
Name of the overall category to which the specific good(s) belong to, according to the selling merchants categorization. E.g. "Computers"
product_name
string
Name of the specific good purchased, e.g. "Acer 5400"
account_registration_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
account_last_modified
object

Expand
Account Last Modified Object
ParameterDescription
password
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
email
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
listing
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
login
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
address
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
seller_rating
number
Current rating. Partner should provide upfront their rating scale, e.g. 65
number_of_trades
integer
Number of trades the sub-merchant did since 12 months back, e.g. 23
volume_of_trades
integer
Volumes of trades the sub-merchant did since 12 months back, e.g. 230.5
marketplace_winner_info
array of marketplace winner infos

Expand
ParameterDescription
unique_account_identifier_winner
object

Expand
Unique Account Identifier Winner Object
ParameterDescription
email
string
required
pno
string
required
other
string
account_registration_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
account_last_modified
object

Expand
Account Last Modified Object
ParameterDescription
password
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
email
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
listing
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
login
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
address
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
number_of_trades
integer
Number of trades the winner did since 12 months back, e.g. 5
volume_of_trades
integer
Volume of trades the winner did since 12 months back, 230.5
customer_account_info
array of customer account infos

Expand
ParameterDescription
unique_account_identifier
string
Unique name / number to identify the specific customer account. Max 24 characters. E.g. "Adam Adamsson"
account_registration_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
account_last_modified
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
payment_history_full
array of payment history fulls

Expand
ParameterDescription
unique_account_identifier
string
Unique name / number to identify the specific customer account. Max 24 characters. E.g. "Adam Adamsson"
payment_option
string
  • card
  • direct banking
  • non klarna credit
  • sms
  • other
number_paid_purchases
integer
Total number of successful purchases
total_amount_paid_purchases
number
Total amount of successful purchases (local currency), e.g. 1234.00
date_of_last_paid_purchase
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
date_of_first_paid_purchase
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
payment_history_simple
array of payment history simples

Expand
ParameterDescription
unique_account_identifier
string
Unique name / number to identify the specific customer account. Max 24 characters. E.g. "Adam Adamsson"
paid_before
boolean
Whether the customer has paid before or not
other_delivery_address
array of other delivery addresss

Expand
ParameterDescription
shipping_method
undefined
  • store pick-up
  • pick-up point
  • registered box
  • unregistered box
shipping_type
undefined
  • normal
  • express
first_name
string
last_name
string
street_address
string
street_number
string
postal_code
string
city
string
country
string
external_payment_methods
array of payment providers
List of external payment methods that will be displayed as part of payment methods in the checkout.
Expand
Payment Provider Object
ParameterDescription
name
string
required
The name of the payment provider. (max 255 characters)
redirect_url
string
required
URL to redirect to. (must be https, min 7, max 2000 characters)
image_url
string
URL to an image to display. (must be https, max 2000 characters)
fee
integer
Minor units. Includes tax.
description
string
Description. (max 500 characters)
countries
array of strings
If specified, limits the method to the listed countries (alpha 2 codes).
label
string
Controls label of buy button
  • continue
  • complete
external_checkouts
array of payment providers
List of external checkouts that will be displayed as part of payment methods in the checkout.
Expand
Payment Provider Object
ParameterDescription
name
string
required
The name of the payment provider. (max 255 characters)
redirect_url
string
required
URL to redirect to. (must be https, min 7, max 2000 characters)
image_url
string
URL to an image to display. (must be https, max 2000 characters)
fee
integer
Minor units. Includes tax.
description
string
Description. (max 500 characters)
countries
array of strings
If specified, limits the method to the listed countries (alpha 2 codes).
label
string
Controls label of buy button
  • continue
  • complete
shipping_countries
array of strings
List of allowed shipping countries for this order in ISO-3166 alpha-2 format. If specified, the customer will be able to change the shipping country in the checkout and you will be notified through ‘address_update’ callback or the ‘shipping_address_change’ javascript event. If not specified then the default value will be the purchase country. Example: look at billing_countries example.
shipping_options
array of shipping options
A list of shipping options available for this order.
Expand
Shipping Option Object
ParameterDescription
id
string
required
id
name
string
required
Name.
description
string
Description.
promo
string
Promotion name. To be used if this shipping option is promotional.
price
integer
required
Price including tax.
tax_amount
integer
required
Tax amount.
tax_rate
integer
required
Non-negative. In percent, two implicit decimals. I.e 2500 = 25%.
preselected
boolean
If true, this option will be preselected when checkout loads. Default: false
shipping_method
string
Shipping method. Possible values:
  • PickUpStore
  • Home
  • BoxReg
  • BoxUnreg
  • PickUpPoint
  • Own
  • Postal
  • DHLPackstation
  • Digital
If DHLPackstation is selected the correct form will be displayed.
delivery_details
object
The delivery details for this shipping option
Expand
Delivery Details Object
ParameterDescription
carrier
string
Carrier product name
class
string
Type of shipping class
product
object
Upstream carrier product
Expand
Product Object
ParameterDescription
name
string
Carrier product name
identifier
string
Carrier product identifier
pickup_location
object
The selected location for this shipping option
Expand
Pickup Location Object
ParameterDescription
id
string
Id
name
string
Name of the location
address
object
Location adress
Expand
Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
timeslot
object
The selected timeslot for this shipping option
Expand
Timeslot Object
ParameterDescription
id
string
Id
start
string
Start time
end
string
End time
tms_reference
string
TMS reference. Required to map completed orders to shipments reserved in TMS.
merchant_data
string
Pass through field to send any information about the order to be used later for reference while retrieving the order details (max 6000 characters).
gui
object
The gui object.
Expand
Gui Object
ParameterDescription
options
array of strings
read only
An array of options to define the checkout behaviour. Supported options: disable_autofocus, minimal_confirmation. The gui object is an array of options to modify checkout client ui behaviours. Examples: ["disable_autofocus", "minimal_confirmation"]
merchant_requested
object
read only
Provides information about the state of the fields requested by the merchant.
Expand
Merchant Requested Object
ParameterDescription
additional_checkbox
boolean
read only
Informs whether the additional_checkbox is checked or not, when applicable.
additional_checkboxes
array of merchant requested checkboxs
read only
Informs whether the additional_checkboxes is checked or not, when applicable.
Expand
Merchant Requested Checkbox Object
ParameterDescription
id
string
checked
boolean
selected_shipping_option
object
read only
Current shipping options selected by the customer.
Expand
Selected Shipping Option Object
ParameterDescription
id
string
required
id
name
string
required
Name.
description
string
Description.
promo
string
Promotion name. To be used if this shipping option is promotional.
price
integer
required
Price including tax.
tax_amount
integer
required
Tax amount.
tax_rate
integer
required
Non-negative. In percent, two implicit decimals. I.e 2500 = 25%.
preselected
boolean
If true, this option will be preselected when checkout loads. Default: false
shipping_method
string
Shipping method. Possible values:
  • PickUpStore
  • Home
  • BoxReg
  • BoxUnreg
  • PickUpPoint
  • Own
  • Postal
  • DHLPackstation
  • Digital
If DHLPackstation is selected the correct form will be displayed.
delivery_details
object
The delivery details for this shipping option
Expand
Delivery Details Object
ParameterDescription
carrier
string
Carrier product name
class
string
Type of shipping class
product
object
Upstream carrier product
Expand
Product Object
ParameterDescription
name
string
Carrier product name
identifier
string
Carrier product identifier
pickup_location
object
The selected location for this shipping option
Expand
Pickup Location Object
ParameterDescription
id
string
Id
name
string
Name of the location
address
object
Location adress
Expand
Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
timeslot
object
The selected timeslot for this shipping option
Expand
Timeslot Object
ParameterDescription
id
string
Id
start
string
Start time
end
string
End time
tms_reference
string
TMS reference. Required to map completed orders to shipments reserved in TMS.
recurring
boolean
Indicates whether this purchase will create a token that can be used by the merchant to create recurring purchases. This must be enabled for the merchant to use. Default: false Depending on specified country, recurring could be used for the following payment methods: Pay Later, Direct Debit, Card.
recurring_token
string
read only
Token to be used when creating recurring orders.
recurring_description
string
read only
Description to be added to the recurring order.
billing_countries
array of strings
List of allowed billing countries for this order. If specified, the customer will be able to change the billing country in the checkout and you will be notified through ‘country_change’ callback or the ‘billing_address_change’ javascript event. If not specified then the default value will be the purchase country. Example: ["AD", "AE", "AG", "AI", "AL", "AM", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BW", "BY", "BZ", "CA", "CF", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GR", "GS", "GT", "GU", "GY", "HK", "HN", "HR", "HU", "ID", "IE", "IL", "IM", "IN", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KI", "KM", "KN", "KR", "KW", "KY", "KZ", "LA", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SR", "ST", "SV", "SX", "SZ", "TC", "TF", "TG", "TH", "TJ", "TK", "TL", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VG", "VI", "VN", "VU", "WF", "WS", "XK", "YT", "ZA", "ZM", "ZW"]"
tags
array of strings
"Extra information added to the order. Example: ["dangerous_goods", "bulky"]
ParameterDescription
order_id
string
read only
Unique order ID that will be used for the entire lifecycle of the order. (max 255 characters)
name
string
read only
The merchant name (max 255 characters).
purchase_country
string
required
purchase country of the merchant's store. The format to be used is ISO 3166 alpha-2. Eg: GB, SE, DE, US, etc. Note: purchase country and currency need to match the defined merchant configuration. For global configuration read this https://developers.klarna.com/documentation/klarna-checkout/kco-global/
Read more about data types
purchase_currency
string
required
purchase currency of the merchant's store. The format to be used is ISO 4217. Eg: USD, EUR, SEK, GBP, etc. Note: purchase country and currency need to match the defined merchant configuration. For global configuration read this https://developers.klarna.com/documentation/klarna-checkout/kco-global/
Read more about data types
locale
string
required
Used to define the language and region of the customer. RFC 1766 customer's locale.
Read more about data types
status
string
read only
The current status of the order. The status will be ‘incomplete’ until the customer has been successfully authorized.
billing_address
object
Provide the billing address of the customer, if you have collected already. If not, then Klarna will collect the details inside the Klarna Checkout iFrame before authorization. The billing address is the 'home address' where the credit cards and bank accounts are registered under the customer's name. Note: Once the customer has provided any data in the checkout iframe, updates to this object will be ignored (without generating an error).
Expand
Billing Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
shipping_address
object
read only
Provide the shipping address of the customer, if you have collected already. Unless the customer has explicitly chosen to enter a separate shipping address, this is a clone of billing_address. The customer has the possibility of changing the shipping address inside the Klarna checkout. You will be notified about the change either through the merchant URLs that you provide or through Javascript callbacks.
Expand
Shipping Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
order_amount
integer
required
"Total amount of the order including tax and any available discounts. The value should be in non-negative minor units. Example: 25 Euros should be 2500."
order_tax_amount
integer
required
Total tax amount of the order. The value should be in non-negative minor units. Example: 25 Euros should be 2500.
order_lines
array of order lines
required
An array containing list of line items that are part of this order. Maximum of 1000 line items could be processed in a single order.
Expand
Order Line Object
ParameterDescription
type
string
Type of the order line item. The possible values are:
  • physical (physical good)
  • discount
  • shipping_fee
  • sales_tax (depends on the country/city, usually called VAT)
  • digital (digital good)
  • gift_card
  • store_credit (credit from the merchant)
  • surcharge (extra charge)
reference
string
Article number, SKU or similar. (max 64 characters)
name
string
required
Descriptive name of the order line item (max 255 characters)
quantity
integer
required
Non-negative number. Quantity of the order line item.
quantity_unit
string
Unit used to describe the quantity, e.g. kg, pcs... If defined has to be 1-8 characters
unit_price
integer
required
Minor units. Includes tax, excludes discount. (max value: 100000000). Example: 100 Euros should be 10000.
tax_rate
integer
required
Non-negative value. The percentage value is represented with two implicit decimals. (max 10000) Example: 25% should be 2500.
total_amount
integer
required
Minor units. Includes tax and discount. Example: 25 euros should be 2500 Value = (quantity x unit_price) - total_discount_amount. (max value: 100000000)
total_discount_amount
integer
Non-negative minor units. Includes tax. Example: 25 euros should be 2500
total_tax_amount
integer
required
Must be within ±1 of total_amount - total_amount * 10000 / (10000 + tax_rate). Negative when type is discount.
merchant_data
string
Property used to store additional metadata per item that will be returned whenever an order is read from Klarna. Pass through field. (max 1024 characters).
product_url
string
URL to the product page that can be later embedded in communications between Klarna and the customer. (max 1024 characters)
image_url
string
URL to an image that can be later embedded in communications between Klarna and the customer. (max 1024 characters) Improves post-purchase customer experiences.
product_identifiers
object
Additional information identifying an item
Expand
Product Identifiers Object
ParameterDescription
category_path
string
The product's category path as used in the merchant's webshop. Include the full and most detailed category and separate the segments with ' > '. (max 750 characters) Example: "Electronics Store > Computers & Tablets > Desktops"
global_trade_item_number
string
The product's Global Trade Item Number (GTIN). Common types of GTIN are EAN, ISBN or UPC. Exclude dashes and spaces, where possible
manufacturer_part_number
string
The product's Manufacturer Part Number (MPN), which - together with the brand - uniquely identifies a product. Only submit MPNs assigned by a manufacturer and use the most specific MPN possible
brand
string
The product's brand name as generally recognized by consumers. If no brand is available for a product, do not supply any value.
shipping_attributes
object
Shipping attributes of an item
Expand
Shipping Attributes Object
ParameterDescription
weight
integer
The product's weight as used in the merchant's webshop. Non-negative. Measured in grams.
dimensions
object
The product's dimensions: height, width and length. Of type Long.
Expand
Dimensions Object
ParameterDescription
height
integer
The product's height as used in the merchant's webshop. Non-negative. Measured in millimeters.
width
integer
The product's width as used in the merchant's webshop. Non-negative. Measured in millimeters.
length
integer
The product's length as used in the merchant's webshop. Non-negative. Measured in millimeters.
tags
array of strings
The product's extra features
customer
object
Object to provide the details of the customer making the payment.
Expand
Customer Object
ParameterDescription
date_of_birth
string
Customer’s date of birth. The format is ‘yyyy-mm-dd’. ISO 8601 date.
Read more about data types
type
string
The default supported value is 'person'. If B2B is enabled for the merchant, the value may be "organization".
organization_registration_id
string
"The organization's official registration id (organization number). Note: Applicable only for B2B orders."
gender
string
Customer’s gender - ‘male’ or ‘female’.
merchant_urls
object
required
Used to send in the different merchant URLs that Klarna needs at different stages of the process. Note: it should be HTTPS. Also, it can have {checkout.order.id}, {checkout.order.url} and/or {checkout.order.uri} and KCO will replace it accordingly.
Expand
Merchant Urls Object
ParameterDescription
terms
string
required
URL for the terms and conditions page of the merchant. The URL will be displayed inside the Klarna Checkout iFrame.(max 2000 characters) Example: "https://merchant.com/terms"
cancellation_terms
string
URL for the cancellation terms page of the merchant. The URL will be displayed in the email that is sent to the customer after the order is captured.(max 2000 characters) Example: "https://merchant.com/terms/cancelation"
checkout
string
required
URL for the checkout page of the merchant. (max 2000 characters) Example: "https://merchant.com/checkout"
confirmation
string
required
URL of the merchant confirmation page. The consumer will be redirected back to the confirmation page if the authorization is successful after the customer clicks on the ‘Place Order’ button inside checkout.(max 2000 characters) Example: "https://merchant.com/confirmation"
push
string
required
URL that will be used for push notification when an order is completed. Should be different than checkout and confirmation URLs. (max 2000 characters) Example: "https://merchant.com/push"
validation
string
URL that will be requested for final merchant validation. (must be https, max 2000 characters) Example: "https://merchant.com/validation"
shipping_option_update
string
URL for shipping option update. (must be https, max 2000 characters) Example: "https://merchant.com/shippingoptionupdate"
address_update
string
URL for shipping, tax and purchase currency updates. Will be called on address changes. (must be https, max 2000 characters) Example: "https://merchant.com/addressupdate"
notification
string
URL for notifications on pending orders. (max 2000 characters) Example: "https://merchant.com/notification/{checkout.order.id}"
country_change
string
URL for shipping, tax and purchase currency updates. Will be called on billing or shipping country changes. (must be https, max 2000 characters) Example: "https://merchant.com/countrychange"
html_snippet
string
read only
The HTML snippet that is used to render the checkout in an iframe.
merchant_reference1
string
Used for storing merchant's internal order number or other reference. If set, will be shown on the confirmation page as "order number" . The value is also available in the settlement files. (max 255 characters). Example: "45aa52f387871e3a210645d4"
merchant_reference2
string
Used for storing merchant's internal order number or other reference. The value is available in the settlement files. (max 255 characters). Example: "45aa52f387871e3a210645d4"
started_at
string (datetime)
read only
ISO 8601 datetime. The date and time when the order has been created. The format will be as follows: "yyyy-mm-ddThh:mm:ssZ"
Read more about data types
completed_at
string (datetime)
read only
ISO 8601 datetime. The date and time when the order has been completed. The format will be as follows: "yyyy-mm-ddThh:mm:ssZ"
Read more about data types
last_modified_at
string (datetime)
read only
ISO 8601 datetime. The date and time when the order was last modified. The format will be as follows: "yyyy-mm-ddThh:mm:ssZ"
Read more about data types
options
object
Customization options for the order.
Expand
Options Object
ParameterDescription
acquiring_channel
string
Acquiring channel for the order. The possible values are:
  • MOTO for "Mail Order Telephone Order"
  • ECOMMERCE for "E-commerce"
  • IN_STORE for "Purchase in boutique"
  • TELESALES for "Telesales/telemarketing"
  • Default : ECOMMERCE
allow_separate_shipping_address
boolean
If true, the consumer can enter different billing and shipping addresses. Default: false
color_button
string
Color for the buttons within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_button_text
string
Color for the text inside the buttons within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_checkbox
string
Color for the checkboxes within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_checkbox_checkmark
string
Color for the checkboxes checkmark within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_header
string
Color for the headers within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
date_of_birth_mandatory
boolean
If true, the consumer cannot skip date of birth. Default: false
shipping_details
string
A message that will be presented on the confirmation page under the headline "Delivery" (max 255 characters).
title_mandatory
boolean
If specified to false, title becomes optional. Only available for orders for country GB.
additional_checkbox
object
required
Additional merchant defined checkbox. e.g. for Newsletter opt-in.
Expand
Additional Checkbox Object
ParameterDescription
text
string
required
Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)
checked
boolean
required
Default state of the additional checkbox. It will use this value when loaded for the first time.
required
boolean
required
Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.
national_identification_number_mandatory
boolean
Additional merchant defined field. e.g. for purchases that MUST have a national insurance number.
additional_merchant_terms
string
Additional merchant defined field. e.g. Extra terms and conditions to show. Example: "ADDITIONAL MERCHANT TERMS! [terms link](https://merchant.com/extra_terms)"
phone_mandatory
boolean
If false, the consumer can skip the phone. Only available for orders in DACH countries.
radius_border
string
Radius for the border of elements within the iFrame.
allowed_customer_types
array of strings
A list of allowed customer types. Supported types: person & organization. Example: ["person","organization"]
show_subtotal_detail
boolean
If true, the Order Detail subtotals view is expanded when the Klarna Checkout iFrame is loaded. Default: false
additional_checkboxes
array of checkbox-v2s
Additional merchant defined checkboxes. e.g. for Newsletter opt-in.
Expand
Checkbox-v2 Object
ParameterDescription
id
string
required
Identifier used when presenting data back to merchant
text
string
required
Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)
checked
boolean
required
Default state of the additional checkbox. It will use this value when loaded for the first time.
required
boolean
required
Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.
require_validate_callback_success
boolean
If true, validate callback must get a positive response to not stop purchase. Default: false.
vat_removed
boolean
If true, VAT is not displayed in Checkout's Order Summary page.
verify_national_identification_number
boolean
Enable verification of National Identification Numbers in Sweden and Norway.This option also make the national identification number mandatory
show_vat_registration_number_field
boolean
If true, a optional VAT registration number field will be shown in the address form. Only applies for b2b orders.
attachment
object
Extra Merchant Data (additional information) required for additional risk check. The required parameters will be described in the appendix of contract agreement.
Expand
Attachment Object
ParameterDescription
content_type
string
required
The content type of the body. It is usually represented as "application/vnd.klarna.internal.emd-v2+json"
body
string
required
The content of the extra merchant data which should be presented as a string inside this property. The body should be an object containing any of the keys and sub objects described below serialised to JSON.
Expand
ParameterDescription
air_reservation_details
array of air reservation detailss
Details about the reservation of airline tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
IATA Airport Code (three letters)
departure_city
string
arrival
string
IATA Airport Code (three letters)
arrival_city
string
carrier
string
IATA Airline standard (two letters or digits)
segment_price
number
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
bus_reservation_details
array of bus reservation detailss
Details about the reservation of bus tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
City code or name
departure_city
string
arrival
string
City code or name
arrival_city
string
carrier
string
Name of transportation company
segment_price
integer
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
train_reservation_details
array of train reservation detailss
Details about the reservation of train tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
City code or name
departure_city
string
arrival
string
City code or name
arrival_city
string
carrier
string
Name of transportation company
segment_price
integer
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
ferry_reservation_details
array of ferry reservation detailss
Details about the reservation of ferry tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
City code or name
departure_city
string
arrival
string
City code or name
arrival_city
string
carrier
string
Name of transportation company
segment_price
integer
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
hotel_reservation_details
array of hotel reservation detailss
Details about the reservation of hotel rooms
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
hotel_itinerary
array of hotel itinerarys
Hotel itinerary data, one per hotel stay
Expand
ParameterDescription
hotel_name
string
Name of hotel
address
object

Expand
Address Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
number_of_rooms
integer
passenger_id
array of passenger ids

Expand
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
hotel_price
number
Local currency
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
car_rental_reservation_details
array of car rental reservation detailss
Details about the reservation of rental cars
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
car_rental_itinerary
array of car rental itinerarys
Car rental itinerary data
Expand
ParameterDescription
rental_company
string
Name of rental company
drivers_id
array of drivers ids

Expand
pick_up_location
object

Expand
Pick Up Location Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
drop_off_location
object

Expand
Drop Off Location Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
car_price
number
Local currency
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
drivers
array of driverss

Expand
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
event
array of events

Expand
ParameterDescription
event_name
string
Name of the event, e.g. "Fancy Singer"
event_company
string
Name of the company arranging the event, e.g. "Happy Parties Ltd."
genre_of_event
string
Category or type of venue, "Pop"
arena_name
string
Name of the venue, "Song Arena"
arena_location
object
Location of the arena.
Expand
Location Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
access_controlled_venue
boolean
Tickets are digitally checked when enetering the venue
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
voucher
array of vouchers

Expand
ParameterDescription
voucher_name
string
Description of the product the voucher entitles to, e.g. "China trip"
voucher_company
string
Name of the company that will provide good / service upon voucher (not the same as the selling merchant), e.g. "Sun Trips Ltd."
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
subscription
array of subscriptions

Expand
ParameterDescription
subscription_name
string
Name of the product on subscription, e.g. "Contact lenses"
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
auto_renewal_of_subscription
boolean
Info whether the subscription will be auto renewed upon expiry.
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
marketplace_seller_info
array of marketplace seller infos

Expand
ParameterDescription
unique_account_identifier_seller
object

Expand
Unique Account Identifier Seller Object
ParameterDescription
email
string
required
pno
string
required
other
string
sub_merchant_id
string
Name or unique number of the selling / delivering merchant, e.g. "Marketbrick Ltd."
product_category
string
Name of the overall category to which the specific good(s) belong to, according to the selling merchants categorization. E.g. "Computers"
product_name
string
Name of the specific good purchased, e.g. "Acer 5400"
account_registration_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
account_last_modified
object

Expand
Account Last Modified Object
ParameterDescription
password
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
email
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
listing
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
login
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
address
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
seller_rating
number
Current rating. Partner should provide upfront their rating scale, e.g. 65
number_of_trades
integer
Number of trades the sub-merchant did since 12 months back, e.g. 23
volume_of_trades
integer
Volumes of trades the sub-merchant did since 12 months back, e.g. 230.5
marketplace_winner_info
array of marketplace winner infos

Expand
ParameterDescription
unique_account_identifier_winner
object

Expand
Unique Account Identifier Winner Object
ParameterDescription
email
string
required
pno
string
required
other
string
account_registration_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
account_last_modified
object

Expand
Account Last Modified Object
ParameterDescription
password
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
email
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
listing
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
login
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
address
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
number_of_trades
integer
Number of trades the winner did since 12 months back, e.g. 5
volume_of_trades
integer
Volume of trades the winner did since 12 months back, 230.5
customer_account_info
array of customer account infos

Expand
ParameterDescription
unique_account_identifier
string
Unique name / number to identify the specific customer account. Max 24 characters. E.g. "Adam Adamsson"
account_registration_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
account_last_modified
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
payment_history_full
array of payment history fulls

Expand
ParameterDescription
unique_account_identifier
string
Unique name / number to identify the specific customer account. Max 24 characters. E.g. "Adam Adamsson"
payment_option
string
  • card
  • direct banking
  • non klarna credit
  • sms
  • other
number_paid_purchases
integer
Total number of successful purchases
total_amount_paid_purchases
number
Total amount of successful purchases (local currency), e.g. 1234.00
date_of_last_paid_purchase
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
date_of_first_paid_purchase
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
payment_history_simple
array of payment history simples

Expand
ParameterDescription
unique_account_identifier
string
Unique name / number to identify the specific customer account. Max 24 characters. E.g. "Adam Adamsson"
paid_before
boolean
Whether the customer has paid before or not
other_delivery_address
array of other delivery addresss

Expand
ParameterDescription
shipping_method
undefined
  • store pick-up
  • pick-up point
  • registered box
  • unregistered box
shipping_type
undefined
  • normal
  • express
first_name
string
last_name
string
street_address
string
street_number
string
postal_code
string
city
string
country
string
external_payment_methods
array of payment providers
List of external payment methods that will be displayed as part of payment methods in the checkout.
Expand
Payment Provider Object
ParameterDescription
name
string
required
The name of the payment provider. (max 255 characters)
redirect_url
string
required
URL to redirect to. (must be https, min 7, max 2000 characters)
image_url
string
URL to an image to display. (must be https, max 2000 characters)
fee
integer
Minor units. Includes tax.
description
string
Description. (max 500 characters)
countries
array of strings
If specified, limits the method to the listed countries (alpha 2 codes).
label
string
Controls label of buy button
  • continue
  • complete
external_checkouts
array of payment providers
List of external checkouts that will be displayed as part of payment methods in the checkout.
Expand
Payment Provider Object
ParameterDescription
name
string
required
The name of the payment provider. (max 255 characters)
redirect_url
string
required
URL to redirect to. (must be https, min 7, max 2000 characters)
image_url
string
URL to an image to display. (must be https, max 2000 characters)
fee
integer
Minor units. Includes tax.
description
string
Description. (max 500 characters)
countries
array of strings
If specified, limits the method to the listed countries (alpha 2 codes).
label
string
Controls label of buy button
  • continue
  • complete
shipping_countries
array of strings
List of allowed shipping countries for this order in ISO-3166 alpha-2 format. If specified, the customer will be able to change the shipping country in the checkout and you will be notified through ‘address_update’ callback or the ‘shipping_address_change’ javascript event. If not specified then the default value will be the purchase country. Example: look at billing_countries example.
shipping_options
array of shipping options
A list of shipping options available for this order.
Expand
Shipping Option Object
ParameterDescription
id
string
required
id
name
string
required
Name.
description
string
Description.
promo
string
Promotion name. To be used if this shipping option is promotional.
price
integer
required
Price including tax.
tax_amount
integer
required
Tax amount.
tax_rate
integer
required
Non-negative. In percent, two implicit decimals. I.e 2500 = 25%.
preselected
boolean
If true, this option will be preselected when checkout loads. Default: false
shipping_method
string
Shipping method. Possible values:
  • PickUpStore
  • Home
  • BoxReg
  • BoxUnreg
  • PickUpPoint
  • Own
  • Postal
  • DHLPackstation
  • Digital
If DHLPackstation is selected the correct form will be displayed.
delivery_details
object
The delivery details for this shipping option
Expand
Delivery Details Object
ParameterDescription
carrier
string
Carrier product name
class
string
Type of shipping class
product
object
Upstream carrier product
Expand
Product Object
ParameterDescription
name
string
Carrier product name
identifier
string
Carrier product identifier
pickup_location
object
The selected location for this shipping option
Expand
Pickup Location Object
ParameterDescription
id
string
Id
name
string
Name of the location
address
object
Location adress
Expand
Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
timeslot
object
The selected timeslot for this shipping option
Expand
Timeslot Object
ParameterDescription
id
string
Id
start
string
Start time
end
string
End time
tms_reference
string
TMS reference. Required to map completed orders to shipments reserved in TMS.
merchant_data
string
Pass through field to send any information about the order to be used later for reference while retrieving the order details (max 6000 characters).
gui
object
The gui object.
Expand
Gui Object
ParameterDescription
options
array of strings
read only
An array of options to define the checkout behaviour. Supported options: disable_autofocus, minimal_confirmation. The gui object is an array of options to modify checkout client ui behaviours. Examples: ["disable_autofocus", "minimal_confirmation"]
merchant_requested
object
read only
Provides information about the state of the fields requested by the merchant.
Expand
Merchant Requested Object
ParameterDescription
additional_checkbox
boolean
read only
Informs whether the additional_checkbox is checked or not, when applicable.
additional_checkboxes
array of merchant requested checkboxs
read only
Informs whether the additional_checkboxes is checked or not, when applicable.
Expand
Merchant Requested Checkbox Object
ParameterDescription
id
string
checked
boolean
selected_shipping_option
object
read only
Current shipping options selected by the customer.
Expand
Selected Shipping Option Object
ParameterDescription
id
string
required
id
name
string
required
Name.
description
string
Description.
promo
string
Promotion name. To be used if this shipping option is promotional.
price
integer
required
Price including tax.
tax_amount
integer
required
Tax amount.
tax_rate
integer
required
Non-negative. In percent, two implicit decimals. I.e 2500 = 25%.
preselected
boolean
If true, this option will be preselected when checkout loads. Default: false
shipping_method
string
Shipping method. Possible values:
  • PickUpStore
  • Home
  • BoxReg
  • BoxUnreg
  • PickUpPoint
  • Own
  • Postal
  • DHLPackstation
  • Digital
If DHLPackstation is selected the correct form will be displayed.
delivery_details
object
The delivery details for this shipping option
Expand
Delivery Details Object
ParameterDescription
carrier
string
Carrier product name
class
string
Type of shipping class
product
object
Upstream carrier product
Expand
Product Object
ParameterDescription
name
string
Carrier product name
identifier
string
Carrier product identifier
pickup_location
object
The selected location for this shipping option
Expand
Pickup Location Object
ParameterDescription
id
string
Id
name
string
Name of the location
address
object
Location adress
Expand
Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
timeslot
object
The selected timeslot for this shipping option
Expand
Timeslot Object
ParameterDescription
id
string
Id
start
string
Start time
end
string
End time
tms_reference
string
TMS reference. Required to map completed orders to shipments reserved in TMS.
recurring
boolean
Indicates whether this purchase will create a token that can be used by the merchant to create recurring purchases. This must be enabled for the merchant to use. Default: false Depending on specified country, recurring could be used for the following payment methods: Pay Later, Direct Debit, Card.
recurring_token
string
read only
Token to be used when creating recurring orders.
recurring_description
string
read only
Description to be added to the recurring order.
billing_countries
array of strings
List of allowed billing countries for this order. If specified, the customer will be able to change the billing country in the checkout and you will be notified through ‘country_change’ callback or the ‘billing_address_change’ javascript event. If not specified then the default value will be the purchase country. Example: ["AD", "AE", "AG", "AI", "AL", "AM", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BW", "BY", "BZ", "CA", "CF", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GR", "GS", "GT", "GU", "GY", "HK", "HN", "HR", "HU", "ID", "IE", "IL", "IM", "IN", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KI", "KM", "KN", "KR", "KW", "KY", "KZ", "LA", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SR", "ST", "SV", "SX", "SZ", "TC", "TF", "TG", "TH", "TJ", "TK", "TL", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VG", "VI", "VN", "VU", "WF", "WS", "XK", "YT", "ZA", "ZM", "ZW"]"
tags
array of strings
"Extra information added to the order. Example: ["dangerous_goods", "bulky"]

Retrieve an order

Request
Path:GET /checkout/v3/orders/{order_id}
See full example
Empty body request
Response
Description:successful operation
Headers:Status Code: 200
Content-Type: application/json
See full example
{
    "order_id": "f3392f8b-6116-4073-ab96-e330819e2c07",
    "name": "Women's Fashion",
    "purchase_country": "US",
    "purchase_currency": "USD",
    "locale": "en-US",
    "status": "CHECKOUT_INCOMPLETE",
    "billing_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "family_name": "Doe",
        "email": "john@doe.com",
        "title": "Mr",
        "street_address": "Lombard St 10",
        "street_address2": "Apt 214",
        "street_name": "Lombard St",
        "street_number": "10",
        "house_extension": "B",
        "postal_code": "90210",
        "city": "Beverly Hills",
        "region": "CA",
        "phone": "333444555",
        "country": "US",
        "care_of": "C/O"
    },
    "shipping_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "family_name": "Doe",
        "email": "john@doe.com",
        "title": "Mr",
        "street_address": "Lombard St 10",
        "street_address2": "Apt 214",
        "street_name": "Lombard St",
        "street_number": "10",
        "house_extension": "B",
        "postal_code": "90210",
        "city": "Beverly Hills",
        "region": "CA",
        "phone": "333444555",
        "country": "US",
        "care_of": "C/O"
    },
    "order_amount": 50000,
    "order_tax_amount": 4545,
    "order_lines": [
        {
            "type": "physical",
            "reference": "19-402-USA",
            "name": "Red T-Shirt",
            "quantity": 5,
            "quantity_unit": "pcs",
            "unit_price": 10000,
            "tax_rate": 1000,
            "total_amount": 50000,
            "total_discount_amount": 0,
            "total_tax_amount": 4545,
            "merchant_data": "{\"marketplace_seller_info\":[{\"product_category\":\"Women's Fashion\",\"product_name\":\"Women Sweatshirt\"}]}",
            "product_url": "https://www.example.com/products/f2a8d7e34",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "product_identifiers": {
                "category_path": "Electronics Store > Computers & Tablets > Desktops",
                "global_trade_item_number": "735858293167",
                "manufacturer_part_number": "BOXNUC5CPYH",
                "brand": "Intel"
            },
            "shipping_attributes": {
                "weight": 1000,
                "dimensions": "height: 100, width: 100, length: 100",
                "tags": "[\"dangerous_goods\", \"bulky\"]"
            }
        }
    ],
    "customer": {
        "date_of_birth": "1995-10-20",
        "type": "person",
        "organization_registration_id": "556737-0431",
        "gender": "male"
    },
    "merchant_urls": {
        "terms": "https://www.example.com/terms.html",
        "cancellation_terms": "https://www.example.com/terms/cancellation.html",
        "checkout": "https://www.example.com/checkout.html",
        "confirmation": "https://www.example.com/confirmation.html",
        "push": "https://www.example.com/api/push",
        "validation": "https://www.example.com/api/validation",
        "shipping_option_update": "https://www.example.com/api/shipment",
        "address_update": "https://www.example.com/api/address",
        "notification": "https://www.example.com/api/pending",
        "country_change": "https://www.example.com/api/country"
    },
    "html_snippet": "<div id='klarna-checkout-container'><script>alert('Initializing Klarna Checkout');</script></div>",
    "merchant_reference1": "45aa52f387871e3a210645d4",
    "merchant_reference2": "45aa52f387871e3a210645d4",
    "started_at": "2020-01-23T13:48:29.053Z",
    "completed_at": "2020-01-23T13:48:29.053Z",
    "last_modified_at": "2020-01-23T13:48:29.053Z",
    "options": {
        "acquiring_channel": "eCommerce",
        "allow_separate_shipping_address": false,
        "color_button": "#FF9900",
        "color_button_text": "#FF9900",
        "color_checkbox": "#FF9900",
        "color_checkbox_checkmark": "#FF9900",
        "color_header": "#FF9900",
        "color_link": "#FF9900",
        "date_of_birth_mandatory": false,
        "shipping_details": "Delivered within 1-3 working days",
        "title_mandatory": false,
        "additional_checkbox": {
            "text": "Please add me to the newsletter list, read more here \link\",
            "checked": false,
            "required": false
        },
        "national_identification_number_mandatory": false,
        "additional_merchant_terms": "string",
        "phone_mandatory": false,
        "radius_border": "5",
        "allowed_customer_types": "[\"person\", \"organization\"]",
        "show_subtotal_detail": false,
        "additional_checkboxes": 
            {
                "id": "newsletter_opt_in",
                "text": "Please add me to the newsletter list, read more here \[link\",
                "checked": false,
                "required": false
            }
        ],
        "require_validate_callback_success": false,
        "vat_removed": false,
        "verify_national_identification_number": false,
        "show_vat_registration_number_field": false
    },
    "attachment": {
        "content_type": "application/vnd.klarna.internal.emd-v2+json",
        "body": "{\"hotel_reservation_details\": [{\"pnr\": \"VH67899\",\"hotel_intinerary\": [{\"hotel_name\": \"Hotel ltd.\",\"address\": {\"street_address\": \"Storgatan 3\",\"postal_code\": \"113 35\",\"city\": \"Stockholm\",\"country\": \"Sweden\"},\"start_time\": \"2019-01-31T15:00:00Z\",\"end_time\": \"2019-01-31T15:30:00Z\",\"number_of_rooms\": 2,\"ticket_delivery_method\": \"email\",\"ticket_delivery_recipient\": \"jonas.larlsson@klarna.com\",\"hotel_price\": 23050,\"class\": \"Business\",\"passenger_id\": [1]}],\"passengers\": [{\"id\": 1,\"title\": \"mr\",\"first_name\": \"Adam\",\"last_name\": \"Adamson\"}],\"insurance\": [{\"insurance_company\": \"Insurance Company X\",\"insurance_type\": \"travel\",\"insurance_price\": 0}],\"affiliate_name\": \"TradeMaxi AB\"}],\"air_reservation_details\": [{\"pnr\": \"VH67899\",\"intinerary\": [{\"departure\": \"ARN\",\"departure_city\": \"Stockholm\",\"arrival\": \"NCE\",\"arrival_city\": \"Nice\",\"carrier\": \"SK\",\"segment_price\": 34000,\"departure_date\": \"2019-01-30T15:00:00Z\",\"ticket_delivery_method\": \"email\",\"ticket_delivery_recipient\": \"jonas.larlsson@klarna.com\",\"passenger_id\": [1]}],\"passengers\": [{\"id\": 1,\"title\": \"mr\",\"first_name\": \"Adam\",\"last_name\": \"Adamson\"}],\"insurance\": [{\"insurance_company\": \"Insurance Company X\",\"insurance_type\": \"travel\",\"insurance_price\": 0}],\"affiliate_name\": \"TradeMaxi AB\"}],\"customer_account_info\": [{\"unique_account_identifier\": \"12345\",\"account_registration_date\": \"2016-01-24T15:00:00Z\",\"account_last_modified\": \"2017-01-24T15:00:00Z\"}],\"payment_history_full\": [{\"payment_option\": \"card\",\"number_paid_purchases\": 2,\"total_amount_paid_purchases\": 1234,\"date_of_last_paid_purchase\": \"2018-01-24T15:00:00Z\",\"date_of_first_paid_purchase\": \"2018-01-24T15:00:00Z\"}]}"
    },
    "external_payment_methods": [
        {
            "name": "PayhereUs",
            "redirect_url": "https://www.example.com/us/start",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "fee": 0,
            "description": "an American company operating a worldwide online payments system",
            "countries": [
                "us",
                "gb"
            ],
            "label": "continue"
        }
    ],
    "external_checkouts": [
        {
            "name": "PayhereUs",
            "redirect_url": "https://www.example.com/us/start",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "fee": 0,
            "description": "an American company operating a worldwide online payments system",
            "countries": [
                "us",
                "gb"
            ],
            "label": "continue"
        }
    ],
    "shipping_countries": [
        "us",
        "gb"
    ],
    "shipping_options": [
        {
            "id": "express_priority",
            "name": "EXPRESS 1-2 Days",
            "description": "Delivery by 4:30 pm",
            "promo": "Christmas Promotion",
            "price": 0,
            "tax_amount": 0,
            "tax_rate": 0,
            "preselected": false,
            "shipping_method": "PickUpStore",
            "delivery_details": {
                "carrier": "string",
                "class": "string",
                "product": {
                    "name": "string",
                    "identifier": "string"
                },
                "pickup_location": {
                    "id": "string",
                    "name": "string",
                    "address": {
                        "organization_name": "string",
                        "reference": "string",
                        "attention": "string",
                        "given_name": "John",
                        "family_name": "Doe",
                        "email": "john@doe.com",
                        "title": "Mr",
                        "street_address": "Lombard St 10",
                        "street_address2": "Apt 214",
                        "street_name": "Lombard St",
                        "street_number": "10",
                        "house_extension": "B",
                        "postal_code": "90210",
                        "city": "Beverly Hills",
                        "region": "CA",
                        "phone": "333444555",
                        "country": "US",
                        "care_of": "C/O"
                    }
                },
                "timeslot": {
                    "id": "string",
                    "start": "string",
                    "end": "string"
                }
            },
            "tms_reference": "a1b2c3d4-e4f6-g7h8-i9j0-k1l2m3n4o5p6"
        }
    ],
    "merchant_data": "{\"marketplace_seller_info\":[{\"product_category\":\"Women's Fashion\",\"product_name\":\"Women Sweatshirt\"}]}",
    "gui": {
        "options": [
            "disable_autofocus"
        ]
    },
    "merchant_requested": {
        "additional_checkbox": false,
        "additional_checkboxes": [
            {
                "id": "string",
                "checked": false
            }
        ]
    },
    "selected_shipping_option": {
        "id": "express_priority",
        "name": "EXPRESS 1-2 Days",
        "description": "Delivery by 4:30 pm",
        "promo": "Christmas Promotion",
        "price": 0,
        "tax_amount": 0,
        "tax_rate": 0,
        "preselected": false,
        "shipping_method": "PickUpStore",
        "delivery_details": {
            "carrier": "string",
            "class": "string",
            "product": {
                "name": "string",
                "identifier": "string"
            },
            "pickup_location": {
                "id": "string",
                "name": "string",
                "address": {
                    "organization_name": "string",
                    "reference": "string",
                    "attention": "string",
                    "given_name": "John",
                    "family_name": "Doe",
                    "email": "john@doe.com",
                    "title": "Mr",
                    "street_address": "Lombard St 10",
                    "street_address2": "Apt 214",
                    "street_name": "Lombard St",
                    "street_number": "10",
                    "house_extension": "B",
                    "postal_code": "90210",
                    "city": "Beverly Hills",
                    "region": "CA",
                    "phone": "333444555",
                    "country": "US",
                    "care_of": "C/O"
                }
            },
            "timeslot": {
                "id": "string",
                "start": "string",
                "end": "string"
            }
        },
        "tms_reference": "a1b2c3d4-e4f6-g7h8-i9j0-k1l2m3n4o5p6"
    },
    "recurring": false,
    "recurring_token": "string",
    "recurring_description": "string",
    "billing_countries": [
        "us",
        "gb"
    ],
    "tags": "[\"dangerous_goods\", \"bulky\"]"
}
401You were not authorized to execute this operation. Show
{}
403Merchant was not activated. Show
{}
404We did not find any order with given ID. You need to create a new order. Show
{}
Code Examples
Use this API call to read an order from Klarna.

> Note that orders should only be read from the checkout API until the order is completed. Completed orders should be read using the order management API

Use this API call to read an order from Klarna.

Note that orders should only be read from the checkout API until the order is completed. Completed orders should be read using the order management API

HTTP Request

GET /checkout/v3/orders/{order_id}

path collapse expand

ParameterDescription
order_id
string
required
ParameterDescription
order_id
string
read only
Unique order ID that will be used for the entire lifecycle of the order. (max 255 characters)
name
string
read only
The merchant name (max 255 characters).
purchase_country
string
required
purchase country of the merchant's store. The format to be used is ISO 3166 alpha-2. Eg: GB, SE, DE, US, etc. Note: purchase country and currency need to match the defined merchant configuration. For global configuration read this https://developers.klarna.com/documentation/klarna-checkout/kco-global/
Read more about data types
purchase_currency
string
required
purchase currency of the merchant's store. The format to be used is ISO 4217. Eg: USD, EUR, SEK, GBP, etc. Note: purchase country and currency need to match the defined merchant configuration. For global configuration read this https://developers.klarna.com/documentation/klarna-checkout/kco-global/
Read more about data types
locale
string
required
Used to define the language and region of the customer. RFC 1766 customer's locale.
Read more about data types
status
string
read only
The current status of the order. The status will be ‘incomplete’ until the customer has been successfully authorized.
billing_address
object
Provide the billing address of the customer, if you have collected already. If not, then Klarna will collect the details inside the Klarna Checkout iFrame before authorization. The billing address is the 'home address' where the credit cards and bank accounts are registered under the customer's name. Note: Once the customer has provided any data in the checkout iframe, updates to this object will be ignored (without generating an error).
Expand
Billing Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
shipping_address
object
read only
Provide the shipping address of the customer, if you have collected already. Unless the customer has explicitly chosen to enter a separate shipping address, this is a clone of billing_address. The customer has the possibility of changing the shipping address inside the Klarna checkout. You will be notified about the change either through the merchant URLs that you provide or through Javascript callbacks.
Expand
Shipping Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
order_amount
integer
required
"Total amount of the order including tax and any available discounts. The value should be in non-negative minor units. Example: 25 Euros should be 2500."
order_tax_amount
integer
required
Total tax amount of the order. The value should be in non-negative minor units. Example: 25 Euros should be 2500.
order_lines
array of order lines
required
An array containing list of line items that are part of this order. Maximum of 1000 line items could be processed in a single order.
Expand
Order Line Object
ParameterDescription
type
string
Type of the order line item. The possible values are:
  • physical (physical good)
  • discount
  • shipping_fee
  • sales_tax (depends on the country/city, usually called VAT)
  • digital (digital good)
  • gift_card
  • store_credit (credit from the merchant)
  • surcharge (extra charge)
reference
string
Article number, SKU or similar. (max 64 characters)
name
string
required
Descriptive name of the order line item (max 255 characters)
quantity
integer
required
Non-negative number. Quantity of the order line item.
quantity_unit
string
Unit used to describe the quantity, e.g. kg, pcs... If defined has to be 1-8 characters
unit_price
integer
required
Minor units. Includes tax, excludes discount. (max value: 100000000). Example: 100 Euros should be 10000.
tax_rate
integer
required
Non-negative value. The percentage value is represented with two implicit decimals. (max 10000) Example: 25% should be 2500.
total_amount
integer
required
Minor units. Includes tax and discount. Example: 25 euros should be 2500 Value = (quantity x unit_price) - total_discount_amount. (max value: 100000000)
total_discount_amount
integer
Non-negative minor units. Includes tax. Example: 25 euros should be 2500
total_tax_amount
integer
required
Must be within ±1 of total_amount - total_amount * 10000 / (10000 + tax_rate). Negative when type is discount.
merchant_data
string
Property used to store additional metadata per item that will be returned whenever an order is read from Klarna. Pass through field. (max 1024 characters).
product_url
string
URL to the product page that can be later embedded in communications between Klarna and the customer. (max 1024 characters)
image_url
string
URL to an image that can be later embedded in communications between Klarna and the customer. (max 1024 characters) Improves post-purchase customer experiences.
product_identifiers
object
Additional information identifying an item
Expand
Product Identifiers Object
ParameterDescription
category_path
string
The product's category path as used in the merchant's webshop. Include the full and most detailed category and separate the segments with ' > '. (max 750 characters) Example: "Electronics Store > Computers & Tablets > Desktops"
global_trade_item_number
string
The product's Global Trade Item Number (GTIN). Common types of GTIN are EAN, ISBN or UPC. Exclude dashes and spaces, where possible
manufacturer_part_number
string
The product's Manufacturer Part Number (MPN), which - together with the brand - uniquely identifies a product. Only submit MPNs assigned by a manufacturer and use the most specific MPN possible
brand
string
The product's brand name as generally recognized by consumers. If no brand is available for a product, do not supply any value.
shipping_attributes
object
Shipping attributes of an item
Expand
Shipping Attributes Object
ParameterDescription
weight
integer
The product's weight as used in the merchant's webshop. Non-negative. Measured in grams.
dimensions
object
The product's dimensions: height, width and length. Of type Long.
Expand
Dimensions Object
ParameterDescription
height
integer
The product's height as used in the merchant's webshop. Non-negative. Measured in millimeters.
width
integer
The product's width as used in the merchant's webshop. Non-negative. Measured in millimeters.
length
integer
The product's length as used in the merchant's webshop. Non-negative. Measured in millimeters.
tags
array of strings
The product's extra features
customer
object
Object to provide the details of the customer making the payment.
Expand
Customer Object
ParameterDescription
date_of_birth
string
Customer’s date of birth. The format is ‘yyyy-mm-dd’. ISO 8601 date.
Read more about data types
type
string
The default supported value is 'person'. If B2B is enabled for the merchant, the value may be "organization".
organization_registration_id
string
"The organization's official registration id (organization number). Note: Applicable only for B2B orders."
gender
string
Customer’s gender - ‘male’ or ‘female’.
merchant_urls
object
required
Used to send in the different merchant URLs that Klarna needs at different stages of the process. Note: it should be HTTPS. Also, it can have {checkout.order.id}, {checkout.order.url} and/or {checkout.order.uri} and KCO will replace it accordingly.
Expand
Merchant Urls Object
ParameterDescription
terms
string
required
URL for the terms and conditions page of the merchant. The URL will be displayed inside the Klarna Checkout iFrame.(max 2000 characters) Example: "https://merchant.com/terms"
cancellation_terms
string
URL for the cancellation terms page of the merchant. The URL will be displayed in the email that is sent to the customer after the order is captured.(max 2000 characters) Example: "https://merchant.com/terms/cancelation"
checkout
string
required
URL for the checkout page of the merchant. (max 2000 characters) Example: "https://merchant.com/checkout"
confirmation
string
required
URL of the merchant confirmation page. The consumer will be redirected back to the confirmation page if the authorization is successful after the customer clicks on the ‘Place Order’ button inside checkout.(max 2000 characters) Example: "https://merchant.com/confirmation"
push
string
required
URL that will be used for push notification when an order is completed. Should be different than checkout and confirmation URLs. (max 2000 characters) Example: "https://merchant.com/push"
validation
string
URL that will be requested for final merchant validation. (must be https, max 2000 characters) Example: "https://merchant.com/validation"
shipping_option_update
string
URL for shipping option update. (must be https, max 2000 characters) Example: "https://merchant.com/shippingoptionupdate"
address_update
string
URL for shipping, tax and purchase currency updates. Will be called on address changes. (must be https, max 2000 characters) Example: "https://merchant.com/addressupdate"
notification
string
URL for notifications on pending orders. (max 2000 characters) Example: "https://merchant.com/notification/{checkout.order.id}"
country_change
string
URL for shipping, tax and purchase currency updates. Will be called on billing or shipping country changes. (must be https, max 2000 characters) Example: "https://merchant.com/countrychange"
html_snippet
string
read only
The HTML snippet that is used to render the checkout in an iframe.
merchant_reference1
string
Used for storing merchant's internal order number or other reference. If set, will be shown on the confirmation page as "order number" . The value is also available in the settlement files. (max 255 characters). Example: "45aa52f387871e3a210645d4"
merchant_reference2
string
Used for storing merchant's internal order number or other reference. The value is available in the settlement files. (max 255 characters). Example: "45aa52f387871e3a210645d4"
started_at
string (datetime)
read only
ISO 8601 datetime. The date and time when the order has been created. The format will be as follows: "yyyy-mm-ddThh:mm:ssZ"
Read more about data types
completed_at
string (datetime)
read only
ISO 8601 datetime. The date and time when the order has been completed. The format will be as follows: "yyyy-mm-ddThh:mm:ssZ"
Read more about data types
last_modified_at
string (datetime)
read only
ISO 8601 datetime. The date and time when the order was last modified. The format will be as follows: "yyyy-mm-ddThh:mm:ssZ"
Read more about data types
options
object
Customization options for the order.
Expand
Options Object
ParameterDescription
acquiring_channel
string
Acquiring channel for the order. The possible values are:
  • MOTO for "Mail Order Telephone Order"
  • ECOMMERCE for "E-commerce"
  • IN_STORE for "Purchase in boutique"
  • TELESALES for "Telesales/telemarketing"
  • Default : ECOMMERCE
allow_separate_shipping_address
boolean
If true, the consumer can enter different billing and shipping addresses. Default: false
color_button
string
Color for the buttons within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_button_text
string
Color for the text inside the buttons within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_checkbox
string
Color for the checkboxes within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_checkbox_checkmark
string
Color for the checkboxes checkmark within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
color_header
string
Color for the headers within the iFrame. Value should be a CSS hex color, e.g. "#FF9900"
date_of_birth_mandatory
boolean
If true, the consumer cannot skip date of birth. Default: false
shipping_details
string
A message that will be presented on the confirmation page under the headline "Delivery" (max 255 characters).
title_mandatory
boolean
If specified to false, title becomes optional. Only available for orders for country GB.
additional_checkbox
object
required
Additional merchant defined checkbox. e.g. for Newsletter opt-in.
Expand
Additional Checkbox Object
ParameterDescription
text
string
required
Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)
checked
boolean
required
Default state of the additional checkbox. It will use this value when loaded for the first time.
required
boolean
required
Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.
national_identification_number_mandatory
boolean
Additional merchant defined field. e.g. for purchases that MUST have a national insurance number.
additional_merchant_terms
string
Additional merchant defined field. e.g. Extra terms and conditions to show. Example: "ADDITIONAL MERCHANT TERMS! [terms link](https://merchant.com/extra_terms)"
phone_mandatory
boolean
If false, the consumer can skip the phone. Only available for orders in DACH countries.
radius_border
string
Radius for the border of elements within the iFrame.
allowed_customer_types
array of strings
A list of allowed customer types. Supported types: person & organization. Example: ["person","organization"]
show_subtotal_detail
boolean
If true, the Order Detail subtotals view is expanded when the Klarna Checkout iFrame is loaded. Default: false
additional_checkboxes
array of checkbox-v2s
Additional merchant defined checkboxes. e.g. for Newsletter opt-in.
Expand
Checkbox-v2 Object
ParameterDescription
id
string
required
Identifier used when presenting data back to merchant
text
string
required
Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)
checked
boolean
required
Default state of the additional checkbox. It will use this value when loaded for the first time.
required
boolean
required
Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.
require_validate_callback_success
boolean
If true, validate callback must get a positive response to not stop purchase. Default: false.
vat_removed
boolean
If true, VAT is not displayed in Checkout's Order Summary page.
verify_national_identification_number
boolean
Enable verification of National Identification Numbers in Sweden and Norway.This option also make the national identification number mandatory
show_vat_registration_number_field
boolean
If true, a optional VAT registration number field will be shown in the address form. Only applies for b2b orders.
attachment
object
Extra Merchant Data (additional information) required for additional risk check. The required parameters will be described in the appendix of contract agreement.
Expand
Attachment Object
ParameterDescription
content_type
string
required
The content type of the body. It is usually represented as "application/vnd.klarna.internal.emd-v2+json"
body
string
required
The content of the extra merchant data which should be presented as a string inside this property. The body should be an object containing any of the keys and sub objects described below serialised to JSON.
Expand
ParameterDescription
air_reservation_details
array of air reservation detailss
Details about the reservation of airline tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
IATA Airport Code (three letters)
departure_city
string
arrival
string
IATA Airport Code (three letters)
arrival_city
string
carrier
string
IATA Airline standard (two letters or digits)
segment_price
number
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
bus_reservation_details
array of bus reservation detailss
Details about the reservation of bus tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
City code or name
departure_city
string
arrival
string
City code or name
arrival_city
string
carrier
string
Name of transportation company
segment_price
integer
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
train_reservation_details
array of train reservation detailss
Details about the reservation of train tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
City code or name
departure_city
string
arrival
string
City code or name
arrival_city
string
carrier
string
Name of transportation company
segment_price
integer
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
ferry_reservation_details
array of ferry reservation detailss
Details about the reservation of ferry tickets
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
itinerary
array of itinerarys
Itinerary data, one per segment
Expand
ParameterDescription
departure
string
City code or name
departure_city
string
arrival
string
City code or name
arrival_city
string
carrier
string
Name of transportation company
segment_price
integer
Local currency
departure_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
passenger_id
array of passenger ids

Expand
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
hotel_reservation_details
array of hotel reservation detailss
Details about the reservation of hotel rooms
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
hotel_itinerary
array of hotel itinerarys
Hotel itinerary data, one per hotel stay
Expand
ParameterDescription
hotel_name
string
Name of hotel
address
object

Expand
Address Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
number_of_rooms
integer
passenger_id
array of passenger ids

Expand
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
hotel_price
number
Local currency
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
passengers
array of persons
Passengers data
Expand
Person Object
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
car_rental_reservation_details
array of car rental reservation detailss
Details about the reservation of rental cars
Expand
ParameterDescription
pnr
string
Trip booking number, e.g. VH67899
car_rental_itinerary
array of car rental itinerarys
Car rental itinerary data
Expand
ParameterDescription
rental_company
string
Name of rental company
drivers_id
array of drivers ids

Expand
pick_up_location
object

Expand
Pick Up Location Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
drop_off_location
object

Expand
Drop Off Location Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
car_price
number
Local currency
class
string
insurance
array of insurances
Insurance data
Expand
ParameterDescription
insurance_company
string
insurance_type
undefined
  • cancellation
  • travel
  • cancellation_travel
  • bankruptcy
insurance_price
number
Local currency
drivers
array of driverss

Expand
ParameterDescription
id
integer
title
undefined
Mr, Mrs, Ms or blank if under 12 years
  • mr
  • mrs
  • ms
first_name
string
last_name
string
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
event
array of events

Expand
ParameterDescription
event_name
string
Name of the event, e.g. "Fancy Singer"
event_company
string
Name of the company arranging the event, e.g. "Happy Parties Ltd."
genre_of_event
string
Category or type of venue, "Pop"
arena_name
string
Name of the venue, "Song Arena"
arena_location
object
Location of the arena.
Expand
Location Object
ParameterDescription
street_address
string
postal_code
string
city
string
country
string
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
access_controlled_venue
boolean
Tickets are digitally checked when enetering the venue
ticket_delivery_method
undefined
  • pick_up
  • email
  • post
  • phone
ticket_delivery_recipient
string
The name of the recipient the ticket is delivered to. If email or phone, then use either the email address or the phone number.
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
voucher
array of vouchers

Expand
ParameterDescription
voucher_name
string
Description of the product the voucher entitles to, e.g. "China trip"
voucher_company
string
Name of the company that will provide good / service upon voucher (not the same as the selling merchant), e.g. "Sun Trips Ltd."
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
subscription
array of subscriptions

Expand
ParameterDescription
subscription_name
string
Name of the product on subscription, e.g. "Contact lenses"
start_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
end_time
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
auto_renewal_of_subscription
boolean
Info whether the subscription will be auto renewed upon expiry.
affiliate_name
string
Name of the affiliate that originated the purchase. If none, leave blank.
marketplace_seller_info
array of marketplace seller infos

Expand
ParameterDescription
unique_account_identifier_seller
object

Expand
Unique Account Identifier Seller Object
ParameterDescription
email
string
required
pno
string
required
other
string
sub_merchant_id
string
Name or unique number of the selling / delivering merchant, e.g. "Marketbrick Ltd."
product_category
string
Name of the overall category to which the specific good(s) belong to, according to the selling merchants categorization. E.g. "Computers"
product_name
string
Name of the specific good purchased, e.g. "Acer 5400"
account_registration_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
account_last_modified
object

Expand
Account Last Modified Object
ParameterDescription
password
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
email
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
listing
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
login
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
address
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
seller_rating
number
Current rating. Partner should provide upfront their rating scale, e.g. 65
number_of_trades
integer
Number of trades the sub-merchant did since 12 months back, e.g. 23
volume_of_trades
integer
Volumes of trades the sub-merchant did since 12 months back, e.g. 230.5
marketplace_winner_info
array of marketplace winner infos

Expand
ParameterDescription
unique_account_identifier_winner
object

Expand
Unique Account Identifier Winner Object
ParameterDescription
email
string
required
pno
string
required
other
string
account_registration_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
account_last_modified
object

Expand
Account Last Modified Object
ParameterDescription
password
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
email
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
listing
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
login
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
address
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
number_of_trades
integer
Number of trades the winner did since 12 months back, e.g. 5
volume_of_trades
integer
Volume of trades the winner did since 12 months back, 230.5
customer_account_info
array of customer account infos

Expand
ParameterDescription
unique_account_identifier
string
Unique name / number to identify the specific customer account. Max 24 characters. E.g. "Adam Adamsson"
account_registration_date
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
account_last_modified
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
payment_history_full
array of payment history fulls

Expand
ParameterDescription
unique_account_identifier
string
Unique name / number to identify the specific customer account. Max 24 characters. E.g. "Adam Adamsson"
payment_option
string
  • card
  • direct banking
  • non klarna credit
  • sms
  • other
number_paid_purchases
integer
Total number of successful purchases
total_amount_paid_purchases
number
Total amount of successful purchases (local currency), e.g. 1234.00
date_of_last_paid_purchase
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
date_of_first_paid_purchase
string (datetime)
ISO 8601 e.g. 2012-11-24T15:00
Read more about data types
payment_history_simple
array of payment history simples

Expand
ParameterDescription
unique_account_identifier
string
Unique name / number to identify the specific customer account. Max 24 characters. E.g. "Adam Adamsson"
paid_before
boolean
Whether the customer has paid before or not
other_delivery_address
array of other delivery addresss

Expand
ParameterDescription
shipping_method
undefined
  • store pick-up
  • pick-up point
  • registered box
  • unregistered box
shipping_type
undefined
  • normal
  • express
first_name
string
last_name
string
street_address
string
street_number
string
postal_code
string
city
string
country
string
external_payment_methods
array of payment providers
List of external payment methods that will be displayed as part of payment methods in the checkout.
Expand
Payment Provider Object
ParameterDescription
name
string
required
The name of the payment provider. (max 255 characters)
redirect_url
string
required
URL to redirect to. (must be https, min 7, max 2000 characters)
image_url
string
URL to an image to display. (must be https, max 2000 characters)
fee
integer
Minor units. Includes tax.
description
string
Description. (max 500 characters)
countries
array of strings
If specified, limits the method to the listed countries (alpha 2 codes).
label
string
Controls label of buy button
  • continue
  • complete
external_checkouts
array of payment providers
List of external checkouts that will be displayed as part of payment methods in the checkout.
Expand
Payment Provider Object
ParameterDescription
name
string
required
The name of the payment provider. (max 255 characters)
redirect_url
string
required
URL to redirect to. (must be https, min 7, max 2000 characters)
image_url
string
URL to an image to display. (must be https, max 2000 characters)
fee
integer
Minor units. Includes tax.
description
string
Description. (max 500 characters)
countries
array of strings
If specified, limits the method to the listed countries (alpha 2 codes).
label
string
Controls label of buy button
  • continue
  • complete
shipping_countries
array of strings
List of allowed shipping countries for this order in ISO-3166 alpha-2 format. If specified, the customer will be able to change the shipping country in the checkout and you will be notified through ‘address_update’ callback or the ‘shipping_address_change’ javascript event. If not specified then the default value will be the purchase country. Example: look at billing_countries example.
shipping_options
array of shipping options
A list of shipping options available for this order.
Expand
Shipping Option Object
ParameterDescription
id
string
required
id
name
string
required
Name.
description
string
Description.
promo
string
Promotion name. To be used if this shipping option is promotional.
price
integer
required
Price including tax.
tax_amount
integer
required
Tax amount.
tax_rate
integer
required
Non-negative. In percent, two implicit decimals. I.e 2500 = 25%.
preselected
boolean
If true, this option will be preselected when checkout loads. Default: false
shipping_method
string
Shipping method. Possible values:
  • PickUpStore
  • Home
  • BoxReg
  • BoxUnreg
  • PickUpPoint
  • Own
  • Postal
  • DHLPackstation
  • Digital
If DHLPackstation is selected the correct form will be displayed.
delivery_details
object
The delivery details for this shipping option
Expand
Delivery Details Object
ParameterDescription
carrier
string
Carrier product name
class
string
Type of shipping class
product
object
Upstream carrier product
Expand
Product Object
ParameterDescription
name
string
Carrier product name
identifier
string
Carrier product identifier
pickup_location
object
The selected location for this shipping option
Expand
Pickup Location Object
ParameterDescription
id
string
Id
name
string
Name of the location
address
object
Location adress
Expand
Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
timeslot
object
The selected timeslot for this shipping option
Expand
Timeslot Object
ParameterDescription
id
string
Id
start
string
Start time
end
string
End time
tms_reference
string
TMS reference. Required to map completed orders to shipments reserved in TMS.
merchant_data
string
Pass through field to send any information about the order to be used later for reference while retrieving the order details (max 6000 characters).
gui
object
The gui object.
Expand
Gui Object
ParameterDescription
options
array of strings
read only
An array of options to define the checkout behaviour. Supported options: disable_autofocus, minimal_confirmation. The gui object is an array of options to modify checkout client ui behaviours. Examples: ["disable_autofocus", "minimal_confirmation"]
merchant_requested
object
read only
Provides information about the state of the fields requested by the merchant.
Expand
Merchant Requested Object
ParameterDescription
additional_checkbox
boolean
read only
Informs whether the additional_checkbox is checked or not, when applicable.
additional_checkboxes
array of merchant requested checkboxs
read only
Informs whether the additional_checkboxes is checked or not, when applicable.
Expand
Merchant Requested Checkbox Object
ParameterDescription
id
string
checked
boolean
selected_shipping_option
object
read only
Current shipping options selected by the customer.
Expand
Selected Shipping Option Object
ParameterDescription
id
string
required
id
name
string
required
Name.
description
string
Description.
promo
string
Promotion name. To be used if this shipping option is promotional.
price
integer
required
Price including tax.
tax_amount
integer
required
Tax amount.
tax_rate
integer
required
Non-negative. In percent, two implicit decimals. I.e 2500 = 25%.
preselected
boolean
If true, this option will be preselected when checkout loads. Default: false
shipping_method
string
Shipping method. Possible values:
  • PickUpStore
  • Home
  • BoxReg
  • BoxUnreg
  • PickUpPoint
  • Own
  • Postal
  • DHLPackstation
  • Digital
If DHLPackstation is selected the correct form will be displayed.
delivery_details
object
The delivery details for this shipping option
Expand
Delivery Details Object
ParameterDescription
carrier
string
Carrier product name
class
string
Type of shipping class
product
object
Upstream carrier product
Expand
Product Object
ParameterDescription
name
string
Carrier product name
identifier
string
Carrier product identifier
pickup_location
object
The selected location for this shipping option
Expand
Pickup Location Object
ParameterDescription
id
string
Id
name
string
Name of the location
address
object
Location adress
Expand
Address Object
ParameterDescription
organization_name
string
reference
string
attention
string
given_name
string
Given name.
family_name
string
Family name.
email
string
E-mail address.
title
string
Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
street_address
string
Street address, first line.
street_address2
string
Street address, second line.
street_name
string
Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.
street_number
string
Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.
house_extension
string
House extension. Only applicable in NL
postal_code
string
Postal/post code.
city
string
City.
region
string
State or Region.
phone
string
Phone number.
country
string
ISO 3166 alpha-2. Country.
Read more about data types
care_of
string
Care of.
timeslot
object
The selected timeslot for this shipping option
Expand
Timeslot Object
ParameterDescription
id
string
Id
start
string
Start time
end
string
End time
tms_reference
string
TMS reference. Required to map completed orders to shipments reserved in TMS.
recurring
boolean
Indicates whether this purchase will create a token that can be used by the merchant to create recurring purchases. This must be enabled for the merchant to use. Default: false Depending on specified country, recurring could be used for the following payment methods: Pay Later, Direct Debit, Card.
recurring_token
string
read only
Token to be used when creating recurring orders.
recurring_description
string
read only
Description to be added to the recurring order.
billing_countries
array of strings
List of allowed billing countries for this order. If specified, the customer will be able to change the billing country in the checkout and you will be notified through ‘country_change’ callback or the ‘billing_address_change’ javascript event. If not specified then the default value will be the purchase country. Example: ["AD", "AE", "AG", "AI", "AL", "AM", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BW", "BY", "BZ", "CA", "CF", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GR", "GS", "GT", "GU", "GY", "HK", "HN", "HR", "HU", "ID", "IE", "IL", "IM", "IN", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KI", "KM", "KN", "KR", "KW", "KY", "KZ", "LA", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SR", "ST", "SV", "SX", "SZ", "TC", "TF", "TG", "TH", "TJ", "TK", "TL", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VG", "VI", "VN", "VU", "WF", "WS", "XK", "YT", "ZA", "ZM", "ZW"]"
tags
array of strings
"Extra information added to the order. Example: ["dangerous_goods", "bulky"]

Update an order

Request
Path:POST /checkout/v3/orders/{order_id}
Headers:Content-Type: application/json
See full example
{
    "order_id": "f3392f8b-6116-4073-ab96-e330819e2c07",
    "name": "Women's Fashion",
    "purchase_country": "US",
    "purchase_currency": "USD",
    "locale": "en-US",
    "status": "CHECKOUT_INCOMPLETE",
    "billing_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "family_name": "Doe",
        "email": "john@doe.com",
        "title": "Mr",
        "street_address": "Lombard St 10",
        "street_address2": "Apt 214",
        "street_name": "Lombard St",
        "street_number": "10",
        "house_extension": "B",
        "postal_code": "90210",
        "city": "Beverly Hills",
        "region": "CA",
        "phone": "333444555",
        "country": "US",
        "care_of": "C/O"
    },
    "shipping_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "family_name": "Doe",
        "email": "john@doe.com",
        "title": "Mr",
        "street_address": "Lombard St 10",
        "street_address2": "Apt 214",
        "street_name": "Lombard St",
        "street_number": "10",
        "house_extension": "B",
        "postal_code": "90210",
        "city": "Beverly Hills",
        "region": "CA",
        "phone": "333444555",
        "country": "US",
        "care_of": "C/O"
    },
    "order_amount": 50000,
    "order_tax_amount": 4545,
    "order_lines": [
        {
            "type": "physical",
            "reference": "19-402-USA",
            "name": "Red T-Shirt",
            "quantity": 5,
            "quantity_unit": "pcs",
            "unit_price": 10000,
            "tax_rate": 1000,
            "total_amount": 50000,
            "total_discount_amount": 0,
            "total_tax_amount": 4545,
            "merchant_data": "{\"marketplace_seller_info\":[{\"product_category\":\"Women's Fashion\",\"product_name\":\"Women Sweatshirt\"}]}",
            "product_url": "https://www.example.com/products/f2a8d7e34",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "product_identifiers": {
                "category_path": "Electronics Store > Computers & Tablets > Desktops",
                "global_trade_item_number": "735858293167",
                "manufacturer_part_number": "BOXNUC5CPYH",
                "brand": "Intel"
            },
            "shipping_attributes": {
                "weight": 1000,
                "dimensions": "height: 100, width: 100, length: 100",
                "tags": "[\"dangerous_goods\", \"bulky\"]"
            }
        }
    ],
    "customer": {
        "date_of_birth": "1995-10-20",
        "type": "person",
        "organization_registration_id": "556737-0431",
        "gender": "male"
    },
    "merchant_urls": {
        "terms": "https://www.example.com/terms.html",
        "cancellation_terms": "https://www.example.com/terms/cancellation.html",
        "checkout": "https://www.example.com/checkout.html",
        "confirmation": "https://www.example.com/confirmation.html",
        "push": "https://www.example.com/api/push",
        "validation": "https://www.example.com/api/validation",
        "shipping_option_update": "https://www.example.com/api/shipment",
        "address_update": "https://www.example.com/api/address",
        "notification": "https://www.example.com/api/pending",
        "country_change": "https://www.example.com/api/country"
    },
    "html_snippet": "<div id='klarna-checkout-container'><script>alert('Initializing Klarna Checkout');</script></div>",
    "merchant_reference1": "45aa52f387871e3a210645d4",
    "merchant_reference2": "45aa52f387871e3a210645d4",
    "started_at": "2020-01-23T13:48:29.053Z",
    "completed_at": "2020-01-23T13:48:29.053Z",
    "last_modified_at": "2020-01-23T13:48:29.053Z",
    "options": {
        "acquiring_channel": "eCommerce",
        "allow_separate_shipping_address": false,
        "color_button": "#FF9900",
        "color_button_text": "#FF9900",
        "color_checkbox": "#FF9900",
        "color_checkbox_checkmark": "#FF9900",
        "color_header": "#FF9900",
        "color_link": "#FF9900",
        "date_of_birth_mandatory": false,
        "shipping_details": "Delivered within 1-3 working days",
        "title_mandatory": false,
        "additional_checkbox": {
            "text": "Please add me to the newsletter list, read more here \link\",
            "checked": false,
            "required": false
        },
        "national_identification_number_mandatory": false,
        "additional_merchant_terms": "string",
        "phone_mandatory": false,
        "radius_border": "5",
        "allowed_customer_types": "[\"person\", \"organization\"]",
        "show_subtotal_detail": false,
        "additional_checkboxes": 
            {
                "id": "newsletter_opt_in",
                "text": "Please add me to the newsletter list, read more here \[link\",
                "checked": false,
                "required": false
            }
        ],
        "require_validate_callback_success": false,
        "vat_removed": false,
        "verify_national_identification_number": false,
        "show_vat_registration_number_field": false
    },
    "attachment": {
        "content_type": "application/vnd.klarna.internal.emd-v2+json",
        "body": "{\"hotel_reservation_details\": [{\"pnr\": \"VH67899\",\"hotel_intinerary\": [{\"hotel_name\": \"Hotel ltd.\",\"address\": {\"street_address\": \"Storgatan 3\",\"postal_code\": \"113 35\",\"city\": \"Stockholm\",\"country\": \"Sweden\"},\"start_time\": \"2019-01-31T15:00:00Z\",\"end_time\": \"2019-01-31T15:30:00Z\",\"number_of_rooms\": 2,\"ticket_delivery_method\": \"email\",\"ticket_delivery_recipient\": \"jonas.larlsson@klarna.com\",\"hotel_price\": 23050,\"class\": \"Business\",\"passenger_id\": [1]}],\"passengers\": [{\"id\": 1,\"title\": \"mr\",\"first_name\": \"Adam\",\"last_name\": \"Adamson\"}],\"insurance\": [{\"insurance_company\": \"Insurance Company X\",\"insurance_type\": \"travel\",\"insurance_price\": 0}],\"affiliate_name\": \"TradeMaxi AB\"}],\"air_reservation_details\": [{\"pnr\": \"VH67899\",\"intinerary\": [{\"departure\": \"ARN\",\"departure_city\": \"Stockholm\",\"arrival\": \"NCE\",\"arrival_city\": \"Nice\",\"carrier\": \"SK\",\"segment_price\": 34000,\"departure_date\": \"2019-01-30T15:00:00Z\",\"ticket_delivery_method\": \"email\",\"ticket_delivery_recipient\": \"jonas.larlsson@klarna.com\",\"passenger_id\": [1]}],\"passengers\": [{\"id\": 1,\"title\": \"mr\",\"first_name\": \"Adam\",\"last_name\": \"Adamson\"}],\"insurance\": [{\"insurance_company\": \"Insurance Company X\",\"insurance_type\": \"travel\",\"insurance_price\": 0}],\"affiliate_name\": \"TradeMaxi AB\"}],\"customer_account_info\": [{\"unique_account_identifier\": \"12345\",\"account_registration_date\": \"2016-01-24T15:00:00Z\",\"account_last_modified\": \"2017-01-24T15:00:00Z\"}],\"payment_history_full\": [{\"payment_option\": \"card\",\"number_paid_purchases\": 2,\"total_amount_paid_purchases\": 1234,\"date_of_last_paid_purchase\": \"2018-01-24T15:00:00Z\",\"date_of_first_paid_purchase\": \"2018-01-24T15:00:00Z\"}]}"
    },
    "external_payment_methods": [
        {
            "name": "PayhereUs",
            "redirect_url": "https://www.example.com/us/start",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "fee": 0,
            "description": "an American company operating a worldwide online payments system",
            "countries": [
                "us",
                "gb"
            ],
            "label": "continue"
        }
    ],
    "external_checkouts": [
        {
            "name": "PayhereUs",
            "redirect_url": "https://www.example.com/us/start",
            "image_url": "https://www.exampleobjects.com/logo.png",
            "fee": 0,
            "description": "an American company operating a worldwide online payments system",
            "countries": [
                "us",
                "gb"
            ],
            "label": "continue"
        }
    ],
    "shipping_countries": [
        "us",
        "gb"
    ],
    "shipping_options": [
        {
            "id": "express_priority",
            "name": "EXPRESS 1-2 Days",
            "description": "Delivery by 4:30 pm",
            "promo": "Christmas Promotion",
            "price": 0,
            "tax_amount": 0,
            "tax_rate": 0,
            "preselected": false,
            "shipping_method": "PickUpStore",
            "delivery_details": {
                "carrier": "string",
                "class": "string",
                "product": {
                    "name": "string",
                    "identifier": "string"
                },
                "pickup_location": {
                    "id": "string",
                    "name": "string",
                    "address": {
                        "organization_name": "string",
                        "reference": "string",
                        "attention": "string",
                        "given_name": "John",
                        "family_name": "Doe",
                        "email": "john@doe.com",
                        "title": "Mr",
                        "street_address": "Lombard St 10",
                        "street_address2": "Apt 214",
                        "street_name": "Lombard St",
                        "street_number": "10",
                        "house_extension": "B",
                        "postal_code": "90210",
                        "city": "Beverly Hills",
                        "region": "CA",
                        "phone": "333444555",
                        "country": "US",
                        "care_of": "C/O"
                    }
                },
                "timeslot": {
                    "id": "string",
                    "start": "string",
                    "end": "string"
                }
            },
            "tms_reference": "a1b2c3d4-e4f6-g7h8-i9j0-k1l2m3n4o5p6"
        }
    ],
    "merchant_data": "{\"marketplace_seller_info\":[{\"product_category\":\"Women's Fashion\",\"product_name\":\"Women Sweatshirt\"}]}",
    "gui": {
        "options": [
            "disable_autofocus"
        ]
    },
    "merchant_requested": {
        "additional_checkbox": false,
        "additional_checkboxes": [
            {
                "id": "string",
                "checked": false
            }
        ]
    },
    "selected_shipping_option": {
        "id": "express_priority",
        "name": "EXPRESS 1-2 Days",
        "description": "Delivery by 4:30 pm",
        "promo": "Christmas Promotion",
        "price": 0,
        "tax_amount": 0,
        "tax_rate": 0,
        "preselected": false,
        "shipping_method": "PickUpStore",
        "delivery_details": {
            "carrier": "string",
            "class": "string",
            "product": {
                "name": "string",
                "identifier": "string"
            },
            "pickup_location": {
                "id": "string",
                "name": "string",
                "address": {
                    "organization_name": "string",
                    "reference": "string",
                    "attention": "string",
                    "given_name": "John",
                    "family_name": "Doe",
                    "email": "john@doe.com",
                    "title": "Mr",
                    "street_address": "Lombard St 10",
                    "street_address2": "Apt 214",
                    "street_name": "Lombard St",
                    "street_number": "10",
                    "house_extension": "B",
                    "postal_code": "90210",
                    "city": "Beverly Hills",
                    "region": "CA",
                    "phone": "333444555",
                    "country": "US",
                    "care_of": "C/O"
                }
            },
            "timeslot": {
                "id": "string",
                "start": "string",
                "end": "string"
            }
        },
        "tms_reference": "a1b2c3d4-e4f6-g7h8-i9j0-k1l2m3n4o5p6"
    },
    "recurring": false,
    "recurring_token": "string",
    "recurring_description": "string",
    "billing_countries": [
        "us",
        "gb"
    ],
    "tags": "[\"dangerous_goods\", \"bulky\"]"
}
Response
Description:successful operation
Headers:Status Code: 200
Content-Type: application/json
See full example
{
    "order_id": "f3392f8b-6116-4073-ab96-e330819e2c07",
    "name": "Women's Fashion",
    "purchase_country": "US",
    "purchase_currency": "USD",
    "locale": "en-US",
    "status": "CHECKOUT_INCOMPLETE",
    "billing_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "family_name": "Doe",
        "email": "john@doe.com",
        "title": "Mr",
        "street_address": "Lombard St 10",
        "street_address2": "Apt 214",
        "street_name": "Lombard St",
        "street_number": "10",
        "house_extension": "B",
        "postal_code": "90210",
        "city": "Beverly Hills",
        "region": "CA",
        "phone": "333444555",
        "country": "US",
        "care_of": "C/O"
    },
    "shipping_address": {
        "organization_name": "string",
        "reference": "string",
        "attention": "string",
        "given_name": "John",
        "