A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We have recently integrated Klarna payments into our store..
We load orders and payments into our Accounts system using the API..
Klarna put a useful field for linking the payments to the orders in the "Information from the gateway" section of the orders Payment processed on Klarna event. (See screenshot)
Is there a way of using the REST API to pull this "Information from the gateway" data?
The Events returned by the API don't seem to have it
The transactions returned by the API also don't seem to have the relevant information..
Hey there @DanProporta ,
I was just helping out a customer with this recently. This is available in the Order Transaction REST API under the receipt > payment_id field.
More info here with screenshots: https://www.highviewapps.com/kb/how-do-i-export-the-payment-id-from-the-shopify-order-data/
Also, just a heads up, the screenshot you posted showing the output from the Transaction API seems to be for a different order (the timestamp doesn't match the first screenshot).
Thanks you so much! This helped me greatly, I searched everywhere for this value, a heads up, this value is currently on "receiptJson"attribute of transactions on GraphQL API
https://shopify.dev/api/admin-graphql/2022-04/objects/OrderTransaction