POST
/
v2.01
/
{ClientId}
/
payins
/
payment-methods
/
klarna

Note – Timeout after 48 hours

The Klarna payment session lasts 48 hours, at which point the pay-in fails automatically if no action has been taken by the user.

Note – Minimum amount in Production

In Production, the minimum accepted DebitedFunds amount for Klarna is 1 (regardless of currency).

Body parameters

Tag
string

Max. length: 255 characters

Custom data that you can add to this object.
For transactions (pay-in, transfer, payout), you can use this parameter to identify corresponding information regarding the user, transaction, or payment methods on your platform.

AuthorId
string
required

The unique identifier of the user at the source of the transaction.

DebitedFunds
object
required

Information about the debited funds. The amount must be equal to the total of all UnitAmount and TaxAmount of all LineItems.

Fees
object
required

Information about the fees.

CreditedWalletId
string
required

The unique identifier of the credited wallet.

ReturnURL
string
required

Max. length: 255 characters

The URL to which the user is returned after the payment, whether the transaction is successful or not.

StatementDescriptor
string

Max. length: 10 characters; only alphanumeric and spaces

Custom description to appear on the user’s bank statement along with the platform name. Different banks may show more or less information. See the Customizing bank statement references article for details.

Billing
object
required

Information about the end user billing address.

Shipping
object

Information about the end user’s shipping address.
The shipping address AddressLine1 must be formatted:

  • FR, UK, US: [Number][StreetName], for example: 33 Cavendish Square
  • Rest of EU: [StreetName][Number], for example: De Ruijterkade 7
    Caution: Failure to follow this formatting may result in an error.
    If no shipping address is sent, Klarna considers it to be the same as the billing address.
LineItems
array
required

object

Information about the items purchased in the transaction. The total of all line items’ UnitAmount and TaxAmount must equal the DebitedFunds amount. 

Country
string
required

Format: ISO 3166-1 alpha-2 two-letter country code

The country of residence of the user.

Culture
string

Format: ISO 639-1 alpha-2 two-letter language code

The language in which the Klarna payment page is to be displayed.

The Culture must match the Country to show the checkout page in the desired language. If not, or if Culture is not sent, EN is the language by default.

Email
string
required

Format: A valid email address

The user’s email address.

Phone
string
required

Format: [+CC][XXXXXXXXX] where +CC is the international dialing code and Xs are the local number, for example: [+33][689854321]

The user’s mobile phone number. If the phone matches the user’s Klarna account, their checkout experience involves one less step.

AdditionalData
string

Format: Serialized JSON object

The extra merchant data required by Klarna for the transaction, as described in the Klarna guide.

Reference
string
required

The platform’s order reference for the transaction.

ProfilingAttemptReference
string

The unique reference generated for the profiling session, used by the fraud prevention solution to produce recommendations for the transaction using the profiling data.

Note: Parameter not returned by the API. Profiling feature available on request – contact Mangopay via the Dashboard for more information.

Responses