We are unable to create Inventory Webhooks, the API returns a code 22 unexpected error with no more info.
Here’s a response we’ve received
{
"errors": [
{
"message": "Unexpected Error",
"operation": "webhook_create",
"field": "webhook_create",
"request_id": "62d46b2e7d8eba8177507cd1",
"code": 22
}
],
"data": {
"webhook_create": null
}
}
Here’s an example request
mutation{
webhook_create(data: {
customer_account_id: "customeruuid",
name: "Inventory Update", url: "https://link.to/our/endpoint"}){
request_id
complexity
webhook{
account_id
id
shared_signature_secret
shop_name
source
url
}
}
}