Perhaps this is a documentation thing, but I was a little confused in trying to set the API version for webhooks created using this library. The code below works for creating webhooks. In the Shopify rest reference params for webhooks POST create are "api_version" versus the params that shopify-api-node expects are the body of the webhook to be created not the params for the Shopify rest endpoint. This being said, wasn't sure how to set the API version for the webhooks I was creating. Figured it might use the version of the Shopify instance being created, but it actually seems to default to 2021-10.
Perhaps this is a documentation thing, but I was a little confused in trying to set the API version for webhooks created using this library. The code below works for creating webhooks. In the Shopify rest reference params for webhooks POST create are "api_version" versus the params that shopify-api-node expects are the body of the webhook to be created not the params for the Shopify rest endpoint. This being said, wasn't sure how to set the API version for the webhooks I was creating. Figured it might use the version of the Shopify instance being created, but it actually seems to default to 2021-10.