improved

Product orderable state now supported in the Product Update webhook

You can now receive programmatic real-time updates to the availability of products, the is_orderable field is now a supported field in the Product Update webhook.

Use cases

  • Updating a local replica or cache of product availability. If you keep a copy of your product catalogue the availability of products could become out of sync. Using the product update webhook you can update this copy in real-time ensuring your customers don't face ordering issues for unavailable products.
  • Getting live quicker with new products and products awaiting approval. The moment a product is ready for you to use the webhook will let you know.
  • Notifying your customers of the availability of products in the Runa network.

Example

The webhook sends you both the previous and the new state of the product so you can take action on what has changed. Note here the product has gone from unorderable to orderable.

{
  "product_code": "PRCODE-GB",
  "old_state": {
    "price_multiplier": "0.9",
    "is_orderable": false
  },
  "new_state": {
    "price_multiplier": "0.8",
    "is_orderable": true
  },
  "timestamp": "2024-04-10T17:11:26.601254"
}

Check the Product Update webhook reference for full details.

Getting started with webhooks

If you're not already using webhooks to receive real-time updates from Runa about the product catalogue or the state of orders you can read about getting started here.