Properties missing from Transaction GraphQL

naveensoundar
New Member
1 0 0

Hi.

We have switched from Rest API to GraphQL.

On the Transaction for order the message, payment_details field is missing. We need this to get the payment reference so we can match against the export from our payment gateways.

message, payment_details is included on the Transaction in Rest API, but not in GraphQL.

How can we get this property?

Reply 1 (1)
L_J_K
Shopify Staff
363 54 65

Hey @naveensoundar 

 

Thanks for raising this! Something like the following query would return the receiptJson.

 

 

 

{
  orders(first: 100) {
    edges {
      node {
        transactions {
          receiptJson
        }
      }
    }
  }
}

 

 

 

However, I note that this is currently only available on the GraphQL Admin aPI unstable Endpoint - admin/api/unstable/graphql.json 

 

Message and details like card brand, exp_year, exp_month, cvv_result, last 4 and more) would be returned in the receiptJson object on OrderTransactions on unstable though.

 

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!