GraphQL - Refund Query - Query Refund Shipping Costs - Version 2023-10

Felix_Leds_de
Visitor
1 0 1

Hi,

 

i am querying for some specific fields inside the Refund object via the GraphQL API. I want the information about the Shipping Refunds. In the refund process, we add this price, so we refund the shipping refund money to the customer.

 

I am using the GraphQL API Version 2023-10 and i cannot find the shipping refund price inside the Refund object. Unfortunately the ShippingRefund from the Order object does not contain this information.

 

If i use the latest unstable version of the GraphQL API, i can get this information - it is inside the order_adjustments block - inside the refunds object:

 

"order_adjustments": [
          {
            "id": xxxxxxx,
            "amount": "4.80",
            "amount_set": {
              "shop_money": {
                "amount": "4.80",
                "currency_code": "EUR"
              },
              "presentment_money": {
                "amount": "4.80",
                "currency_code": "EUR"
              }
            },
            "kind": "refund_discrepancy",
            "order_id": xxxxxx,
            "reason": "Refund discrepancy",
            "refund_id": xxxxxxx,
            "tax_amount": "0.00",
            "tax_amount_set": {
              "shop_money": {
                "amount": "0.00",
                "currency_code": "EUR"
              },
              "presentment_money": {
                "amount": "0.00",
                "currency_code": "EUR"
              }
            }
          }
        ],

i am searching for the amountSet value of 4.80 inside the schema 2023-10.

 

Does anyone know how i can retrieve this information with the GraphQL API?

 

Thanks

 

Kind regards,

Felix

Replies 0 (0)