question

Alan avatar image
Alan asked Alan commented

Recommended method for item tag webhook

I'm pulling a merchant's inventory using the 'tag' method:

  1. Programmatically creating a 'myApp' tag on install
  2. On insert, update, delete event in the webhook for an inventory item with a matching tag id, i'm updating our data accordingly.

I've found there are a few cases that don't trigger the webhook:

  1. Bulk adding the items to the tag from the 'tags' section
  2. Bulk applying the tag from the items editor on the web console

What do Clover recommended we tell our merchants to do?

I'm thinking of a few solutions:

  1. Individually apply our tag to each item (I'd imagine this is cumbersome, and some merchants might think they're smart by trying to bulk apply the tag?)
  2. Tag the items however they wish, but require them to trigger some kind of update manually through our system (Like an 'update inventory' button. I can see this causing issues mainly with mismatched reporting if they forget to update things through our system)
  3. Some sort of scheduled cron etc.

Appreciate any suggestions/tips!

Thanks, Alan

Inventory
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Alan avatar image Alan commented ·

Great, thanks @Sam

0 Likes 0 ·

1 Answer

sam avatar image
sam Deactivated answered

At the moment, the most viable solution would be to do a periodic cron job. We suggest the best time to do this would be 1a-3am PST. If feasible, you could also retrospectively update your system when you receive an unknown item with your tag.

I will also post a feature request for these webhooks but timeline is undetermined.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community