During initial setup you'll be guided to add Webhooks for activities. This allows the correct stock to be subtracted when an Agworld activity is created, updated, or deleted.

What is a Webhook?

Simply put, a Webhook is a piece of data that is sent when an event happens. In this case they are sent from Agworld to AgPlugins when an Activity is created, updated or deleted. Webhooks enable part of the two-way communication with Agworld to make AgPlugins Inventory work.

How do I set up Webhooks?

AgPlugins will provide you with 3 URLs for Webhooks. One each for Activity Create, Activity Update, and Activity Delete. These are unique to your company. Treat these URLs as private and do not share them anywhere. You will only have access to see the URLs once during setup.

Activity Create

First, copy the entire URL in AgPlugins for Activity Create.

Then in the User API section in Agworld just below Access Tokens you will see a place to add Webhooks.

Click Add and select the following
Object to monitor: ActivityEvent: CreateURL: (Paste in the URL you copied from AgPlugins)

Click Save.

Activity Update

Go back to AgPlugins and copy the URL for Activity Update

Click back to Agworld and under Webhooks again, click Add and select the following
Object to monitor: ActivityEvent: UpdateURL: (Paste in the URL you copied from AgPlugins)

Click Save.

Activity Delete

Go back to AgPlugins and copy the URL for Activity Update

Click back to Agworld and under Webhooks again, click Add and select the following
Object to monitor: ActivityEvent: DeleteURL: (Paste in the URL you copied from AgPlugins)

Click Save.

After you've added the Activity Delete Webhook, you may proceed through with the rest of the setup process.

Did this answer your question?