GraphQL query argument confusion

Highlighted
New Member
3 0 0

Hello -

 

I am trying to pull in all partially refunded orders via the GraphQL platform. In my query, I am using the query argument to filter for financial_status: "PARTIALLY_REFUNDED" but it looks as the filter is not working properly as I return orders that are in "PAID" status.

 

query {
  orders(query: "financial_status:\"PARTIALLY_REFUNDED\"",first:1) {
    edges {
      node {
        displayFinancialStatus
        refunds {
          id
          legacyResourceId
          refundLineItems {
            edges {
              node {
                quantity
              }
            }
          }
        }
      }
    }
  }
}

The response I get back is...

{
  "data": {
    "orders": {
      "edges": [
        {
          "node": {
            "displayFinancialStatus": "PAID",
            "refunds": []
          }
        }
      ]
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 6,
      "actualQueryCost": 4,
      "throttleStatus": {
        "maximumAvailable": 2000,
        "currentlyAvailable": 1996,
        "restoreRate": 100
      }
    }
  }
}

Is there an issue with how I am using the query argument? Also, are there any resources on how to use the query argument properly?

 

Thanks,

-rubix3

0 Likes