This product, Klarna Payments (kpm) is deprecated. Go to the current version

Python SDK

Download and use a SDK for simple integration with our API.


  • API credentials
  • Python
    • >= 2.7
    • >= 3.1


The recommended way to install is using pip.

    pip install Klarna_API

If you do not have pip you can download the package from here. Then run

    python install


PYTHON-API ========== v3.1.0 ---------------- Date: 2015-05-25 Story (#2136) (Matthias F.) - Added extend_expiry_date method v3.0.1 ---------------- Date: 2015-01-19 Bug (#2017) (David K.) - Fix loading of custom pclass storage modules v3.0.0 ---------------- Date: 2014-07-09 Story (#1683) (Joakim L.) - Remove update_notes and reserve_OCR_email functions v2.5.0 --------------- Date: 2014-03-25 Story (#1530) (Christer G.) - Remove Candice from Python Library v2.4.1 --------------- Date: 2013-09-03 Story (#891) (Rickard D.) - Update lowest_monthly_payment_for_account Story (#675) (Majid G.) - Add goods list to credit calls for restocking fees and 0 amount for reserve_amount Story (#676) (Majid G.) - Change BETA host from beta-test to testdrive v2.3.1 --------------- Date: 2013-01-08 Rickard D. <> examples/activate_reservation : Removed ClientIP from example file v2.3.0 --------------- Date: 2012-12-04 Rickard D. <> (change_reservation) : Allow negative amount to be used. (check_email) : (city) : Removed validation of input. (activate_reservation) : Always send in as client IP address. (return_amount) : Added possibility to send in a description to replace the default "Discount" text on a customers invoice. (activate) : new function Added activate function to allow a reservation to be activated with a minimum of information. (update) : new function Added update function to allow a reservation to be updated with a minimum of information. v2.2.0 --------------- Date: 2012-03-16 * change candice url * make fetch_pclasses fetch for the configured country * move towards a pep8 compliant code style * change type of minamount to float * extension module loader modules are installed by calling the install function found in klarna.kex this will extend the API class with additional methods * use unicode internally and convert to iso-8859-1 before sending to make python2 and 3 differences workarounds easier to manage v2.1.0 ---------------- Date: 2011-08-05 * switch to sha512 hash * refactor pclass storage. * add country convenience methods * implement ILT tests API * change clientvsn syntax v2.0.0 ---------------- Date: 2011-06-28 First release