help needed with Orders Graph QL query filtering all PayPal and Stripe transactions

New Member
1 0 0

Hi,

 

I'm trying to filter all transactions with gateway type Stripe or Paypal. I tried many different variations e.g. like

orders(first: 50, query:"gateway:'stripe'"){.....} 

but didn't succeed. Also couldn't find any doc with all valid query types.

 

Here's my graph ql code:

{
  orders(first: 50){
    pageInfo {
        hasNextPage
        hasPreviousPage
    }
    edges {
      node {
        name
        customer{
          displayName
        }
        transactions {
          status
          createdAt
          amountSet{
            shopMoney{
              amount
              currencyCode
            }
          }
          gateway
          authorizationCode
        }
      
      }
      cursor
    }
  }
}

Can anybody help?

Thanks

Zin

0 Likes
Highlighted
Community Manager
Community Manager
618 45 80

Hi @zinyos,

 

The query param on orders does not currently allow you to filter by gateway. There's also no support for query filters on the transaction object currently.

 

I can see how this would be beneficial, so I've brought it up with the appropriate team. In the meantime you'll need to filter the results on your end.

 

Cheers,

0 Likes