Target audience: Developers
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.
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'
The response is sent as application/json.
Example of a successful response:
||Status of the purchase, values described below
||Reason for the purchase being declined, values described below
||Account status, values described below
||The account id either supplied when creating the Klarna instant purchase session, the id of the account identified based on the Klarna data or the id of the account that was created
||The purchase process has not yet completed.
||The purchase process is completed and the was successful
||The purchase process is completed and was not successful
||Campaign purchase rules does not permit the purchase
||There are no campaign rules for the campaign and the campaign is already purchased
||Package or campaign is already active
||Klarna Instant Shopping declined the payment
||An approved purchase will have a empty string in the field decline reason
||A existing account in Payway was identified based on the data received from Klarna
||A account was created based on the data received from Klarna
||A account id was supplied, indicating that the customer was identified prior to initiating the purchase
This API uses the common error conventions of the Payway API
See common error responses