Remove Fraud Holds

Hello,

Is it possible to remove Fraud Holds via api?

Any guidance or help would be greatly appreciated.

Hi @cm_ds
Welcome to our developer community!

You can update that value using the order_update_holds mutation which will allow you to remove or add any kind of hold, for example, in this case:

mutation {
  order_update_holds(data: { order_id: "168356347", fraud_hold: false }) {
    request_id
    complexity
    order {
      holds {
        fraud_hold
      }
    }
  }
}

Let me know if this is not what you were looking for.
Thanks in advance!
Tom

Thanks for your fast response. I see the query is with Order ID. Is there a way we can use Order Numbers?

On another note, my account already has a web hook created for order update, can I trigger more than 1 link or how can I achieve triggering more than one link since it appears I can only create one for the same purpose.

Thanks

For this query, only order_id will work, but you can get that ID from doing:

query {
  orders(order_number:"MO264") {
    request_id
    complexity
    data(first: 1) {
      edges {
        node {
          id
          legacy_id
          order_number
        }
      }
    }
  }
}

And as for the Webhook, we only allow one webhook of each type for an account. I can log a Feature Request for this, so we can evaluate adding more than one webhook type for each account.
Let me know if that would work for you.
Thanks again!
Tom

For anyone looking to add an hold on an order, here’s an example:

mutation { order_update_holds(data: { order_id: "x1x1x1x1x1x1x1x1", address_hold: true }) { request_id complexity order { holds { address_hold } } } }
1 Like