we have integrated Klarna as payment gateway in our shop. We transfer all order data via REST API to our WMS but are wondering how to identify Klarna orders in the transferred data? Looking at some real Klarna orders we can not find any hint in the JSON files (but we need them to print a big disclaimer on our invoices not to pay to our bank account).
Kurt from KooKoo
Hi @kookoo ,
you can find Klarna information in these fields from the Shopify API JSON response, e.g.
and from the order's transaction data:
"authorization": "this will be the Klarna order id",
"x_account_id": " this will be the Klarna merchant id",
"x_gateway_reference": "this will also be the Klarna order id",
do you also know a possibility to check that an order is paid with Klarna, if it was paid through the shopify_payments gateway?
I tried the endpoints you suggested, buy since I can't find any of the required fields(gateway, x_gateway_reference, payment_gateway_names), I guess that those only work on the "pure" Klarna gateway.
On /admin/api/2020-01/orders/<id>/transactions.json I found the field: transaction.receipt.payment_method_details.type = "klarna", but since this is so deeply nested, I am not sure, if it is reliable information on every order.