{ "opencollection": "1.0.0", "info": { "name": "Klarna HPP Captures Payments API", "version": "1.1" }, "items": [ { "info": { "name": "Payments", "type": "folder" }, "items": [ { "info": { "name": "Create a session", "type": "http" }, "http": { "method": "POST", "url": "https://api.klarna.com/payments/v1/sessions", "body": { "type": "json", "data": "{}" } }, "docs": "Use this API call to create a Klarna Payments session.
When a session is created you will receive the available `payment_method_categories` for the session, a `session_id` and a `client_token`. The `session_id` can be used to read or update the session using the REST API. The `client_token` should be passed to the browser.\nRead more on **[Create a new payment session](https://docs.klarna.com/klarna-payments/integrate-with-klarna-payments/step-1-initiate-a-payment/)**." }, { "info": { "name": "Get details about a session", "type": "http" }, "http": { "method": "GET", "url": "https://api.klarna.com/payments/v1/sessions/:session_id", "params": [ { "name": "session_id", "value": "", "type": "path", "description": "session_id" } ] }, "docs": "Use this API call to get a Klarna Payments session. You can read the Klarna Payments session at any time after it has been created, to get information about it. This will return all data that has been collected during the session.\nRead more on **[Read an existing payment session](https://docs.klarna.com/klarna-payments/other-actions/check-the-details-of-a-payment-session/)**." }, { "info": { "name": "Update a session", "type": "http" }, "http": { "method": "POST", "url": "https://api.klarna.com/payments/v1/sessions/:session_id", "params": [ { "name": "session_id", "value": "", "type": "path", "description": "session_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this API call to update a Klarna Payments session with new details, in case something in the order has changed and the checkout has been reloaded. Including if the consumer adds a new item to the cart or if consumer details are updated.\nRead more on **[Update an existing payment session](https://docs.klarna.com/klarna-payments/other-actions/update-the-cart/)**." }, { "info": { "name": "Cancel an authorization", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.klarna.com/payments/v1/authorizations/:authorizationToken", "params": [ { "name": "authorizationToken", "value": "", "type": "path" } ] }, "docs": "Use this API call to cancel/release an authorization. If the `authorization_token` received during a Klarna Payments wont be used to place an order immediately you could release the authorization.\nRead more on **[Cancel an existing authorization](https://docs.klarna.com/klarna-payments/other-actions/cancel-an-authorization/)**." }, { "info": { "name": "Create an order", "type": "http" }, "http": { "method": "POST", "url": "https://api.klarna.com/payments/v1/authorizations/:authorizationToken/order", "params": [ { "name": "authorizationToken", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this API call to create a new order. Placing an order towards Klarna means that the Klarna Payments session will be closed and that an order will be created in Klarna's system.
When you have received the `authorization_token` for a successful authorization you can place the order. Among the other order details in this request, you include a URL to the confirmation page for the customer.
When the Order has been successfully placed at Klarna, you need to handle it either through the Me" }, { "info": { "name": "Generate a customer token", "type": "http" }, "http": { "method": "POST", "url": "https://api.klarna.com/payments/v1/authorizations/:authorizationToken/customer-token", "params": [ { "name": "authorizationToken", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this API call to create a Klarna Customer Token.
After having obtained an `authorization_token` for a successful authorization, this can be used to create a purchase token instead of placing the order. Creating a Klarna Customer Token results in Klarna storing customer and payment method details.\nRead more on **[Generate a costumer token](https://docs.klarna.com/klarna-payments/in-depth-knowledge/customer-token/)**." } ] } ], "bundled": true }