Retrieving Settlements "Information from the gateway" using the rest API

Retrieving Settlements "Information from the gateway" using the rest API

DanProporta
Visitor
1 0 1

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)

 

DanProporta_0-1653323733252.png

 

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

DanProporta_1-1653323873875.png

The transactions returned by the API also don't seem to have the relevant information..

DanProporta_2-1653323926218.png

 

Replies 3 (3)

Jonathan-HA
Shopify Partner
330 25 102

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/

Co-Founder / Developer at Highview Apps
Our Shopify Apps: EZ Exporter | EZ Inventory | EZ Importer | EZ Notify | EZ Fulfill
Jonathan-HA
Shopify Partner
330 25 102

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).

Co-Founder / Developer at Highview Apps
Our Shopify Apps: EZ Exporter | EZ Inventory | EZ Importer | EZ Notify | EZ Fulfill
vicvans20
Shopify Partner
14 1 9

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