Skip to content

Purchase status

/klarna_instant_shopping/purchase_status

Target audience: Developers

1
Release version: 4.4.3

Get the status of a Klarna Instant Shopping purchase

Introduction

This endpoint gets the status of a klarna instant shopping purchase. This information is used to display information to the user on the page where the Klarna Instant Shopping purchase is done.

URI

Environment URI
Stage https://payway-api.stage.adeprimo.se/external/api/v1/klarna_instant_shopping/purchase_session
Production https://backend.worldoftulo.com/external/api/v1/klarna_instant_shopping/purchase_session

Requirements

Identity Scope
No /external/klarna_payments/r

Curl example

1
2
3
4
curl --request GET \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/klarna_instant_shopping/purchase_status?purchase_id=<Purchase id> \
  --header 'authorization: Bearer <token>' \
  --header 'accept: application/json'

Response

The response is sent as application/json.

Example of a successful response:

1
2
3
4
5
{
  "item": {
    "status": "pending|approved|declined"
  }
}

Status Description
pending The purchase process has not yet completed.
approved The purchase process is completed and the was successful
declined The purchase process is completed and was not successful

Errors

This API uses the common error conventions of the Payway API

See common error responses