Notification information

PluggTo sends notifications to your app or plugin to you easy know when a product or orders was created or modified on PluggTo

Notifications are send as POST with a Json message to an URL previusly register in PluggTo in the moment that you have created your Application or Plugin

You going to receive in the menssage the user_id of the resource owner, the resource type (products or orders), the resource id that has changed and the action ("created","updated","messages" or "deleted")

The post will be send in the following format:

{"type":"products","id":"60a66dfbe3f2ab416d669e38","action":"created","user":129,"changes":{"status":false,"stock":true,"price":true}}

typesaction
productscreated
updated
skusdeleted
orderscreated
updated
messagescreated
updated
invoicescreated

Example notifications

Product creation notification:

{"type":"products","id":"60a66dfbe3f2ab416d669e38","action":"created","user":129,"changes":{"status":false,"stock":true,"price":true}}

Stock change notification:

{"type":"products","id":"606a7d2de2dc666bac3206b5","action":"updated","user":129,"changes":{"status":false,"stock":true,"price":false}}

Price change notification:

{"type":"products","id":"606a7d2de2dc666bac3206b5","action":"updated","user":129,"changes":{"status":false,"stock":false,"price":true}}

Order creation notification:

{"type":"orders","id":"606a7d2de2dc666bac3206b5","action":"created","user":129,"changes":{"status":true,"stock":false,"price":false}}

Order updated notification:

{"type":"orders","id":"606a7d2de2dc666bac3206b5","action":"updated","user":129,"changes":{"status":true,"stock":false,"price":false}}

Product deletion notification:

{"type":"skus","id":"parent-6385","action":"deleted","user":129,"changes":{"status":false,"stock":true,"price":true}}

Important:

PluggTo expecteds a 200 code return, to kwnow that your application has received the menssage, if PluggTo do not receive the 200 code, the menssage will to a retry queue

Retry intervals:

  • 5 minutes
  • 15 minutes
  • 1 hour
  • 2 hours
  • 3 hours
  • 12 hours
  • 24 hours
  • 2 days (then if yeat do not get yet 200 code, the notification will be discarded