# JavaScript API

{% hint style="info" %}
The documentation below describes the API as of version 9.x of the script.&#x20;
{% endhint %}

## Documentation

* [Functions](https://developers.discountninja.io/discount-ninja-developer-hub/storefront-api/promotion-engine/javascript-api/functions): documents all properties and functions available in the public API
* [Events](https://developers.discountninja.io/discount-ninja-developer-hub/storefront-api/promotion-engine/javascript-api/events): documents the events published and subscribed to by the Price Rule Engine
* [Objects](https://developers.discountninja.io/discount-ninja-developer-hub/storefront-api/promotion-engine/javascript-api/objects): documents the objects returned by the functions and properties
