Error alert messages (emails, or other)

Hi there. I am running a few tests before launching the implementation of graphql API. I have a question regarding errors, which sometimes occur when creating orders via API. is there any way to set up an alert when something doesn’t work? or is that something we need to take care of on our end using the error response?

Hi @Csraspini!
We donàe have alerts for that, but the error message should be something that will guide you to what might be failing.
For example:

{
  "errors": [
    {
      "message": "Product with sku `12258196226120` does not exist",
      "operation": "order_create",
      "field": "order_create",
      "request_id": "6005c713bde9639e39cf1993",
      "code": 5
    }
  ],
  "data": {
    "order_create": null
  }
}

And then you could do something based on that error message. But it is something that you will need to take care of

Please let me know if there is anything else we could help you with.
Thanks!
Tom

All clear! thank you

1 Like