Get the `OrderRisks` full data using `GraphQL` (not REST API)

Airbyte
Shopify Partner
6 0 2

Hello, Shopify Team. 

I would like to have more information on how to get the same data that `REST` implementation of `Order Risks` provide

 

 

 

```json
{
    "risk": {
        "order_id": <order_id>,
        "cause_cancel": false,
        "message": "After further review, this is a legitimate order",
        "recommendation": "accept",
        "score": "0.0",
        "source": "External",
        "id": <risk_id>,
        "checkout_id": null,
        "display": true,
        "merchant_message": "After further review, this is a legitimate order"
       }
}
```

 

 


Based on the GraphQL docs the `OrderRisk` object doesn't have the fields I need, providing only:

 

 

```json
{
   "display": ...,
   "level": ...,
   "message": ....,
}
```

 

 


How to fetch the rest of the missing fields using GraphQL?
Thank you.

Replies 5 (5)

Liam
Shopify Staff
2700 289 739

Hi Airbyte,

 

Thanks for flagging this inconsistency between the different APIs for this method. I don't believe the missing fields are currently available in GQL but I'll connect with the product team to confirm, and add a feature request to expose the missing fields to the GraphQL resource.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Airbyte
Shopify Partner
6 0 2

@Liam Thank you for the quick reaction, I appreciate it.

Airbyte
Shopify Partner
6 0 2

Any updates so far? @Liam 

Liam
Shopify Staff
2700 289 739

Not yet unfortunately - but I've connected with this team again.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Airbyte
Shopify Partner
6 0 2

Hey, @Liam are there any movements towards success to the upvoted question?