Ordering ~~~~~~~~ Get orderform +++++++++++++ .. http:get:: /fast-events/v1/ordering/form/(string:token) Get the order form for this token. You can use this API to embed the ordering form in you own html-code. Use the `Shortcode tool <../usage/tools.html#shortcodes>`_ to define the tokens and the shortcode. Shortcodes like: ``[fast_events id=2]`` or ``[fast_events group="OPENAIR"]``. **Example request** .. tabs:: .. code-tab:: bash $ curl \ -H "Content-Type: application/json" \ https://exampledomain.com/wp-json/fast-events/v1/ordering/form/vintage .. code-tab:: php **Example response** .. sourcecode:: json { "form": "\t\t
\n\t ......
\n\n\t\t", } The ``form`` field is truncated. It will be empty if the shortcode can't be found. **Example implementation** Below is sample implementation on how to use this REST API call in your own html page. After the *Fast Event* html order form is loaded, the javascript code in ``fe-payment.min.js`` is also loaded. This javascript code is part of the *Fast Events* plugin and can be found in the :guilabel:`assets/js` directory of the plugin. You should copy it to your own site. .. code-block:: html
**Changelog** .. csv-table:: :header: "Version", "Description" :width: 100% :widths: auto "1.3.0", "Introduced." ---- Get orderstatus +++++++++++++++ .. http:get:: /fast-events/v1/ordering/status/(string:id)/(string:uid) Retrieve the HTML-content for this order ``uid`` with ``id`` token using the defined shortcode. Use the `Shortcode tool <../usage/tools.html#shortcodes>`_ to define the tokens and the shortcode. Shortcodes like: ``[fe_download showimage="no" downloadtext="Download your tickets"]`` or ``[fe_personalise cdn]``. **Example request** .. tabs:: .. code-tab:: bash $ curl \ -H "Content-Type: application/json" \ https://exampledomain.com/wp-json/fast-events/v1/ordering/status/STAT3/WzJQDnAvm7yswYzfSGVvro45q0IOScEXmdzzqO0K .. code-tab:: php ", } The ``form`` field is truncated. If the ``uid`` is not found or it doesnt have the right payment status the ``form`` field is empty and the ``success`` field is :guilabel:`false`. **Changelog** .. csv-table:: :header: "Version", "Description" :width: 100% :widths: auto "1.3.0", "Introduced." "3.0.0", "Changed the URL to include the shortcode token id."