Developer

Orders need a server key, and handoff webhooks follow live chats

Orders for revenue attribution now need a key only your server holds, a key limited to one website writes only there, and the handoff webhooks cover live chats and ratings.

These changes to the API make keys safer and handoffs easier to follow from your own systems.

  • Orders need a server key. POST /attribution/ingest now accepts only a key your server holds: a Storefront widget key marked Used by a store connector or another server and limited to your servers’ IP addresses. The key in your web pages gets 403 server_key_required, because anyone can read it and could report made-up orders. Keys made by Connect to Ottla in the Magento module are not affected. A store connected by hand needs its key marked in the same way, and the module keeps its orders until it is.
  • A key limited to one website writes only there. On the ingestion endpoints, such a key that names another website, or a store view of another website, gets 403 website_not_allowed and nothing is written. Leave website_id out, or name the key’s own website.
  • Handoff webhooks. The escalation.* events go only to the webhook selected under Webhook handoff in Support settings. escalation.resolved now also fires when your team closes a live chat in the Support inbox, or when one closes after the shopper left (status is then abandoned). The new escalation.rated carries the shopper’s rating, which arrives after the close.
  • Live chat limits. The escalation_message group now counts each conversation on its own, so many chats at once no longer use up one allowance.
  • Smaller fixes. A widget on a headless storefront can load its settings and chat history from the browser. Browser code can read X-Ottla-Request-Id. A 503 feature_disabled names assistant or ingestion in feature. Starter questions, handoffs and the chat list use the key’s own website.

More changes

Developer changelog
  1. Developer

    Platform contract 10: reviews, FAQ and product page tools

    The Ottla platform has incremented its version (“contract”) to 10, required by the Magento module for FAQ page integration, product page tools and review display. Additional webhook events are introduced for reviews, questions and product page content suggestions.

  2. Developer

    Developer documentation rebuilt

    Reference pages for all public endpoints and webhook events. Code snippets for curl, PHP and Node.js. Webhook verification for Node.js and PHP that we have tested.