Attempting to make a refund, getting a gateway/parent_id error

Good day,

I am attempting to make an API call to log refunds in Shopify. I am using a 3rd party tool named Celigo and am creating a custom flow with them that will automatically sync refunds from our backend to our front end store on Shopify. However, I cannot successfully make the call.

My latest request body is:

{
  "refund": {
    
    "order_id": {{record.custbody_celigo_etail_order_id}},
    
    "note": "{{record.custbody_order_notes}}",

    
    "transactions": [
      {
        "gateway": null,
        "parent_id": null,
        "amount": "{{record.total}}",
        "currency": "USD"
      }
    ]
  }
}

The error I am getting is: ““body”:”{"errors":{"transactions":["require a kind","not on ‘store-credit’, ‘exchange-credit’, or ‘cash’ gateways require a parent_id","require a gateway"]}}“}” These refunds have no parent ID in our backend, the only parameters we want to send to Shopify are the order ID, notes, and amount. But trying to do those we get an error saying we need a parent ID.

Any help would be appreciated!