Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • “name”: The name of the webhook. It’s always best to try to come up with a self-explanatory name.

  • “callback_url“: The URL Jasper PIM will request in order to delivery the webhook payload, usually an endpoint in an API under your control.

  • “entity_type“: The entity you want to watch. (product, category, brand, concrete_entity)

  • “include_entity_data”: true or false, whether the webhook payload will contain the product data or not.

  • “headers“: a JSON in the format of {“header“: “value”} that you want Jasper’s webhooks to send alongside the payload when calling the “callback_url”.

  • “retry_policy“: If the callback url responds with an error, what is the policy to retry. Can be one of the following

    • “no_retry”: We will not retry at all.

    • “linear”: Each retry will be executed after a set amount of time.

    • “exponential”: Each retry will take longer to be executed than the last failed one.

  • “minimum_retry_interval”: How many seconds to wait between each webhook retry.

  • “retry_limit”: How many times should Jasper PIM retry a failed webhook.

...

Code Block
{
  "name": "Product Updates Webhook",
  "callback_url": "https://myapi.com/callbacks/products",
  "entity_type": "product",
  "include_entity_data": true,
  "headers": {
    "My-Custom-Header": "abc123"
  },
  "retry_policy": "linear",
  "minimum_retry_interval": 300,
  "retry_limit": 5
}

...