Download OpenAPI specification:Download
Successful response
No messaging available for the given parameters.
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "content": {
- "nodes": [
- {
- "name": "TEXT_MAIN",
- "type": "TEXT",
- "value": "Pay as low as $177/mo."
}, - {
- "name": "ACTION_LEARN_MORE",
- "url": "url_t",
- "type": "ACTION",
- "label": "Learn more"
}, - {
- "name": "KLARNA_LOGO",
- "alt": "Klarna",
- "type": "IMAGE"
}
]
}
}
Successful response
No messaging available for the given parameters.
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "content": {
- "nodes": [
- {
- "name": "TEXT_MAIN",
- "type": "TEXT",
- "value": "Pay as low as $177/mo."
}, - {
- "name": "ACTION_LEARN_MORE",
- "url": "url_t",
- "type": "ACTION",
- "label": "Learn more"
}, - {
- "name": "KLARNA_BADGE",
- "alt": "Klarna",
- "type": "IMAGE"
}
]
}
}
Successful response
No messaging available for the given parameters.
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "content": {
- "nodes": [
- {
- "name": "TEXT_MAIN",
- "type": "TEXT",
- "value": "Shop now. Pay with"
}, - {
- "name": "ACTION_LEARN_MORE",
- "url": "url_t",
- "type": "ACTION",
- "label": "Learn more"
}, - {
- "name": "KLARNA_LOGO",
- "alt": "Klarna",
- "type": "IMAGE"
}
]
}
}
Successful response
No messaging available for the given parameters.
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "content": {
- "nodes": [
- {
- "name": "TEXT_MAIN",
- "type": "TEXT",
- "value": "Shop now. Pay with"
}, - {
- "name": "ACTION_LEARN_MORE",
- "url": "url_t",
- "type": "ACTION",
- "label": "Learn more"
}, - {
- "name": "KLARNA_BADGE",
- "alt": "Klarna",
- "type": "IMAGE"
}
]
}
}
Successful response
No messaging available for the given parameters.
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "content": {
- "nodes": [
- {
- "name": "TEXT_MAIN",
- "type": "TEXT",
- "value": "Enjoy Buyer Protection with Klarna"
}, - {
- "name": "ACTION_LEARN_MORE",
- "url": "url_t",
- "type": "ACTION",
- "label": "Learn more"
}, - {
- "name": "KLARNA_BADGE",
- "alt": "Klarna",
- "type": "IMAGE"
}, - {
- "name": "ACTION_OPEN_BUYERS_PROTECTION_LINK",
- "label": "Buyer Protection",
- "type": "ACTION"
}, - {
- "name": "ZERO_INTEREST_BADGE_TEXT",
- "label": "0% Financing",
- "type": "TEXT"
}
]
}
}
Successful response
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Bad request.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "client_id": "5fb4f264-dd9b-5df9-82d4-e7d88fcfaa89",
- "countries": [
- {
- "locales": [
- "en-IE"
], - "country": "IE"
}, - {
- "locales": [
- "da-DK",
- "en-DK"
], - "country": "DK"
}, - {
- "locales": [
- "de-AT",
- "en-AT"
], - "country": "AT"
}, - {
- "locales": [
- "en-SE",
- "sv-SE"
], - "country": "SE"
}, - {
- "locales": [
- "en-NO",
- "no-NO"
], - "country": "NO"
}, - {
- "locales": [
- "en-FI",
- "fi-FI",
- "sv-FI"
], - "country": "FI"
}, - {
- "locales": [
- "en-NL",
- "nl-NL"
], - "country": "NL"
}, - {
- "locales": [
- "de-DE",
- "en-DE"
], - "country": "DE"
}, - {
- "locales": [
- "de-CH",
- "en-CH",
- "fr-CH",
- "it-CH"
], - "country": "CH"
}, - {
- "locales": [
- "en-GB"
], - "country": "GB"
}, - {
- "locales": [
- "en-FR",
- "fr-FR"
], - "country": "FR"
}, - {
- "locales": [
- "en-IT",
- "it-IT"
], - "country": "IT"
}, - {
- "locales": [
- "en-PL",
- "pl-PL"
], - "country": "PL"
}, - {
- "locales": [
- "en-BE",
- "fr-BE",
- "nl-BE"
], - "country": "BE"
}
], - "placements": [
- {
- "key": "footer-promotion-auto-size",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x (auto)",
- "width": 100,
- "height": 0,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Footer"
}
}, - {
- "key": "credit-promotion-auto-size",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x (auto)",
- "width": 100,
- "height": 0,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Price Detail"
}
}, - {
- "key": "sidebar-promotion-auto-size",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x (auto)",
- "width": 100,
- "height": 0,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Sidebar"
}
}, - {
- "key": "top-strip-promotion-auto-size",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x (auto)",
- "width": 100,
- "height": 0,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Top strip"
}
}, - {
- "key": "credit-promotion-badge",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x (auto)",
- "width": 100,
- "height": 0,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Price Detail Badge"
}
}, - {
- "key": "info-page",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x (auto)",
- "width": 100,
- "height": 0,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Information Page"
}
}, - {
- "key": "top-strip-promotion-badge",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x (auto)",
- "width": 100,
- "height": 0,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Top Strip Badge"
}
}, - {
- "key": "homepage-promotion-tall",
- "allow_custom_variant": false,
- "size": {
- "label": "160 x 600",
- "width": 160,
- "height": 600,
- "width_unit": "px",
- "height_unit": "px"
}, - "type": {
- "name": "Body"
}
}, - {
- "key": "homepage-promotion-wide",
- "allow_custom_variant": false,
- "size": {
- "label": "728 x 90",
- "width": 728,
- "height": 90,
- "width_unit": "px",
- "height_unit": "px"
}, - "type": {
- "name": "Body"
}
}, - {
- "key": "homepage-promotion-box",
- "allow_custom_variant": false,
- "size": {
- "label": "300 x 300",
- "width": 300,
- "height": 300,
- "width_unit": "px",
- "height_unit": "px"
}, - "type": {
- "name": "Body"
}
}, - {
- "key": "payment-options",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x (auto)",
- "width": 100,
- "height": 0,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Custom Payment Selector"
}
}, - {
- "key": "checkout",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x (auto)",
- "width": 100,
- "height": 0,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Checkout"
}
}, - {
- "key": "payment-options",
- "allow_custom_variant": true,
- "size": {
- "label": "(auto) x 40",
- "width": 100,
- "height": 40,
- "width_unit": "%",
- "height_unit": "px"
}, - "type": {
- "name": "Custom Payment Selector"
}
}
]
}
Returns all individual payment options (e.g. Financing 6 and Financing 12 are different items in the response, no grouping is applied). This endpoint is only available for selected merchants. Please advise with your point of contact before implemeting it.
Successful response
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
{- "payment_amount": 2000,
- "locale": "en-US",
- "currency": "USD",
- "customer_token": "krn:partner:us1:live:identity:customer-token:vVQGmYzlfsQ16dko3jcwY5lV8hBgKs9a"
}
{- "payment_options": [
- {
- "payment_method": "PAY_NOW",
- "payment_method_label": "Pay Now",
- "payment_option_id": "edwqqr32dsad2dsefrassa",
- "total_amount": 111101,
- "preselected": false,
- "currency": "USD",
- "content": {
- "nodes": [
- {
- "name": "TEXT_MAIN",
- "type": "TEXT",
- "value": "Pay in full with card."
}, - {
- "name": "ACTION_LEARN_MORE",
- "type": "ACTION",
- "label": "Learn more",
}, - {
- "name": "TEXT_TERMS",
- "type": "TEXT",
- "value": "Terms and conditions",
}, - {
- "name": "KLARNA_LOGO",
- "type": "IMAGE",
- "alt": "Klarna"
}
]
}
}, - {
- "payment_method": "FINANCING",
- "payment_method_label": "Financing",
- "number_of_installments": 12,
- "interest_rate": 1999,
- "installment_amount": 9258,
- "total_amount": 111101,
- "payment_option_id": "czxsa4324132dsaddsxcxzzxs",
- "preselected": true,
- "currency": "USD",
- "content": {
- "nodes": [
- {
- "name": "TEXT_MAIN",
- "type": "TEXT",
- "value": "Pay in 12 installments."
}, - {
- "name": "TEXT_TERMS",
- "type": "TEXT",
- "value": "Pay monthly financing available through Klarna, Inc. is issued by WebBank, member FDIC. It’s available to eligible US residents in most states. Rates (0-29.99% APR) are based on your credit. Missed payments are subject to late fees. Review Klarna's terms.",
- "hyperlinks": [
- {
- "text": "FDIC",
}, - {
- "text": "Klarna's terms.",
}
]
}, - {
- "name": "ACTION_LEARN_MORE",
- "type": "ACTION",
- "label": "Learn more",
}, - {
- "name": "KLARNA_LOGO",
- "type": "IMAGE",
- "alt": "Klarna"
}
]
}
}
], - "funding_source": {
- "funding_source_type": "CARD",
- "brand": "VISA",
- "expires_at": {
- "expiry_month": "MAY",
- "expiry_year": 2026
}, - "masked_card_number": "**** 4555"
},
}
Successful response
Bad Request, there was an error in the input of the request. The request can not be retried without modifications.
Unauthorized, the request was not authorized.
Not Found, the requested resource was not found.
Too Many Requests, the request was rate limited.
Internal Server Error, there was an unexpected error in the API.
When category_preference is set to KLARNA, the payment_descriptor should return only one descriptor which has grouped text of all categories and with no payment_option_id.
{- "locale": "en-US",
- "payment_amount": 1000,
- "category_preference": "KLARNA"
}
When category_preference is set to KLARNA, the payment_descriptor should return only one descriptor which has grouped text of all categories and with no payment_option_id.
{- "payment_descriptors": [
- {
- "content": {
- "nodes": [
- {
- "name": "PAYMENT_DESCRIPTOR",
- "type": "TEXT",
- "value": "Pay with Klarna"
}, - {
- "name": "PAYMENT_DESCRIPTOR_SUBHEADER",
- "type": "TEXT",
- "value": "Pay in 3 parts or in 30 or over 6-36 months or now"
}, - {
- "alt": "Klarna",
- "url": "/images/badges/klarna_v2_1.svg",
- "name": "KLARNA_BADGE",
- "type": "IMAGE"
}
]
}
}
],
}