Download OpenAPI specification:Download
Successful response
No messaging available for the given parameters.
Bad request.
curl -i -X GET \ 'https://api-global.klarna.com/v1/accounts/{account_id}/payment/messaging/credit-promotion-auto-size?locale=string&payment_amount=0&custom_payment_method_ids=string&message_preference=klarna&message_prefix=Or' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "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.
curl -i -X GET \ 'https://api-global.klarna.com/v1/accounts/{account_id}/payment/messaging/credit-promotion-badge?locale=string&payment_amount=0&custom_payment_method_ids=string&message_preference=klarna&message_prefix=Or' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "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.
curl -i -X GET \ 'https://api-global.klarna.com/v1/accounts/{account_id}/payment/messaging/top-strip-promotion-auto-size?locale=string&message_preference=klarna&message_prefix=Or' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "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.
curl -i -X GET \ 'https://api-global.klarna.com/v1/accounts/{account_id}/payment/messaging/top-strip-promotion-badge?locale=string&message_preference=klarna&message_prefix=Or' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "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.
curl -i -X GET \ 'https://api-global.klarna.com/v1/accounts/{account_id}/payment/messaging/checkout?locale=string&custom_payment_method_ids=string&payment_amount=0' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "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.
Bad request.
curl -i -X GET \ 'https://api-global.klarna.com/v1/accounts/{account_id}/payment/messaging/capabilities?mid=string&client_id=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "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).
Successful response
Bad request.
{- "payment_amount": 20000,
- "locale": "en-US",
- "currency": "USD",
- "customer_token": "krn:okts-eu:one-klarna-token:0fbc4a5c-d7e6-453c-b07f-bd77a2cbb802"
}
{- "payment_options": [
- {
- "payment_method_label": "Pay Now",
- "number_of_installments": null,
- "installment_interval": null,
- "installment_interval_frequency": null,
- "due_days": null,
- "custom_payment_method_id": null,
- "payment_option_id": "edwqqr32dsad2dsefrassa",
- "interest_rate": null,
- "installment_amount": null,
- "total_amount": 111101,
- "preselected": false,
- "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_label": "Financing",
- "number_of_installments": 12,
- "installment_interval": null,
- "installment_interval_frequency": null,
- "due_days": null,
- "custom_payment_method_id": null,
- "interest_rate": 1999,
- "installment_amount": 9258,
- "total_amount": 111101,
- "payment_option_id": "czxsa4324132dsaddsxcxzzxs",
- "preselected": true,
- "content": {
- "nodes": [
- {
- "name": "TEXT_MAIN",
- "type": "TEXT",
- "value": "Pay in 12 installments."
}, - {
- "name": "ACTION_LEARN_MORE",
- "type": "ACTION",
- "label": "Learn more",
}, - {
- "name": "KLARNA_LOGO",
- "type": "IMAGE",
- "alt": "Klarna"
}, - {
- "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.",
}
]
}
]
}
}
], - "funding_source": {
- "funding_source_id": "<ID>",
- "funding_source_type": "CARD",
- "brand": "VISA",
- "expires_at": "05/2025",
- "masked_card_number": "**** 4555"
}
}