Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENWORK and version Documentation
Table of Contents


About Klarna Payments

General information about Klarna Payments

Klarna offers three different payment methods within the new Klarna KP API via

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePartner-Name
PageWithExcerptWording
: Invoice and hire purchase (Pay Later & Pay over time) as well as Sofort + secured direct debit (Pay Now). Merchants pass on all the invoice data during the order to the service provider, who then takes over the complete billing and debtor management. That than takes over the complete billing and downstream debtor management. As merchant you get a payment guarantee; no matter what payment method the customer chooses. Thereby your customers get financial flexibility with Klarna, as they can choose themselves between invoice purchase and hire purchase. In the case of purchase by instalment merchants can also specify the instalment amounts and dates of repayment. Merchants can use the billing solution also for their B2B commerce.

Rate payment at the online shop motivates your customers to order high value baskets. This also increases your turnover. Klarna guarantees online consents in seconds for purchases by instalment during the order process. A PostIdent-process is not necessary. Klarna transfers the invoice amount to the merchant and bears the non-payment risk themselves. As merchant you benefit from rapidly available liquidity.

All three payment methods with restrictions of secured direct debit are available in the following countries with their respective domestic currency: Danmark (DKK), Germany (EUR), Finland (EUR), United Kingdom (GBP), Netherlands (EUR), Norway (NOK), Austria (EUR), Sweden (SEK) and USA (USD).


Page properties
Logo

Info
Excerpt

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePlatform-Kurz
PageWithExcerptWording
can handle purchase on account and financing from Klarna. Merchants benefit from a payment guarantee and short payment due dates.

As third possibility Klarna integrated the payment with Sofort transfer and secured direct debit.

TypeMixed payment methods


Further information can be found on Klarna's website (https://www.klarna.de).

Klarna Payments distinguishes between direct connection and the Klarna Hosted Payment Page (HPP).


Process flow chart direct connection


Process flow Klarna Payments direct connection

Process flow chart HPP

Process flow Klarna Payments direct connection


With direct connection a separate JavaScript widget is included for each payment method. With the HPP a complete checkout page will be displayed where all or some selected payment methods are displayed. Widgets as well as the HPP are loaded from a Klarna server.



Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePlatform-Kurz
PageWithExcerptWording
interface

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameDefinition
PageWithExcerptDefinition EN


Create Klarna session for direct connection

Before Klarna widgets can be loaded a Klarna session must be created which returns an AccessToken. This AccessToken has to be used for loading the widgets. In order to start a Klarna session via server-to-server communication, please go to the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
KlarnaPayments.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625497766974_-385166717
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_createsession_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625497766977_1643189391
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameAmount
pageAmount
typepage

Key

Format

CND

Description

Beschreibung

TaxAmount

n..10

M

Gross amount of value added tax in the smallest currency unit (e.g. EUR Cent). The amount may not be negative.

Notice: The VAT included is calculated for 19% with the formula =gross prices / 1.19 * 0.19.

Please contact the helpdesk, if you want to capture amounts < 100 (smallest currency unit).

Gesamtbetrag der MwSt. in der kleinsten Währungseinheit (z.B. EUR Cent). Der Betrag darf nicht negativ sein.

Hinweis: Die enthaltene MwSt. berechnet sich bei 19% mit der Formel =Bruttopreis / 1,19 * 0,19.

Bitte wenden Sie sich an den Helpdesk, wenn Sie Beträge < 100 (kleinste Währungseinheit) buchen möchten.

Table Excerpt Include
statictrue
nameCurrency
pageCurrency
typepage

Key

Format

CND

Description

Beschreibung

bdCountryCode

a2

M

Country code for the invoicing address, 2 characters according to ISO 3166-1. Allowed are Germany <DE>, Austria <AT>, Netherlands <NL>, Denmark <DK>, Sweden <SE>, Norway <NO>, Finland <FI>, Great Britain <GB>, USA <US>, Switzerland (CH), Australia (AU), Belgium <BE>, Spain (ES), Italy <IT> and Poland <PL>

Ländercode der Rechnungsadresse zweistellig gemäß ISO-3166-1. Erlaubt sind Deutschland <DE>, Österreich <AT>, Niederlande <NL>, Dänemark <DK>, Schweden <SE>, Norwegen <NO>, Finnland <FI>, Großbritannien <GB>, USA <US>, Schweiz <CH>, Australien <AU>, Belgien <BE>, Spanien (ES), Italien <IT> und Polen <PL>
bdFirstNameans..30CFirst name. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Vorname. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdLastNameans..30CLast name. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Nachname. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdEmailans..80CEmail address. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.E-Mail-Adresse. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdCompanyans..200OCompany nameFirmenname
bdRegionans..40ORegionGebiet
bdTitleans..20OTitle of customer or contact person, e.g. Dr. or Prof.Titel des Kunden oder der Kontaktperson, z.B. Dr. oder Prof.
bdStreeta..32CStreet and street number. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Straße und Hausnummer. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdZipn..5CPostal code. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Postleitzahl. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdCitya..32CTown/city. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Ort. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdAddressAdditionans..60OAdditional/supplementary address lineZusätzliche/ergänzende Adresszeile
sdCountryCodea2OCountry code for the delivery address, 2 characters according to ISO 3166-1. Allowed are Germany <DE>, Austria <AT>, Netherlands <NL>, Denmark <DK>, Sweden <SE>, Norway <NO>, Finland <FI>, Great Britain <GB>, USA <US>, Switzerland (CH), Australia (AU), Belgium <BE>, Spain (ES), Italy <IT> and Poland <PL>Ländercode der Lieferadresse zweistellig gemäß ISO-3166-1. Erlaubt sind Deutschland <DE>, Österreich <AT>, Niederlande <NL>, Dänemark <DK>, Schweden <SE>, Norwegen <NO>, Finnland <FI>, Großbritannien <GB>, USA <US>, Schweiz <CH>, Australien <AU>, Belgien <BE>, Spanien (ES), Italien <IT> und Polen <PL>
sdFirstNameans..30OFirst name. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Vorname. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdLastNameans..30OLast name. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Nachname. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdEmailans..80OEmail address. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.E-Mail-Adresse. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdCompanyans..200OCompany nameFirmenname
sdRegionans..40ORegionGebiet
sdTitleans..20OTitle of customer or contact person, e.g. Dr. or Prof.Titel des Kunden oder der Kontaktperson, z.B. Dr. oder Prof.
sdStreeta..32OStreet and street number. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Straße und Hausnummer. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdZipn..5OPostal code. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Postleitzahl. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdCitya..32OTown/city. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Ort. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdAddressAdditionans..60OAdditional/supplementary address lineZusätzliche/ergänzende Adresszeile
Languagea2MLanguage for displaying the widgets: DE - German, DK - Danish, FI - Finnish, SE - Swedish, NO - Norwegian, NL - Dutsch, FR - French, IT - Italian, EN - English, ES - Spanish, CA - Catalan, PL - PolishSprache, in der die Widgets angezeigt werden sollen: DE - deutsch, DK - dänisch, FI - finnisch, SE - schwedisch, NO - norwegisch, NL - niederländisch, FR - französisch, IT - italienisch, EN - englisch, ES - Spanisch, CA - katalanisch, PL - polnisch

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Key

Format

CND

Description

Beschreibung
IPAddr

ans..15

O

IP address of the client in the format IPv4 or IPv6

IP-Adresse des Clients im Format IPv4 oder IPv6
Account

ans..12

M

With 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePartner-Name
PageWithExcerptWording
it is possible to store details for several Klarna merchant accounts (username and password). Account allows you to control which account data to use.

The value of this parameter must be agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording
.

Bei 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePartner-Name
PageWithExcerptDE:Wording
können mehrere Klarna Händler-Account-Daten (Benutzername und Kennwort) hinterlegt werden. Über Account kann gesteuert werden, welche Account-Daten man verwendet.

Der Wert für diesen Parameter muss mit dem 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgestimmt werden.

ArticleList

ans..2048

M

Complete article list of the order. This parameter must be created in JSON format.


The individual parameters in JSON format are following:

name = Product name (mandatory)

quantity = item quantity. The value may not be negative. (mandatory)

unit_price = unit price inclusive taxes but without rebates. (mandatory)

total_amount = total amount of iarticles inclusive taxes and rebates. (mandatory)

image_url = URL for an image that can be embedded later in agreement with Klarna. (max. 1024 characters)

merchant_data = "pass-through parameter" (max. 255 characters). Merchant must agree with Klarna what will be transmitted here.

product_identifiers.brand = product brand

product_identifiers.category_path = path of product category. As separator '>' has to be used.

product_identifiers.global_trade_item_number = article number (e.g. EAN, ISBN or UPC).

product_identifiers.manufacturer_part_number = manufacturer’s number

product_url = URL to product image

quantity_unit = unit of quantity (e.g. kg)

reference = article number (e.g. SKU)

tax_rate = tax rate as percentage (e.g. 25%). The percent sign must be replaced with two zeros, thus for example 2500. The value may not be negative.

total_discount_amount = total amount of rebate. The value may not be negative.

total_tax_amount = total amount of taxes. The value may be negative, if type is 'discount'.

type = type of item position. Possible entries are <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleExample:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Afterwards the article list created in JSON format must be Base64 encoded.

Komplette Artikelliste der Bestellung. Dieser Parameter muss im JSON-Format erstellt werden.


Die einzelnen Parameter im JSON-Format sind folgende:

name = Produktname (Pflicht)

quantity = Artikelmenge. Der Wert darf nicht negativ sein. (Pflicht)

unit_price = Einzelpreis inkl. Steuern aber exkl. Rabatte. (Pflicht)

total_amount = Gesamtbetrag der Artikel inkl. Steuern und Rabatte. (Pflicht)

image_url = URL zu einem Bild, welches später in Absprache mit Klarna eingebettet werden kann. (max. 1024 Zeichen)

merchant_data = "Durchreich-Parameter" (max. 255 Zeichen). Was hier übermittelt wird, muss mit Klarna abgestimmt werden.

product_identifiers.brand = Produktmarke

product_identifiers.category_path = Pfad der Produktkategorie. Als Trennzeichen muss '>' verwendet werden.

product_identifiers.global_trade_item_number = Artikelnummer (z.B. EAN, ISBN oder UPC).

product_identifiers.manufacturer_part_number = Herstellernummer

product_url = URL zum Produktbild

quantity_unit = Mengeneinheit (z.B. kg)

reference = Artikelnummer (z.B. SKU)

tax_rate = Steuersatz in Prozent (z.B. 25%). Das Prozentzeichen muss durch zwei Nullen ersetzt werden, also zum Beispiel 2500. Der Wert darf nicht negativ sein.

total_discount_amount = Gesamtbetrag des Rabattes. Der Wert darf nicht negativ sein.

total_tax_amount = Gesamtbetrag der Steuern. Der Wert darf negativ sein, wenn der type 'discount' ist.

type = Typ der Artikelposition. Mögliche Werte sind <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Anschließend muss die im JSON-Format erstellte Artikelliste Base64 encodiert werden.

EnhancedData

ans..2048

O

Additional customer and order information for Klarna risk management. Merchant must agree with Klarna which data will be transmitted here. This parameter must be created in JSON format.

Code Block
languagejson
titleExample:
linenumberstrue
{
	"marketplace_seller_info": [
		{
			"product_category": "Women's Fashion",
			"product_name": "Women Sweatshirt"
		}
	]
}

Afterwards the additional information created in JSON format must be Base64 encoded.

Zusätzliche Kunden- und Bestellinformationen für das Klarna Risikomanagement. Welche Daten hier übermittelt werden, muss mit Klarna vereinbart werden. Dieser Parameter muss im JSON-Format erstellt werden.

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"marketplace_seller_info": [
		{
			"product_category": "Women's Fashion",
			"product_name": "Women Sweatshirt"
		}
	]
}

Anschließend müssen die im JSON-Format erstellten Zusatzinformationen Base64 encodiert werden.

Layout

ans..2048

O

Layout parameters for Klarna widgets. This parameter must be created in JSON format.

Code Block
languagejson
titleExample:
linenumberstrue
{
	"options": {
		"color_border": "#FF9900",
		"color_border_selected": "#FF9900",
		"color_button": "#FF9900",
		"color_button_text": "#FF9900",
		"color_checkbox": "#FF9900",
		"color_checkbox_checkmark": "#FF9900",
		"color_details": "#FF9900",
		"color_header": "#FF9900",
		"color_link": "#FF9900",
		"color_text": "#FF9900",
		"color_text_secondary": "#FF9900",
		"radius_border": "5px"
	}
}

Afterwards the layout parameters created in JSON format must be Base64 encoded.

Layout-Parameter für die Klarna-Widgets. Dieser Parameter muss im JSON-Format erstellt werden.

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"options": {
		"color_border": "#FF9900",
		"color_border_selected": "#FF9900",
		"color_button": "#FF9900",
		"color_button_text": "#FF9900",
		"color_checkbox": "#FF9900",
		"color_checkbox_checkmark": "#FF9900",
		"color_details": "#FF9900",
		"color_header": "#FF9900",
		"color_link": "#FF9900",
		"color_text": "#FF9900",
		"color_text_secondary": "#FF9900",
		"radius_border": "5px"
	}
}

Anschließend müssen die im JSON-Format erstellten Layout-Parameter Base64 encodiert werden.

URLConfirm

ans..256

M

Final URL for order confirmation to which Klarna forwards the customer after the order is successfully created within the Klarna system

Finale Bestellbestätigungs-URL, auf die Klarna den Kunden leitet, nachdem die Bestellung im Klarna-System erfolgreich angelegt wurde.
URLNotify

ans..256

O

Complete URL which 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePlatform-Kurz
PageWithExcerptWording
calls up in order to notify the shop about the payment result, if a PENDING transaction was finalized. The URL may be called up only via port 443 It may not contain parameters: Use the UserData parameter instead.

Processing of PENDING transactions must be activated at 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePartner-Name
PageWithExcerptWording
as well as Klarna. URLNotify can also be stored with
Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePartner-Name
PageWithExcerptWording
.

Vollständige URL, die das 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePlatform-Kurz
PageWithExcerptDE:Wording
aufruft, um den Shop zu benachrichtigen, wenn eine PENDING-Transaktion finalisiert wurde. Die URL darf nur über Port 443 aufgerufen werden. Sie darf keine Parameter enthalten: Nutzen Sie stattdessen den Parameter UserData.

Die Verarbeitung von PENDING-Transaktionen muss sowohl bei

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePartner-Name
PageWithExcerptDE:Wording
also auch bei Klarna freigeschaltet sein. Die URLNotify kann auch bei 
Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePartner-Name
PageWithExcerptDE:Wording
hinterlegt werden.

PayType

as..32

M

Customer selected Klarna payment method. Possible entries are Pay immediately (pay_now, direct_debit or direct_bank_transfer), Pay later (pay_later) or Pay in installments (pay_over_time).

Vom Kunden ausgewählte Klarna Zahlungsart. Mögliche Werte sind Sofort bezahlen (pay_now, direct_debit oder direct_bank_transfer), Später bezahlen (pay_later) oder In Raten bezahlen (pay_over_time).
Key

Format

CND

Personal details of customer

Personendaten des Kunden
DateOfBirth

dttm

O

Date of birth in the format YYYY-MM-DD

Geburtsdatum im Format JJJJ-MM-TT
Gender

a..15

O

Gender <female> for female, <male> for male

Geschlecht <female> für weiblich, <male> für männlich
Title

a..12

O

Salutation

Anrede
SocialSecurityNumber

a..5

O

Private individuals: The last four or five digits of the social security number. Not in DE, AT and NL. Obligatory field in SE, FI, DK with 4-digit value (NNNN). Obligatory field in NO with 5-digit value (NNNNN).

Bei Privatpersonen: Die letzten vier bis fünf Stellen der Sozialversicherungsnummer. Nicht in DE, AT und NL. Pflichtfeld in SE, FI, DK mit 4-stelligem Wert (NNNN). Pflichtfeld in NO mit 5-stelligem Wert (NNNNN).
PersonID

ans..15

O

National identity number. Is necessary for example for a visa to entry the USA. For that purpose the serial number on the upper right side of the iodentity card may be used.

Nationale Identitätsnummer. Wird zum Beispiel für das Visum für die Einreise in die USA benötigt. Hierfür kann die Seriennummer rechts oben auf dem Personalausweis verwendet werden.
LegalForm

ans..50

O

Type of company. Following values are possible:

  • LIMITED_COMPANY
  • PUBLIC_LIMITED_COMPANY
  • ENTREPRENEURIAL_COMPANY
  • LIMITED_PARTNERSHIP_LIMITED_COMPANY
  • LIMITED_PARTNERSHIP
  • GENERAL_PARTNERSHIP
  • REGISTERED_SOLE_TRADER
  • SOLE_TRADER
  • CIVIL_LAW_PARTNERSHIP
  • PUBLIC_INSTITUTION
  • OTHER

Firmentyp. Folgende Werte sind möglich:

  • LIMITED_COMPANY
  • PUBLIC_LIMITED_COMPANY
  • ENTREPRENEURIAL_COMPANY
  • LIMITED_PARTNERSHIP_LIMITED_COMPANY
  • LIMITED_PARTNERSHIP
  • GENERAL_PARTNERSHIP
  • REGISTERED_SOLE_TRADER
  • SOLE_TRADER
  • CIVIL_LAW_PARTNERSHIP
  • PUBLIC_INSTITUTION
  • OTHER
CompanyID

ans..15

O

For companies: Register of Companies number

Bei Unternehmen: Handelsregisternummer
CompanyOrPerson

a2

O

Indication whether it is e company or a person.

<C> for companies, <P> for persons

Please note that Klarna does not allow B2B transactions by default. Please contact Klarna if you also want to use the payment method for B2B transactions.

Angabe, ob es sich um eine Firma oder eine Person handelt.

<C> für Firmen, <P> für Personen

Bitte beachten Sie, dass seitens Klarna standardmäßig keine B2B-Transaktionen möglich sind. Bitte wenden Sie sich an Klarna, falls Sie die Zahlart auch für B2B-Transaktionen verwenden möchten.

VatID

ans..15

O

VAT identification number

Umsatzsteuer-Identifikationsnummer

Parameters for creating a session with Klarna Payments


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625510251598_1000352043
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_createsession_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625510251601_-1714411364
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Key

Format

CND

Description

Beschreibung

Status

a..50

M

AUTHORIZE_REQUEST (URLSuccess) and FAILED (URLFailure)

AUTHORIZE_REQUEST (URLSuccess) und FAILED (URLFailure)

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Beschreibung

Key

Format

CND

Description

Key

Format

CND

Description

Beschreibung
Coden1..8M

Error code according to 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePlatform-Kurz
PageWithExcerptWording
Response Codes (A4 Error codes). Code "0": Please make now the authorisation via Klarna widget within the frontend.

Fehlercode gemäß 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePlatform-Kurz
PageWithExcerptDE:Wording
Antwort-Codes (A4 Fehlercodes). Code "0": Führen Sie nun die Autorisierung über das Klarna Widget im Frontend durch.

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

AccessToken

ans..2048

O

Client token from Klarna. In order to be able to subsequently show the Klarna widgets, the Klarna JavaScript-API must be initialized with this token.

Client-Token von Klarna. Um anschließend die entsprechenden Klarna-Widgets anzeigen zu können, muss die Klarna JavaScript-API mit diesem Token initialisiert werden.

PayType

enum

O

Customer selected Klarna payment method. Possible entries are Pay immediately (pay_now, direct_debit and direct_bank_transfer), Pay later (pay_later) and Pay in installments (pay_over_time). The returned value determines which widgets are allowed to be loaded.

Vom Kunden ausgewählte Klarna Zahlungsart. Mögliche Werte sind Sofort bezahlen (pay_now, direct_debit und direct_bank_transfer), Später bezahlen (pay_later) und In Raten bezahlen (pay_over_time). Der zurückgegebene Wert entscheidet darüber, welche Widgets geladen werden dürfen.

Response parameters for creating a session with Klarna Payments



Show Klarna widgets

Klarna uses widgets in order to show customers the possible payment methods. The available payment methods for selecting depend on the previously selected category (see Create Klarna Session, PayType). The widget integration is done with the AccessToken (see Create Klarna Session, AccessToken) and the Klarna JavaScript SDK. How to integrate and initialise the Klarna JavaScript SDK and how to load the widgets is described on Klarna webpage:

After successful authorisation you wil get an authorisation token (TokenExt) which has to be used for creating an order.


Create Klarna session for the HPP

In order to process a payment via Klarna HPP, please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
KlarnaPaymentsHPP.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625510718555_-1629885768
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_createsession_hpp_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625510718557_-1313114434
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameAmount
pageAmount
typepage

Key

Format

CND

Description

Beschreibung

TaxAmount

n..10

M

Gross amount of value added tax in the smallest currency unit (e.g. EUR Cent). The amount may not be negative.

Notice: The VAT included is calculated for 19% with the formula =gross prices / 1.19 * 0.19.

Please contact the helpdesk, if you want to capture amounts < 100 (smallest currency unit).

Gesamtbetrag der MwSt. in der kleinsten Währungseinheit (z.B. EUR Cent). Der Betrag darf nicht negativ sein.

Hinweis: Die enthaltene MwSt. berechnet sich bei 19% mit der Formel =Bruttopreis / 1,19 * 0,19.

Bitte wenden Sie sich an den Helpdesk, wenn Sie Beträge < 100 (kleinste Währungseinheit) buchen möchten.

Table Excerpt Include
statictrue
nameCurrency
pageCurrency
typepage

Key

Format

CND

Description

Beschreibung
RTFa1O

For repeat payments (subscriptions): I = Initial payment of a new subscription, R = Routine payment (Recurring).

Due to the call of the HPP is always an initial payment of a subscription the value I must be transferred.

Bei wiederkehrenden Zahlungen (Abos): I = Initialzahlung eines neuen Abos, R = Wiederkehrende Zahlung (Recurring).

Da es sich beim Aufruf der HPP immer um die Initialzahlung eines Abos handelt, muss der Wert I übergeben werden.

bdCountryCode

a2

M

Country code for the invoicing address, 2 characters according to ISO 3166-1. Allowed are Germany <DE>, Austria <AT>, Netherlands <NL>, Denmark <DK>, Sweden <SE>, Norway <NO>, Finland <FI>, Great Britain <GB>, USA <US>, Switzerland (CH), Australia (AU), Belgium <BE>, Spain (ES), Italy <IT> and Poland <PL>

Ländercode der Rechnungsadresse zweistellig gemäß ISO-3166-1. Erlaubt sind Deutschland <DE>, Österreich <AT>, Niederlande <NL>, Dänemark <DK>, Schweden <SE>, Norwegen <NO>, Finnland <FI>, Großbritannien <GB>, USA <US>, Schweiz <CH>, Australien <AU>, Belgien <BE>, Spanien (ES), Italien <IT> und Polen <PL>
bdFirstNameans..30MFirst name. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Vorname. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdLastNameans..30MLast name. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Nachname. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdEmailans..80MEmail address. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.E-Mail-Adresse. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdCompanyans..200OCompany nameFirmenname
bdRegionans..40ORegionRegion
bdTitleans..20OTitle of customer or contact person, e.g. Dr. or Prof.Titel des Kunden oder der Kontaktperson, z.B. Dr. oder Prof.
bdStreeta..32MStreet and street number. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Straße und Hausnummer. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdZipn..5MPostal code. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Postleitzahl. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdCitya..32MTown/city. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Ort. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdAddressAdditionans..60OAdditional/supplementary address lineZusätzliche/ergänzende Adresszeile
sdCountryCodea2OCountry code for the delivery address, 2 characters according to ISO 3166-1. Allowed are Germany <DE>, Austria <AT>, Netherlands <NL>, Denmark <DK>, Sweden <SE>, Norway <NO>, Finland <FI>, Great Britain <GB>, USA <US>, Switzerland (CH), Australia (AU), Belgium <BE>, Spain (ES), Italy <IT> and Poland <PL>Ländercode der Lieferadresse zweistellig gemäß ISO-3166-1. Erlaubt sind Deutschland <DE>, Österreich <AT>, Niederlande <NL>, Dänemark <DK>, Schweden <SE>, Norwegen <NO>, Finnland <FI>, Großbritannien <GB>, USA <US>, Schweiz <CH>, Australien <AU>, Belgien <BE>, Spanien (ES), Italien <IT> und Polen <PL>
sdFirstNameans..30C

First name. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.

Vorname. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdLastNameans..30C

Last name. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.

Nachname. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdEmailans..80C

E-mail address. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.

E-Mail-Adresse. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdCompanyans..200OCompany nameFirmenname
sdRegionans..40ORegionGebiet
sdTitleans..20OTitle of customer or contact person, e.g. Dr. or Prof.Titel des Kunden oder der Kontaktperson, z.B. Dr. oder Prof.
sdStreeta..32C

Street name and street number. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.

Straße und Hausnummer. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdZipn..5C

Postcode. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.

Postleitzahl. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdCitya..32C

City. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.

Ort. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdAddressAdditionans..60OAdditional/supplementary address lineZusätzliche/ergänzende Adresszeile
Languagea2MLanguage for displaying the widgets: DE - German, DK - Danish, FI - Finnish, SE - Swedish, NO - Norwegian, NL - Dutsch, FR - French, IT - Italian, EN - English, ES - Spanish, CA - Catalan, PL - PolishSprache, in der die Widgets angezeigt werden sollen: DE - deutsch, DK - dänisch, FI - finnisch, SE - schwedisch, NO - norwegisch, NL - niederländisch, FR - französisch, IT - italienisch, EN - englisch, ES - Spanisch, CA - katalanisch, PL - polnisch

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Key

Format

CND

Description

Beschreibung
IPAddr

ans..15

O

IP address of the client in the format IPv4 or IPv6

IP-Adresse des Clients im Format IPv4 oder IPv6
Account

ans..12

M

With 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePartner-Name
PageWithExcerptWording
it is possible to store details for several Klarna merchant accounts (username and password). Account allows you to control which account data to use.

The value of this parameter must be agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording
.

Bei 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePartner-Name
PageWithExcerptDE:Wording
können mehrere Klarna Händler-Account-Daten (Benutzername und Kennwort) hinterlegt werden. Über Account kann gesteuert werden, welche Account-Daten man verwendet.

Der Wert für diesen Parameter muss mit dem 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgestimmt werden.

ArticleList

ans..2048

M

Complete article list of the order. This parameter must be created in JSON format.


The individual parameters in JSON format are following:

name = Product name (mandatory)

quantity = item quantity. The value may not be negative. (mandatory)

unit_price = unit price inclusive taxes but without rebates. (mandatory)

total_amount = total amount of iarticles inclusive taxes and rebates. (mandatory)

image_url = URL for an image that can be embedded later in agreement with Klarna. (max. 1024 characters)

merchant_data = "pass-through parameter" (max. 255 characters). Merchant must agree with Klarna what will be transmitted here.

product_identifiers.brand = product brand

product_identifiers.category_path = path of product category. As separator '>' has to be used.

product_identifiers.global_trade_item_number = article number (e.g. EAN, ISBN or UPC).

product_identifiers.manufacturer_part_number = manufacturer’s number

product_url = URL to product image

quantity_unit = unit of quantity (e.g. kg)

reference = article number (e.g. SKU)

tax_rate = tax rate as percentage (e.g. 25%). The percent sign must be replaced with two zeros, thus for example 2500. The value may not be negative.

total_discount_amount = total amount of rebate. The value may not be negative.

total_tax_amount = total amount of taxes. The value may be negative, if type is 'discount'.

type = type of item position. Possible entries are <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleExample:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Afterwards the article list created in JSON format must be Base64 encoded.

Komplette Artikelliste der Bestellung. Dieser Parameter muss im JSON-Format erstellt werden.


Die einzelnen Parameter im JSON-Format sind folgende:

name = Produktname (Pflicht)

quantity = Artikelmenge. Der Wert darf nicht negativ sein. (Pflicht)

unit_price = Einzelpreis inkl. Steuern aber exkl. Rabatte. (Pflicht)

total_amount = Gesamtbetrag der Artikel inkl. Steuern und Rabatte. (Pflicht)

image_url = URL zu einem Bild, welches später in Absprache mit Klarna eingebettet werden kann. (max. 1024 Zeichen)

merchant_data = "Durchreich-Parameter" (max. 255 Zeichen). Was hier übermittelt wird, muss mit Klarna abgestimmt werden.

product_identifiers.brand = Produktmarke

product_identifiers.category_path = Pfad der Produktkategorie. Als Trennzeichen muss '>' verwendet werden.

product_identifiers.global_trade_item_number = Artikelnummer (z.B. EAN, ISBN oder UPC).

product_identifiers.manufacturer_part_number = Herstellernummer

product_url = URL zum Produktbild

quantity_unit = Mengeneinheit (z.B. kg)

reference = Artikelnummer (z.B. SKU)

tax_rate = Steuersatz in Prozent (z.B. 25%). Das Prozentzeichen muss durch zwei Nullen ersetzt werden, also zum Beispiel 2500. Der Wert darf nicht negativ sein.

total_discount_amount = Gesamtbetrag des Rabattes. Der Wert darf nicht negativ sein.

total_tax_amount = Gesamtbetrag der Steuern. Der Wert darf negativ sein, wenn der type 'discount' ist.

type = Typ der Artikelposition. Mögliche Werte sind <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Anschließend muss die im JSON-Format erstellte Artikelliste Base64 encodiert werden.

EnhancedData

ans..2048

O

Additional customer and order information for Klarna risk management. Merchant must agree with Klarna which data will be transmitted here. This parameter must be created in JSON format.

Code Block
languagejson
titleExample:
linenumberstrue
{
	"marketplace_seller_info": [
		{
			"product_category": "Women's Fashion",
			"product_name": "Women Sweatshirt"
		}
	]
}

Afterwards the additional information created in JSON format must be Base64 encoded.

Zusätzliche Kunden- und Bestellinformationen für das Klarna Risikomanagement. Welche Daten hier übermittelt werden, muss mit Klarna vereinbart werden. Dieser Parameter muss im JSON-Format erstellt werden.

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"marketplace_seller_info": [
		{
			"product_category": "Women's Fashion",
			"product_name": "Women Sweatshirt"
		}
	]
}

Anschließend müssen die im JSON-Format erstellten Zusatzinformationen Base64 encodiert werden.

Layout

ans..2048

O

Layout parameters for Klarna widgets. This parameter must be created in JSON format.

Code Block
languagejson
titleExample:
linenumberstrue
{
	"options": {
		"color_border": "#FF9900",
		"color_border_selected": "#FF9900",
		"color_button": "#FF9900",
		"color_button_text": "#FF9900",
		"color_checkbox": "#FF9900",
		"color_checkbox_checkmark": "#FF9900",
		"color_details": "#FF9900",
		"color_header": "#FF9900",
		"color_link": "#FF9900",
		"color_text": "#FF9900",
		"color_text_secondary": "#FF9900",
		"radius_border": "5px"
	}
}

Afterwards the layout parameters created in JSON format must be Base64 encoded.

Layout-Parameter für die Klarna-Widgets. Dieser Parameter muss im JSON-Format erstellt werden.

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"options": {
		"color_border": "#FF9900",
		"color_border_selected": "#FF9900",
		"color_button": "#FF9900",
		"color_button_text": "#FF9900",
		"color_checkbox": "#FF9900",
		"color_checkbox_checkmark": "#FF9900",
		"color_details": "#FF9900",
		"color_header": "#FF9900",
		"color_link": "#FF9900",
		"color_text": "#FF9900",
		"color_text_secondary": "#FF9900",
		"radius_border": "5px"
	}
}

Anschließend müssen die im JSON-Format erstellten Layout-Parameter Base64 encodiert werden.

Order

ans..6

O

Activates the automatic order creation. If this parameter is used an explicit order creation is not necessary. If a BillingAgreementID for recurring payments should be created, also the parameter RTF=I must be submitted. Only possible value: AUTO

If you would like to use the automatic order processing direct through 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePlatform-Kurz
PageWithExcerptWording
(request parameter does not have to be sent), please contact the 
Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePartner-Name
PageWithExcerptWording
Merchant Service directly (
Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameSales-Name
PageWithExcerptWording
) and our team will store the required setting directly at your account.|

Aktiviert die automatische Auftragsanlage. Wird dieser Parameter benutzt, muß keine explizite Auftragsanlage mehr erfolgen. Wenn auch eine BillingAgreementID für wiederkehrende Zahlungen erzeugt werden soll, muß auch der Parameter RTF=I mitgesendet werden. Einziger möglicher Wert: AUTO.

Möchten Sie das automatische Order processing direkt durch das 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePlatform-Kurz
PageWithExcerptDE:Wording
nutzen (Request-Parameter muss nicht gesendet werden), wenden Sie sich bitte direkt an den 
Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePartner-Name
PageWithExcerptDE:Wording
Merchant Service (
Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameSales-Name
PageWithExcerptDE:Wording
) und unser Team wird für Sie die benötigte Einstellung direkt am Account hinterlegen.

Table Excerpt Include
statictrue
nameURLSuccess
pageURLSuccess
typepage

Table Excerpt Include
statictrue
nameURLFailure
pageURLFailure
typepage

Table Excerpt Include
statictrue
nameResponse
pageResponse
typepage

Key

Format

CND

Description

Beschreibung
URLNotify

ans..256

O

Complete URL which 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePlatform-Kurz
PageWithExcerptWording
calls up in order to notify the shop about the payment result, if a PENDING transaction was finalized. The URL may be called up only via port 443 It may not contain parameters: Use the UserData parameter instead.

Processing of PENDING transactions must be activated at 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePartner-Name
PageWithExcerptWording
as well as Klarna. URLNotify can also be stored with
Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePartner-Name
PageWithExcerptWording
.

Vollständige URL, die das 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePlatform-Kurz
PageWithExcerptDE:Wording
aufruft, um den Shop zu benachrichtigen, wenn eine PENDING-Transaktion finalisiert wurde. Die URL darf nur über Port 443 aufgerufen werden. Sie darf keine Parameter enthalten: Nutzen Sie stattdessen den Parameter UserData.

Die Verarbeitung von PENDING-Transaktionen muss sowohl bei

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePartner-Name
PageWithExcerptDE:Wording
also auch bei Klarna freigeschaltet sein. Die URLNotify kann auch bei 
Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePartner-Name
PageWithExcerptDE:Wording
hinterlegt werden.

Key

Format

CND

Personal details of customer

Personendaten des Kunden
DateOfBirth

dttm

O

Date of birth in the format YYYY-MM-DD

Geburtsdatum im Format JJJJ-MM-TT
Gender

a..15

O

Gender <female> for female, <male> for male

Geschlecht <female> für weiblich, <male> für männlich
Title

a..12

O

Salutation

Anrede
SocialSecurityNumber

a..5

O

Private individuals: The last four or five digits of the social security number. Not in DE, AT and NL. Obligatory field in SE, FI, DK with 4-digit value (NNNN). Obligatory field in NO with 5-digit value (NNNNN).

Bei Privatpersonen: Die letzten vier bis fünf Stellen der Sozialversicherungsnummer. Nicht in DE, AT und NL. Pflichtfeld in SE, FI, DK mit 4-stelligem Wert (NNNN). Pflichtfeld in NO mit 5-stelligem Wert (NNNNN).
PersonID

ans..15

O

National identity number. Is necessary for example for a visa to entry the USA. For that purpose the serial number on the upper right side of the iodentity card may be used.

Nationale Identitätsnummer. Wird zum Beispiel für das Visum für die Einreise in die USA benötigt. Hierfür kann die Seriennummer rechts oben auf dem Personalausweis verwendet werden.
LegalForm

ans..50

O

Type of company. Following values are possible:

  • LIMITED_COMPANY
  • PUBLIC_LIMITED_COMPANY
  • ENTREPRENEURIAL_COMPANY
  • LIMITED_PARTNERSHIP_LIMITED_COMPANY
  • LIMITED_PARTNERSHIP
  • GENERAL_PARTNERSHIP
  • REGISTERED_SOLE_TRADER
  • SOLE_TRADER
  • CIVIL_LAW_PARTNERSHIP
  • PUBLIC_INSTITUTION
  • OTHER

Firmentyp. Folgende Werte sind möglich:

  • LIMITED_COMPANY
  • PUBLIC_LIMITED_COMPANY
  • ENTREPRENEURIAL_COMPANY
  • LIMITED_PARTNERSHIP_LIMITED_COMPANY
  • LIMITED_PARTNERSHIP
  • GENERAL_PARTNERSHIP
  • REGISTERED_SOLE_TRADER
  • SOLE_TRADER
  • CIVIL_LAW_PARTNERSHIP
  • PUBLIC_INSTITUTION
  • OTHER
CompanyID

ans..15

O

For companies: Register of Companies number

Bei Unternehmen: Handelsregisternummer
CompanyOrPerson

a2

O

Indication whether it is e company or a person.

<C> for companies, <P> for persons

Please note that Klarna does not allow B2B transactions by default. Please contact Klarna if you also want to use the payment method for B2B transactions.

Angabe, ob es sich um eine Firma oder eine Person handelt.

<C> für Firmen, <P> für Personen

Bitte beachten Sie, dass seitens Klarna standardmäßig keine B2B-Transaktionen möglich sind. Bitte wenden Sie sich an Klarna, falls Sie die Zahlart auch für B2B-Transaktionen verwenden möchten.

VatID

ans..15

O

VAT identification number

Umsatzsteuer-Identifikationsnummer

Parameters for calling the Klarna HPP

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_IntroURL
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625511689687_1208691868
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_createsession_hpp_response
Beschreibung

Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625511689688_-2129492277
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Key

Format

CND

Description

Beschreibung
Coden1..8M

Error code according to 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePlatform-Kurz
PageWithExcerptWording
Response Codes (A4 Error codes). Code "0": Please make now the authorisation via Klarna widget within the frontend.

Fehlercode gemäß 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePlatform-Kurz
PageWithExcerptDE:Wording
Antwort-Codes (A4 Fehlercodes). Code "0": Führen Sie nun die Autorisierung über das Klarna Widget im Frontend durch.

BillingAgreementIDans..50OToken-ID (Consumer Token) from Klarna which must be additionally transferred for recurring payments. The value is returned only if request was made with RTF=I.Token-ID (Consumer Token) von Klarna, welche bei wiederkehrenden Zahlungen (Recurring) mitgesendet werden muss. Der Wert wird nur zurückgegeben, wenn der Aufruf mit RTF=I erfolgt ist.

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

TokenExt

ans..36

M

Authorisation token which is needed for creating an order

Autorisierungs-Token, der für die Auftragsanlage benötigt wird

Result parameters for URLNotify, URLSuccess and URLFailure


Create order with Klarna

In order to create the order within Klarna system via a server-to-server connection, please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
KlarnaPayments.aspx

If this is an initial order if a recurring order (RTF=I), then only the billing address can be submitted, not the delivery adress.

If the address data differs from the address data transferred from the JavaScript widget during authorization, the order will be rejected.

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625513410990_-1495087191
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_createorder_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625513410991_-1831369137
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameAmount
pageAmount
typepage

Key

Format

CND

Description

Beschreibung
TaxAmountn..10M

Gross amount of value added tax in the smallest currency unit (e.g. EUR Cent). The amount may not be negative.

Notice: The VAT included is calculated for 19% with the formula =gross prices / 1.19 * 0.19.

Please contact the helpdesk, if you want to capture amounts < 100 (smallest currency unit).

Gesamtbetrag der MwSt. in der kleinsten Währungseinheit (z.B. EUR Cent). Der Betrag darf nicht negativ sein.

Hinweis: Die enthaltene MwSt. berechnet sich bei 19% mit der Formel =Bruttopreis / 1,19 * 0,19.

Bitte wenden Sie sich an den Helpdesk, wenn Sie Beträge < 100 (kleinste Währungseinheit) buchen möchten.

Table Excerpt Include
statictrue
nameCurrency
pageCurrency
typepage

Key

Format

CND

Description

Beschreibung
TokenExtans..36MAuthorisation token which is returned from Klarna within JavaScript Authorize-Call. Please note, the authorization token from the previous step is valid for 60 minutes. If you attempt to place an order with this after that time has passed, it will be rejected by Klarna.Autorisierungs-Token, welchen Klarna im JavaScript Authorize-Call zurückgibt. Bitte beachten Sie, der erhaltene Authorization-Token eine Gültigkeit von 60 Minuten hat. Wird dieser > 60min. gesendet, wird die Anfrage seitens Klarna abgelehnt.
EventTokenenumM

Defines which Klarna API-Call request will be initiated.

For creating a Klarna order the value CNO must be transferred.

Definiert welcher Klarna API-Call Request angestoßen wird.

Beim Anlegen der Klarna Bestellung muss der Wert CNO übergeben werden.

RTFa1O

For repeat payments (subscriptions): I = Initial payment of a new subscription, R = Routine payment (Recurring).

If this is an initial payment of a subscription the value I must be transferred.

Bei wiederkehrenden Zahlungen (Abos): I = Initialzahlung eines neuen Abos, R = Wiederkehrende Zahlung (Recurring).

Wenn es sich um die Initialzahlung eines Abos handelt, muss der Wert I übergeben werden.

RequestReasona..20O

Intended usage of „Consumer Token“.

Possible value is SUBSCRIPTION.

Beabsichtigte Nutzung des „Consumer Tokens“.

Möglicher Wert ist SUBSCRIPTION.

Noteans..50ODescription for the purpose of token (e.g. Abo)Beschreibung für den Zweck des Tokens (z.B. Abo)
ArticleListans..2048M

Complete article list of the order. This parameter must be created in JSON format.


The individual parameters in JSON format are following:

name = Product name (mandatory)

quantity = item quantity. The value may not be negative. (mandatory)

unit_price = unit price inclusive taxes but without rebates. (mandatory)

total_amount = total amount of iarticles inclusive taxes and rebates. (mandatory)

image_url = URL for an image that can be embedded later in agreement with Klarna. (max. 1024 characters)

merchant_data = "pass-through parameter" (max. 255 characters). Merchant must agree with Klarna what will be transmitted here.

product_identifiers.brand = product brand

product_identifiers.category_path = path of product category. As separator '>' has to be used.

product_identifiers.global_trade_item_number = article number (e.g. EAN, ISBN or UPC).

product_identifiers.manufacturer_part_number = manufacturer’s number

product_url = URL to product image

quantity_unit = unit of quantity (e.g. kg)

reference = article number (e.g. SKU)

tax_rate = tax rate as percentage (e.g. 25%). The percent sign muss be replaced with two zeros, thus for example 2500. The value may not be negative.

total_discount_amount = total amount of rebate. The value may not be negative.

total_tax_amount = total amount of taxes. The value may be negative, if type is 'discount'.

type = type of item position. Possible entries are <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleExample:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Afterwards the article list created in JSON format must be Base64 encoded.

Komplette Artikelliste der Bestellung. Dieser Parameter muss im JSON-Format erstellt werden.


Die einzelnen Parameter im JSON-Format sind folgende:

name = Produktname (Pflicht)

quantity = Artikelmenge. Der Wert darf nicht negativ sein. (Pflicht)

unit_price = Einzelpreis inkl. Steuern aber exkl. Rabatte. (Pflicht)

total_amount = Gesamtbetrag der Artikel inkl. Steuern und Rabatte. (Pflicht)

image_url = URL zu einem Bild, welches später in Absprache mit Klarna eingebettet werden kann. (max. 1024 Zeichen)

merchant_data = "Durchreich-Parameter" (max. 255 Zeichen). Was hier übermittelt wird, muss mit Klarna abgestimmt werden.

product_identifiers.brand = Produktmarke

product_identifiers.category_path = Pfad der Produktkategorie. Als Trennzeichen muss '>' verwendet werden.

product_identifiers.global_trade_item_number = Artikelnummer (z.B. EAN, ISBN oder UPC).

product_identifiers.manufacturer_part_number = Herstellernummer

product_url = URL zum Produktbild

quantity_unit = Mengeneinheit (z.B. kg)

reference = Artikelnummer (z.B. SKU)

tax_rate = Steuersatz in Prozent (z.B. 25%). Das Prozentzeichen muss durch zwei Nullen ersetzt werden, also zum Beispiel 2500. Der Wert darf nicht negativ sein.

total_discount_amount = Gesamtbetrag des Rabattes. Der Wert darf nicht negativ sein.

total_tax_amount = Gesamtbetrag der Steuern. Der Wert darf negativ sein, wenn der type 'discount' ist.

type = Typ der Artikelposition. Mögliche Werte sind <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Anschließend muss die im JSON-Format erstellte Artikelliste Base64 encodiert werden.

bdCountryCodea2MCountry code for the invoicing address, 2 characters according to ISO 3166-1. Allowed are Germany <DE>, Austria <AT>, Netherlands <NL>, Denmark <DK>, Sweden <SE>, Norway <NO>, Finland <FI>, Great Britain <GB>, USA <US>, Switzerland (CH), Australia (AU), Belgium <BE>, Spain (ES), Italy <IT> and Poland <PL>Ländercode der Rechnungsadresse zweistellig gemäß ISO-3166-1. Erlaubt sind Deutschland <DE>, Österreich <AT>, Niederlande <NL>, Dänemark <DK>, Schweden <SE>, Norwegen <NO>, Finnland <FI>, Großbritannien <GB>, USA <US>, Schweiz <CH>, Australien <AU>, Belgien <BE>, Spanien (ES), Italien <IT> und Polen <PL>
bdFirstNameans..30CFirst name. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Vorname. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdLastNameans..30CLast name. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Nachname. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdEmailans..80CEmail address. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.E-Mail-Adresse. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdCompanyans..200OCompany nameFirmenname
bdRegionans..40ORegionGebiet
bdTitleans..20OTitle of customer or contact person, e.g. Dr. or Prof.Titel des Kunden oder der Kontaktperson, z.B. Dr. oder Prof.
bdStreeta..32CStreet name and street number. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Straße und Hausnummer. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdZipn..5CPostcode. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Postleitzahl. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdCitya..32CCity. Optional – if submitted, all parameters bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity must be submitted.Ort. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
bdAddressAdditionans..60OAdditional/supplementary address lineOrt. Optional – wenn angegeben, müssen alle Parameter bdFirstName, bdLastName, bdEmail, bdStreet, bdZip, bdCity übergeben werden.
sdCountryCodea2OCountry code for the delivery address, 2 characters according to ISO 3166-1. Allowed are Germany <DE>, Austria <AT>, Netherlands <NL>, Denmark <DK>, Sweden <SE>, Norway <NO>, Finland <FI>, Great Britain <GB>, USA <US>, Switzerland (CH), Australia (AU), Belgium <BE>, Spain (ES), Italy <IT> and Poland <PL>Ländercode der Lieferadresse zweistellig gemäß ISO-3166-1. Erlaubt sind Deutschland <DE>, Österreich <AT>, Niederlande <NL>, Dänemark <DK>, Schweden <SE>, Norwegen <NO>, Finnland <FI>, Großbritannien <GB>, USA <US>, Schweiz <CH>, Australien <AU>, Belgien <BE>, Spanien (ES), Italien <IT> und Polen <PL>
sdFirstNameans..30CFirst name. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Vorname. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdLastNameans..30CLast name. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Nachname. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdEmailans..80CEmail address. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.E-Mail-Adresse. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdCompanyans..200OConpany nameFirmenname
sdRegionans..40ORegionGebiet
sdTitleans..20OTitle of customer or contact person, e.g. Dr. or Prof.Titel des Kunden oder der Kontaktperson, z.B. Dr. oder Prof.
sdStreeta..32CStreet name and street number. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Straße und Hausnummer. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdZipn..5CPostcode. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Postleitzahl. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdCitya..32CCity. Optional – if submitted, all parameters sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity must be submitted.Ort. Optional – wenn angegeben, müssen alle Parameter sdFirstName, sdLastName, sdEmail, sdStreet, sdZip, sdCity übergeben werden.
sdAddressAdditionans..60OAdditional/supplementary address lineZusätzliche/ergänzende Adresszeile

Parameters for creating an order with Klarna

 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625515480201_376339530
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_createorder_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625515480205_-1174392300
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Beschreibung

TransactionID

an12

O

Reference number from Klarna system

Referenznummer aus dem Klarna-System

BillingAgreementID

ans..50

O

Token-ID (Consumer Token) from Klarna which must be additionally transferred for recurring payments. The value is returned only if request was made with RTF=I.

Token-ID (Consumer Token) von Klarna, welche bei wiederkehrenden Zahlungen (Recurring) mitgesendet werden muss. Der Wert wird nur zurückgegeben, wenn der Aufruf mit RTF=I erfolgt ist.

RedirectURL

ans..256

O

The customer must be forwarded to this URL so that Klarna can place a Cookie. The customer remains unaware of this process.

Damit Klarna ein Cookie setzen kann, muss der Kunde auf diese URL weitergeleitet werden. Der Kunde bekommt hiervon nichts mit.

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

Response parameters for creating an order with Klarna



Create recurring order (Abo) with Klarna

In order to create a recurring order (e.g. Abo) with Klarna, please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
KlarnaPayments.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625515967631_-1577237810
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_createabo_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625515967634_1864509029
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameAmount
pageAmount
typepage

Key

Format

CND

Description

Beschreibung
TaxAmountn..10M

Gross amount of value added tax in the smallest currency unit (e.g. EUR Cent). The amount may not be negative.

Notice: The VAT included is calculated for 19% with the formula =gross prices / 1.19 * 0.19.

Please contact the helpdesk, if you want to capture amounts < 100 (smallest currency unit).

Gesamtbetrag der MwSt. in der kleinsten Währungseinheit (z.B. EUR Cent). Der Betrag darf nicht negativ sein.

Hinweis: Die enthaltene MwSt. berechnet sich bei 19% mit der Formel =Bruttopreis / 1,19 * 0,19.

Bitte wenden Sie sich an den Helpdesk, wenn Sie Beträge < 100 (kleinste Währungseinheit) buchen möchten.

Table Excerpt Include
statictrue
nameCurrency
pageCurrency
typepage

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Key

Format

CND

Description

Beschreibung

EventToken

enum

M

Defines which Klarna API-Call request will be initiated.

For creating a Klarna order the value CNO must be transferred.

Definiert, welcher Klarna API-Call Request angestoßen wird.

Beim Anlegen der Klarna-Bestellung muss der Wert CNO übergeben werden.

BillingAgreementID

ans..50

M

Token-ID (Consumer Token) from Klarna which must be additionally transferred for recurring payments.

Token-ID (Consumer Token) von Klarna, welche bei wiederkehrenden Zahlungen (Recurring) mitgesendet werden muss.

RTF

a1

M

For repeat payments (subscriptions): I = Initial payment of a new subscription, R = Routine payment (Recurring).

For this request the value R must be transferred.

Bei wiederkehrenden Zahlungen (Abos): I = Initialzahlung eines neuen Abos, R = Wiederkehrende Zahlung (Recurring).

Bei diesem Request muss der Wert R übergeben werden.

Account

ans..12

M

With 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNamePartner-Name
PageWithExcerptWording
it is possible to store details for several Klarna accounts (username and password). Account allows you to control which account data to use.

The value of this parameter must be agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording
.

Bei 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNamePartner-Name
PageWithExcerptDE:Wording
können mehrere Klarna Account-Daten (Benutzername und Kennwort) hinterlegt werden. Über Account kann gesteuert werden, welche Account-Daten man verwendet.

Der Wert für diesen Parameter muss mit dem 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgestimmt werden.

ArticleList

ans..2048

M

Complete article list of the order. This parameter must be created in JSON format.


The individual parameters in JSON format are following:

name = Product name (mandatory)

quantity = item quantity. The value may not be negative. (mandatory)

unit_price = unit price inclusive taxes but without rebates. (mandatory)

total_amount = total amount of iarticles inclusive taxes and rebates. (mandatory)

image_url = URL for an image that can be embedded later in agreement with Klarna. (max. 1024 characters)

merchant_data = "pass-through parameter" (max. 255 characters). Merchant must agree with Klarna what will be transmitted here.

product_identifiers.brand = product brand

product_identifiers.category_path = path of product category. As separator '>' has to be used.

product_identifiers.global_trade_item_number = article number (e.g. EAN, ISBN or UPC).

product_identifiers.manufacturer_part_number = manufacturer’s number

product_url = URL to product image

quantity_unit = unit of quantity (e.g. kg)

reference = article number (e.g. SKU)

tax_rate = tax rate as percentage (e.g. 25%). The percent sign muss be replaced with two zeros, thus for example 2500. The value may not be negative.

total_discount_amount = total amount of rebate. The value may not be negative.

total_tax_amount = total amount of taxes. The value may be negative, if type is 'discount'.

type = type of item position. Possible entries are <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleExample:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Afterwards the article list created in JSON format must be Base64 encoded.

Komplette Artikelliste der Bestellung. Dieser Parameter muss im JSON-Format erstellt werden.


Die einzelnen Parameter im JSON-Format sind folgende:

name = Produktname (Pflicht)

quantity = Artikelmenge. Der Wert darf nicht negativ sein. (Pflicht)

unit_price = Einzelpreis inkl. Steuern aber exkl. Rabatte. (Pflicht)

total_amount = Gesamtbetrag der Artikel inkl. Steuern und Rabatte. (Pflicht)

image_url = URL zu einem Bild, welches später in Absprache mit Klarna eingebettet werden kann. (max. 1024 Zeichen)

merchant_data = "Durchreich-Parameter" (max. 255 Zeichen). Was hier übermittelt wird, muss mit Klarna abgestimmt werden.

product_identifiers.brand = Produktmarke

product_identifiers.category_path = Pfad der Produktkategorie. Als Trennzeichen muss '>' verwendet werden.

product_identifiers.global_trade_item_number = Artikelnummer (z.B. EAN, ISBN oder UPC).

product_identifiers.manufacturer_part_number = Herstellernummer

product_url = URL zum Produktbild

quantity_unit = Mengeneinheit (z.B. kg)

reference = Artikelnummer (z.B. SKU)

tax_rate = Steuersatz in Prozent (z.B. 25%). Das Prozentzeichen muss durch zwei Nullen ersetzt werden, also zum Beispiel 2500. Der Wert darf nicht negativ sein.

total_discount_amount = Gesamtbetrag des Rabattes. Der Wert darf nicht negativ sein.

total_tax_amount = Gesamtbetrag der Steuern. Der Wert darf negativ sein, wenn der type 'discount' ist.

type = Typ der Artikelposition. Mögliche Werte sind <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Anschließend muss die im JSON-Format erstellte Artikelliste Base64 encodiert werden.

Parameters for a recurring order (Abo) with Klarna Payments


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625516274433_-2091616948
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_createabo_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625516274434_79404452
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Beschreibung

TransactionID

an12

O

Reference number from Klarna system

Referenznummer aus dem Klarna-System

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

Response parameters for a recurring order (Abo) with Klarna Payments



Modify invoice and delivery address

Invoice and delivery information was transferred within Klarna widget. As long as no capture is made invoice and/or delivery address can be modified subsequently. For this purpose please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
KlarnaPayments.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625516594264_-467013728
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_modifyaddress_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625516594266_-631434144
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Key

Format

CND

Description

Beschreibung
EventTokenenumM

Defines which Klarna API-Call request will be initiated.

For updating invoice and/or delivery address the value UCA must be transferred.

Definiert, welcher Klarna API-Call Request angestoßen wird.

Für das Update der Rechnungs- und/oder Lieferadresse muss der Wert UCA übergeben werden.

KeyFormatCNDInvoicing adressRechnungsadresse
bdTitlea..12OSalutationAnrede
bdFirstNameans..30OFirst nameVorname
bdLastNameans..30OLast nameNachname
bdCompanyans..30OCompanyFirma
bdStreeta..32OStreet name and street numberStraße und Hausnummer
bdAdrressAdditionans..50OAddress line 2Adresszusatz
bdZipn..5OPostcodePostleitzahl
bdCitya..32OCityOrt
bdRegiona..32ORegionRegion
bdCountryCodea2OCountry code for the invoicing address, 2 characters according to ISO 3166-1. Allowed are Germany <DE>, Austria <AT>, Netherlands <NL>, Denmark <DK>, Sweden <SE>, Norway <NO>, Finland <FI>, Great Britain <GB>, USA <US>, Switzerland (CH), Australia (AU), Belgium <BE>, Spain (ES), Italy <IT> and Poland <PL>Ländercode der Rechnungsadresse zweistellig gemäß ISO-3166-1. Erlaubt sind Deutschland <DE>, Österreich <AT>, Niederlande <NL>, Dänemark <DK>, Schweden <SE>, Norwegen <NO>, Finnland <FI>, Großbritannien <GB>, USA <US>, Schweiz <CH>, Australien <AU>, Belgien <BE>, Spanien (ES), Italien <IT> und Polen <PL>
bdEmailans..80OE-mail addressE-Mail-Adresse
bdPhonen..20OPhone number or mobile phone numberTelefon- oder Mobilfunknummer
KeyFormatCNDDelivery addressLieferadresse
sdTitlea..12OSalutationAnrede
sdFirstNameans..30OFirst nameVorname
sdLastNameans..30OLast nameNachname
sdCompanyans..50OCompanyFirma
sdStreeta..32OStreet name and street numberStraße und Hausnummer
sdAddressAdditionans..50OAddress line 2Adresszusatz
sdZipn..5OPostcodePostleitzahl
sdCitya..32OCityOrt
sdRegiona..32ORegionRegion
sdCountryCodea2OCountry code for the delivery address, 2 characters according to ISO 3166-1. Allowed are Germany <DE>, Austria <AT>, Netherlands <NL>, Denmark <DK>, Sweden <SE>, Norway <NO>, Finland <FI>, Great Britain <GB>, USA <US>, Switzerland (CH), Australia (AU), Belgium <BE>, Spain (ES), Italy <IT> and Poland <PL>Ländercode der Rechnungsadresse zweistellig gemäß ISO-3166-1. Erlaubt sind Deutschland <DE>, Österreich <AT>, Niederlande <NL>, Dänemark <DK>, Schweden <SE>, Norwegen <NO>, Finnland <FI>, Großbritannien <GB>, USA <US>, Schweiz <CH>, Australien <AU>, Belgien <BE>, Spanien (ES), Italien <IT> und Polen <PL>
sdEmailans..80OE-mail addressE-Mail-Adresse
sdPhonen..20OPhone number or mobile phone numberTelefon- oder Mobilfunknummer

Parameters for address modification with Klarna Payments


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625518669989_1146722929
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_modifyaddress_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625518669991_1767431238
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Beschreibung

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

Response parameters for address modification with Klarna Payments



Modify unique reference number

As long as no capture is made the unique reference number which already was sent along within parameter RefNr for creating the Klarna session can be modified subsequently. For this purpose please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
KlarnaPayments.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625518885589_-1661648136
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_modifyreferencenumber_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625518885591_-1619668489
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Key

Format

CND

Description

Beschreibung

EventToken

enum

M

Defines which Klarna API-Call request will be initiated.

For updating the unique reference number the value UMR must be transferred.

Definiert, welcher Klarna API-Call Request angestoßen wird.

Für das Update der eindeutigen Referenznummer muss der Wert UMR übergeben werden.

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Parameters for modification of reference number with Klarna Payments


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625518809517_-1291915094
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_modifyreferencenumber_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625518809518_2015498805
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Beschreibung

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

Response parameters for modification of reference number with Klarna Payments



Modify order amount and article list

As long as no capture is made the order amount as well as the whole article list can be modified subsequently. For this purpose please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
KlarnaPayments.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625519880985_1278736228
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_modifyamount_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625519880986_696059891
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Key

Format

CND

Description

Beschreibung

Amount

n..10

M

New total amount in the smallest currency unit (e.g. EUR Cent) The amount may not be negative.

Please contact the helpdesk, if you want to capture amounts < 100 (smallest currency unit).

Notice: The new amount may not be higher than the amount transferred within the initial request.

Neuer Gesamtbetrag in der kleinsten Währungseinheit (z.B. EUR Cent). Der Betrag darf nicht negativ sein.

Bitte wenden Sie sich an den Helpdesk, wenn Sie Beträge < 100 (kleinste Währungseinheit) buchen möchten.

Hinweis: Der neue Betrag darf nicht höher sein, als der im anfänglichen Request mitgegebene Betrag.

Table Excerpt Include
statictrue
nameCurrency
pageCurrency
typepage

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Key

Format

CND

Description

Beschreibung

EventToken

enum

M

Defines which Klarna API-Call request will be initiated.

For modifying of order amount and article list the value UEO must be transferred.

Definiert, welcher Klarna API-Call Request angestoßen wird.

Für das Ändern des Bestellbetrages und der Artikelliste muss der Wert UEO übergeben werden.

ArticleList

ans..2048

M

New article list of the order. This parameter must be created in JSON format.


The individual parameters in JSON format are following:

name = Product name (mandatory)

quantity = item quantity. The value may not be negative. (mandatory)

unit_price = unit price inclusive taxes but without rebates. (mandatory)

total_amount = total amount of iarticles inclusive taxes and rebates. (mandatory)

image_url = URL for an image that can be embedded later in agreement with Klarna. (max. 1024 characters)

merchant_data = "pass-through parameter" (max. 255 characters). Merchant must agree with Klarna what will be transmitted here.

product_identifiers.brand = product brand

product_identifiers.category_path = path of product category. As separator '>' has to be used.

product_identifiers.global_trade_item_number = article number (e.g. EAN, ISBN or UPC).

product_identifiers.manufacturer_part_number = manufacturer’s number

product_url = URL to product image

quantity_unit = unit of quantity (e.g. kg)

reference = article number (e.g. SKU)

tax_rate = tax rate as percentage (e.g. 25%). The percent sign muss be replaced with two zeros, thus for example 2500. The value may not be negative.

total_discount_amount = total amount of rebate. The value may not be negative.

total_tax_amount = total amount of taxes. The value may be negative, if type is 'discount'.

type = type of item position. Possible entries are <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleExample:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Afterwards the article list created in JSON format must be Base64 encoded.

Neue Artikelliste der Bestellung. Dieser Parameter muss im JSON-Format erstellt werden.


Die einzelnen Parameter im JSON-Format sind folgende:

name = Produktname (Pflicht)

quantity = Artikelmenge. Der Wert darf nicht negativ sein. (Pflicht)

unit_price = Einzelpreis inkl. Steuern aber exkl. Rabatte. (Pflicht)

total_amount = Gesamtbetrag der Artikel inkl. Steuern und Rabatte. (Pflicht)

image_url = URL zu einem Bild, welches später in Absprache mit Klarna eingebettet werden kann. (max. 1024 Zeichen)

merchant_data = "Durchreich-Parameter" (max. 255 Zeichen). Was hier übermittelt wird, muss mit Klarna abgestimmt werden.

product_identifiers.brand = Produktmarke

product_identifiers.category_path = Pfad der Produktkategorie. Als Trennzeichen muss '>' verwendet werden.

product_identifiers.global_trade_item_number = Artikelnummer (z.B. EAN, ISBN oder UPC).

product_identifiers.manufacturer_part_number = Herstellernummer

product_url = URL zum Produktbild

quantity_unit = Mengeneinheit (z.B. kg)

reference = Artikelnummer (z.B. SKU)

tax_rate = Steuersatz in Prozent (z.B. 25%). Das Prozentzeichen muss durch zwei Nullen ersetzt werden, also zum Beispiel 2500. Der Wert darf nicht negativ sein.

total_discount_amount = Gesamtbetrag des Rabattes. Der Wert darf nicht negativ sein.

total_tax_amount = Gesamtbetrag der Steuern. Der Wert darf negativ sein, wenn der type 'discount' ist.

type = Typ der Artikelposition. Mögliche Werte sind <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Anschließend muss die im JSON-Format erstellte Artikelliste Base64 encodiert werden.

Parameters for modifying order amount and article list with Klarna Payments


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625520136187_-1661648136
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_modifyamount_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625520136189_-1619668489
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Beschreibung

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

Response parameters for modification of order amount and article list with Klarna Payments



Capture

Captures are possible via a Server-to-Server connection. To carry out a complete or partial capture for Klarna Payments via a Server-to-Server connection please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
capture.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625521678901_1593537734
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_capture_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625521678902_-615353823
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Key

Format

CND

Description

Beschreibung

Amount

n..10

M

Amount to be captured in the smallest currency unit including taxes and rebates (e.g. EUR Cent).

Please contact the helpdesk, if you want to capture amounts < 100 (smallest currency unit).

Notice: It depends on the amount whether a full or partial capture is made.

Betrag, der gebucht werden soll, in der kleinsten Währungseinheit (z.B. EUR Cent) inkl. Steuern und Rabatte.

Bitte wenden Sie sich an den Helpdesk, wenn Sie Beträge < 100 (kleinste Währungseinheit) buchen möchten.

Hinweis: Ob eine Teil- oder Vollbuchung durchgeführt wird, ist vom Betrag abhängig.

Currencya..3MCurrency, three characters DIN / ISO 4217, permitted are: AUD, CHF, DKK, EUR, GBP, NOK, SEK, USD.Währung, drei Zeichen DIN / ISO 4217, zulässig sind: AUD, CHF, DKK, EUR, GBP, NOK, SEK, USD.

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Table Excerpt Include
statictrue
nameReqId-ans..32
pageReqId
typepage

Key

Format

CND

Description

Beschreibung

ShippingData

ans..2048

O

Delivery information (e.g. tracking data). This parameter must be created in JSON format.

Code Block
languagejson
titleExample:
linenumberstrue
{
	"shipping_info": [
		{
			"shipping_company": "DHL US",
			"shipping_method": "Home",
			"tracking_number": "63456415674545679074",
			"tracking_url": "http://shipping.example/findmypackage?63456415674545679074",
			"return_shipping_company": "DHL US",
			"return_tracking_number": "93456415674545679000",
			"return_tracking_url": "http://shipping.example/findmypackage?93456415674545679000"
		}
	]
}

Afterwards the delivery information created in JSON format must be Base64 encoded.

Lieferinformationen (z.B. Tracking-Daten). Dieser Parameter muss im JSON-Format erstellt werden.

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"shipping_info": [
		{
			"shipping_company": "DHL US",
			"shipping_method": "Home",
			"tracking_number": "63456415674545679074",
			"tracking_url": "http://shipping.example/findmypackage?63456415674545679074",
			"return_shipping_company": "DHL US",
			"return_tracking_number": "93456415674545679000",
			"return_tracking_url": "http://shipping.example/findmypackage?93456415674545679000"
		}
	]
}

Anschließend müssen die im JSON-Format erstellten Lieferinformationen Base64 encodiert werden.

ArticleList

ans..2048

O

Complete article list of the order. This parameter must be created in JSON format.


The individual parameters in JSON format are following:

name = Product name (mandatory)

quantity = item quantity. The value may not be negative. (mandatory)

unit_price = unit price inclusive taxes but without rebates. (mandatory)

total_amount = total amount of iarticles inclusive taxes and rebates. (mandatory)

image_url = URL for an image that can be embedded later in agreement with Klarna. (max. 1024 characters)

merchant_data = "pass-through parameter" (max. 255 characters). Merchant must agree with Klarna what will be transmitted here.

product_identifiers.brand = product brand

product_identifiers.category_path = path of product category. As separator '>' has to be used.

product_identifiers.global_trade_item_number = article number (e.g. EAN, ISBN or UPC).

product_identifiers.manufacturer_part_number = manufacturer’s number

product_url = URL to product image

quantity_unit = unit of quantity (e.g. kg)

reference = article number (e.g. SKU)

tax_rate = tax rate as percentage (e.g. 25%). The percent sign muss be replaced with two zeros, thus for example 2500. The value may not be negative.

total_discount_amount = total amount of rebate. The value may not be negative.

total_tax_amount = total amount of taxes. The value may be negative, if type is 'discount'.

type = type of item position. Possible entries are <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleExample:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Afterwards the article list created in JSON format must be Base64 encoded.

Komplette Artikelliste der Bestellung. Dieser Parameter muss im JSON-Format erstellt werden.


Die einzelnen Parameter im JSON-Format sind folgende:

name = Produktname (Pflicht)

quantity = Artikelmenge. Der Wert darf nicht negativ sein. (Pflicht)

unit_price = Einzelpreis inkl. Steuern aber exkl. Rabatte. (Pflicht)

total_amount = Gesamtbetrag der Artikel inkl. Steuern und Rabatte. (Pflicht)

image_url = URL zu einem Bild, welches später in Absprache mit Klarna eingebettet werden kann. (max. 1024 Zeichen)

merchant_data = "Durchreich-Parameter" (max. 255 Zeichen). Was hier übermittelt wird, muss mit Klarna abgestimmt werden.

product_identifiers.brand = Produktmarke

product_identifiers.category_path = Pfad der Produktkategorie. Als Trennzeichen muss '>' verwendet werden.

product_identifiers.global_trade_item_number = Artikelnummer (z.B. EAN, ISBN oder UPC).

product_identifiers.manufacturer_part_number = Herstellernummer

product_url = URL zum Produktbild

quantity_unit = Mengeneinheit (z.B. kg)

reference = Artikelnummer (z.B. SKU)

tax_rate = Steuersatz in Prozent (z.B. 25%). Das Prozentzeichen muss durch zwei Nullen ersetzt werden, also zum Beispiel 2500. Der Wert darf nicht negativ sein.

total_discount_amount = Gesamtbetrag des Rabattes. Der Wert darf nicht negativ sein.

total_tax_amount = Gesamtbetrag der Steuern. Der Wert darf negativ sein, wenn der type 'discount' ist.

type = Typ der Artikelposition. Mögliche Werte sind <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Anschließend muss die im JSON-Format erstellte Artikelliste Base64 encodiert werden.

CompleteType

a3

O

With this parameter during a partial capture it is possible to reverse the remaining amount simultaneously. Possible value <YES>. If the order was processed completely this parameter will cause an error, because a remaining amount of 0 cannot be reversed.

Mit diesem Parameter kann bei einer Teilbuchung gleichzeitig der noch verbleibende Restbetrag storniert werden. Möglicher Wert <YES>. Wurde der Auftrag vollständig gebucht, führt dieser Parameter zu einem Fehler, da ein Restbetrag von 0 nicht storniert werden kann.

Parameters for captures with Klarna Payments


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625522077509_-193675960
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_capture_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625522077510_-135023960
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Beschreibung
InvoiceNrans..30MInvoice/booking number from Klarna. This number is needed for example for resending the E-Mail with payment and order information.Rechnungs-/Buchungsnummer von Klarna. Diese Nummer wird beispielsweise benötigt, um das Versenden der E-Mail mit den Zahlungs- und Bestellinformationen erneut anzustoßen.

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

Response parameters for captures with Klarna Payments



Resending an activated invoice

It may happen that a customer hasn’t received the E-Mail with payment and order information. This request is possible only if a capture was already made. For resending this E-Mail, please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
KlarnaPayments.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625522195114_216752831
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_resend_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625522195116_109494980
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Key

Format

CND

Description

Beschreibung

EventToken

enum

M

Defines which Klarna API-Call request will be initiated.

For resending the E-Mail the value RCC must be transferred.

Definiert, welcher Klarna API-Call Request angestoßen wird.

Für das erneute Versenden der E-Mail muss der Wert RCC übergeben werden.

InvoiceNr

ans..30

M

Invoice/booking number from Klarna which is returned for all captures within response parameter InvoiceNr

Rechnungs-/Buchungsnummer von Klarna, welche bei jeder Buchung im Antwortparameter InvoiceNr zurückgegeben wird

Parameters for resending an activated invoice with Klarna Payments


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1625522420705_1875980928
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_resend_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1625522420706_-1199247352
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Beschreibung

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

Response parameters for resending an activated invoice with Klarna Payments



Credit with reference and partial credit

Credits (refunds) are possible via a Server-to-Server connection. To carry out a partal or full credit with a reference transaction, please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
credit.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1627897912170_214019815
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_credit_reference_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1627897912173_1325881473
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Key

Format

CND

Description

Beschreibung

Amount

n..10

M

Total amount to be credited in the smallest currency unit including taxes and rebates (e.g. EUR Cent).

Please contact the helpdesk, if you want to capture amounts < 100 (smallest currency unit).

Notice: It depends on the amount whether a full or partial credit is made.

Gesamtbetrag, der gutgeschrieben werden soll, in der kleinsten Währungseinheit (z.B. EUR Cent) inkl. Steuern und Rabatten.

Bitte wenden Sie sich an den Helpdesk, wenn Sie Beträge < 100 (kleinste Währungseinheit) buchen möchten.

Hinweis: Ob eine Teil- oder Vollgutschrift durchgeführt wird, ist vom Betrag abhängig.

Currency

a..3

M

Currency, three characters DIN / ISO 4217, permitted are: AUD, CHF, DKK, EUR, GBP, NOK, SEK, USD.Währung, drei Zeichen DIN / ISO 4217, zulässig sind: AUD, CHF, DKK, EUR, GBP, NOK, SEK, USD.

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameReqId-ans..32
pageReqId
typepage

Key

Format

CND

Description

Beschreibung

ArticleList

ans..2048

O

Complete article list of the order. This parameter must be created in JSON format.


The individual parameters in JSON format are following:

name = Product name (mandatory)

quantity = item quantity. The value may not be negative. (mandatory)

unit_price = unit price inclusive taxes but without rebates. (mandatory)

total_amount = total amount of iarticles inclusive taxes and rebates. (mandatory)

image_url = URL for an image that can be embedded later in agreement with Klarna. (max. 1024 characters)

merchant_data = "pass-through parameter" (max. 255 characters). Merchant must agree with Klarna what will be transmitted here.

product_identifiers.brand = product brand

product_identifiers.category_path = path of product category. As separator '>' has to be used.

product_identifiers.global_trade_item_number = article number (e.g. EAN, ISBN or UPC).

product_identifiers.manufacturer_part_number = manufacturer’s number

product_url = URL to product image

quantity_unit = unit of quantity (e.g. kg)

reference = article number (e.g. SKU)

tax_rate = tax rate as percentage (e.g. 25%). The percent sign muss be replaced with two zeros, thus for example 2500. The value may not be negative.

total_discount_amount = total amount of rebate. The value may not be negative.

total_tax_amount = total amount of taxes. The value may be negative, if type is 'discount'.

type = type of item position. Possible entries are <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleExample:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Afterwards the article list created in JSON format must be Base64 encoded.

Komplette Artikelliste der Bestellung. Dieser Parameter muss im JSON-Format erstellt werden.


Die einzelnen Parameter im JSON-Format sind folgende:

name = Produktname (Pflicht)

quantity = Artikelmenge. Der Wert darf nicht negativ sein. (Pflicht)

unit_price = Einzelpreis inkl. Steuern aber exkl. Rabatte. (Pflicht)

total_amount = Gesamtbetrag der Artikel inkl. Steuern und Rabatte. (Pflicht)

image_url = URL zu einem Bild, welches später in Absprache mit Klarna eingebettet werden kann. (max. 1024 Zeichen)

merchant_data = "Durchreich-Parameter" (max. 255 Zeichen). Was hier übermittelt wird, muss mit Klarna abgestimmt werden.

product_identifiers.brand = Produktmarke

product_identifiers.category_path = Pfad der Produktkategorie. Als Trennzeichen muss '>' verwendet werden.

product_identifiers.global_trade_item_number = Artikelnummer (z.B. EAN, ISBN oder UPC).

product_identifiers.manufacturer_part_number = Herstellernummer

product_url = URL zum Produktbild

quantity_unit = Mengeneinheit (z.B. kg)

reference = Artikelnummer (z.B. SKU)

tax_rate = Steuersatz in Prozent (z.B. 25%). Das Prozentzeichen muss durch zwei Nullen ersetzt werden, also zum Beispiel 2500. Der Wert darf nicht negativ sein.

total_discount_amount = Gesamtbetrag des Rabattes. Der Wert darf nicht negativ sein.

total_tax_amount = Gesamtbetrag der Steuern. Der Wert darf negativ sein, wenn der type 'discount' ist.

type = Typ der Artikelposition. Mögliche Werte sind <physical>, <discount>, <shipping_fee>, <sales_tax>, <digital>, <gift_card>, <store_credit>, <surcharge>

Code Block
languagejson
titleBeispiel:
linenumberstrue
{
	"order_lines": [
		{
			"image_url": "https://www.exampleobjects.com/logo.png",
			"merchant_data": "",
			"name": "Battery Power Pack",
			"product_identifiers": {
				"brand": "Intel",
				"category_path": "Electronics Store > Computers & Tablets > Desktops",
				"global_trade_item-number": "735858293167",
				"manufacturer_part_number": "BOXNUC5CPYH"
			},
			"product_url": "https://www.estore.com/products/f2a8d7e34",
			"quantity": 1,
			"quantity_unit": "kg",
			"reference": "19-402-USA",
			"tax_rate": 0,
			"total_amount": 1000,
			"total_discount_amount": 0,
			"total_tax_amount": 0,
			"type": "physical",
			"unit_price": 1000
		}
	]
}

Anschließend muss die im JSON-Format erstellte Artikelliste Base64 encodiert werden.

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Parameters for credits of payments with Klarna Payments

 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1627898322465_114394259
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_credit_reference_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1627898322466_-1756274385
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Beschreibung
InvoiceNrans..30MNumber of invoice/credit note from Klarna PaymentsRechnungs-/Gutschriftsnummer von Klarna Payments

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

Response parameters for credits of payments with Klarna Payments



Reversal

Reversals are possible via a Server-to-Server connection. With this request merchants can reverse the total authorisation amount in case of no capture was made or can reverse the remaining authorisation amount if a partial capture was already made. For this purpose please use the following URL:

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameBaseURL
PageWithExcerptWording
reverse.aspx


Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameRequest_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1627898552178_-1284849621
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_reversal_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1627898552179_-1710466332
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMerchantID
pageMerchantID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Key

Format

CND

Description

Beschreibung

Amount

n..10

M

Amount to be reversed in the smallest currency unit including taxes and rebates (e.g. EUR Cent).

Please contact the helpdesk, if you want to capture amounts < 100 (smallest currency unit).

Notice: If no capture was made the amount must equals the previously authorised amount. If a partial capture already was made the amount must equals the remaining authorised amount. A reversal for an already completely captured order will be refused with an error also if an amount 0 is used.

Betrag, der storniert werden soll, in der kleinsten Währungseinheit (z.B. EUR Cent) inkl. Steuern und Rabatten.

Bitte wenden Sie sich an den Helpdesk, wenn Sie Beträge < 100 (kleinste Währungseinheit) buchen möchten.

Hinweis: Wenn noch keine Buchung erfolgt ist, muss der Betrag dem vorher autorisierten Betrag entsprechen. Wenn bereits eine Teilbuchung erfolgt ist, muss der Betrag dem Restbetrag der Autorisierung entsprechen. Eine Stornierung auf einem bereits vollständig gebuchtem Auftrag wird mit einem Fehler abgelehnt, auch wenn als Betrag 0 verwendet wird.

Currency

a..3

M

Currency, three characters DIN / ISO 4217, permitted are: AUD, CHF, DKK, EUR, GBP, NOK, SEK, USD.Währung, drei Zeichen DIN / ISO 4217, zulässig sind: AUD, CHF, DKK, EUR, GBP, NOK, SEK, USD.

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameReqId-ans..32
pageReqId
typepage

Table Excerpt Include
statictrue
nameMAC
pageMAC
typepage

Parameters for reversal of payments with Klarna Payments

 

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameResponse_Intro
PageWithExcerptReuse API

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1627898723209_728492878
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNameklarna_reversal_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1627898723211_1748331492
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Table Excerpt Include
statictrue
nameMID
pageMID
typepage

Table Excerpt Include
statictrue
namePayID
pagePayID
typepage

Table Excerpt Include
statictrue
nameXID
pageXID
typepage

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameDescription
pageDescription
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Key

Format

CND

Description

Beschreibung

CodeExt

ans..50

O

Error code from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlercode von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

ErrorText

ans..1024

O

Error text from Klarna, if agreed with

Multiexcerpt include
SpaceWithExcerptEN
MultiExcerptNameHelpdesk-Name
PageWithExcerptWording

Fehlertext von Klarna, wenn mit 

Multiexcerpt include
SpaceWithExcerptDE
MultiExcerptNameHelpdesk-Name
PageWithExcerptDE:Wording
abgesprochen

Response parameters for reversal of payments with Klarna Payments



Batch processing via the interface

Basic information about using Batch files and about their structure can be found in the Batch Manager manual. Within batch processing not alle functions are available which are usually available for the online interface.

This section describes the parameters which must be transferred within the data set (Record) for executing a payment with Klarna Payments and which information can be found within the response file about the payment status.

When capturing there is a need to differentiate between complete and partial activation requests. In the case of part capturing you need also to transfer the article list with <ArticleList>. The <ArticleList> parameter is also required if a partial credit is made on a full activation. The two parameters <ArticleList> and <InvNo> are also required in the case of a partial credit on a partial activation. All additional parameters are also returned in the response file.

Following table gives an overview of all batch versions that are possible for a specific action and their specialities:

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1627898823264_-1182871624
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNamebatch_versions
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1627898823265_-461664813
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Action

Version

Description

Beschreibung
Capture1.0 / 2.0Standard version without return of parameter CodeStandardversion ohne Rückgabe von Parameter Code

1.x / 2.xwith RefNr (valid for all versions other than 1.0)mit RefNr (gilt für alle Versionen außer 1.0)

Credit

1.0 / 2.0

Standard version without return of parameter Code

Standardversion ohne Rückgabe von Parameter Code


1.x / 2.x

with RefNr (valid for all versions other than 1.0)

mit RefNr (gilt für alle Versionen außer 1.0)
Reverse1.0 / 2.0Standard version without return of parameter CodeStandardversion ohne Rückgabe von Parameter Code

1.x / 2.xwith RefNr (valid for all versions other than 1.0)mit RefNr (gilt für alle Versionen außer 1.0)

Description of the possible batch versions


The structure for a payment with Klarna Payments within a Batch file to be submitted is the following:

Multiexcerpt
MultiExcerptNamebatch_structure
shouldDisplayInlineCommentsInIncludesfalse
Code Block
languagexml
HEAD,<MerchantID>,<Date>,<Version>
KLARNAPM,CAPTURE,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>
KLARNAPM,CAPTURE,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>,<ArticleList>
KLARNAPM,CREDIT,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>
KLARNAPM,CREDIT,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>,<ArticleList>
KLARNAPM,REVERSE,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>
FOOT,<CountRecords>,<SumAmount>


Example for Master MID function:

Multiexcerpt
MultiExcerptNamebatch_MasterMid
shouldDisplayInlineCommentsInIncludesfalse
Code Block
languagexml
HEAD,[Master]MerchantID,Date,2.x
Type,Action,[Slave]MID,Amount,Currency,TransID,Data (depends on Action)
FOOT,CountRecords,SumAmount


The following table describes the individual fields and values used within the data set (record) in the batch file:

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1627899039379_-462150057
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNamebatch_request
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1627899039381_597308878
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Key

Format

CND

Description

Beschreibung

Type

a..11

M

HEAD for Header, FOOT for Footer, KLARNAPM for Klarna Payments

HEAD für Header, FOOT für Footer, KLARNAPM für Klarna Payments

Action

a..20

M

The parameter Action defines the type of transaction:

Capture

Credit

Reverse (cancellation)

Der Action-Parameter definiert die Art der Transaktion:

Capture (Buchung)

Credit (Gutschrift)

Reverse (Storno)

Table Excerpt Include
nameAmount
pageAmount
typepage

Key

Format

CND

Description

Beschreibung

Currency

a3

M

Currency, three characters DIN / ISO 4217, permitted are: AUD, CHF, DKK, EUR, GBP, NOK, SEK, USD.Währung, drei Zeichen DIN / ISO 4217, zulässig sind: AUD, CHF, DKK, EUR, GBP, NOK, SEK, USD.

Table Excerpt Include
statictrue
nameTransID
pageTransID
typepage

Table Excerpt Include
statictrue
nameRefNr
pageRefNr
typepage

Table Excerpt Include
statictrue
namePayID_Batch
pagePayID
typepage

Key

Format

CND

Description

Beschreibung

InvNo

ans..30

O

Invoice number for a part activation or part credit. Longest InvNo so far had 17 digits.Rechnungsnummer für eine Teil-Aktivierung oder Teil-Gutschrift. Längste InvNo bisher war 17stellig.

Description of fields within the record for Batch files

 

The record area within the response file for Batch transactions looks as follows:

Multiexcerpt
MultiExcerptNamebatch_Response
shouldDisplayInlineCommentsInIncludesfalse
Code Block
languagexml
HEAD,<MerchantID>,<Date>,<Version>
KLARNAPM,CAPTURE,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>,<Status>,<Code>
KLARNAPM,CAPTURE,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>,<ArticleList>,<InvNo>,<Status>,<Code>
KLARNAPM,CREDIT,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>,<Status>,<Code>
KLARNAPM,CREDIT,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>,<ArticleList>,<InvNo>,<Status>,<Code>
KLARNAPM,REVERSE,<Amount>,<Currency>,<TransID>,(<RefNr>,)<PayID>,<Status>,<Code>
FOOT,<CountRecords>,<SumAmount>


The following table describes the response parameters which the Batch Manager saves in the Record area for each transaction (standard parameters not explained here, such as <TransID> or <RefNR> and request parameters are returned unchanged and correspond to the call as specified before):

Table Filter
defaultBeschreibung
isFirstTimeEnterfalse
hideColumnstrue
sparkNameSparkline
hidePanetrue
datepatterndd M yy
id1627899910962_2008448079
worklog365|5|8|y w d h m|y w d h m
isORAND
separatorPoint (.)
order0
Multiexcerpt
MultiExcerptNamebatch_response
Table Transformer
dateFormatdd M yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1627899910963_-1411442441
transposefalse
worklog365|5|8|y w d h m|y w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*

Key

Format

CND

Description

Beschreibung

Action

a..20

M

The parameter Action defines the type of transaction:

Capture

Credit

Reverse (cancellation)

Der Action-Parameter definiert die Art der Transaktion:

Capture (Buchung)

Credit (Gutschrift)

Reverse (Storno)

Table Excerpt Include
statictrue
namePayID_Batch
pagePayID
typepage

Table Excerpt Include
statictrue
nameStatus_OK_FAILED
pageStatus
typepage

Table Excerpt Include
statictrue
nameCode
pageCode
typepage

Description of result parameters within the record for Batch files