Ordering

Get orderform

GET /fast-events/v1/ordering/form/(string: token)

Get the order form for this token.

Example request

$ curl \
  -H "Content-Type: application/json" \
  https://exampledomain.com/wp-json/fast-events/v1/ordering/form/vintage

Example response

{
    "form": "\t\t<div class=\"fast-events-form-container\">\n\t  ......  <div id=\"fast-events-event-info\"></div>\n\n\t\t",
}

The form field is truncated. It will be empty if the shortcode can’t be found.

Changelog

Version

Description

1.3.0

Introduced.


Get orderstatus

GET /fast-events/v1/ordering/status/(string: uid)

Retrieve the HTML-content for this order uid. The API checks to which event id the order belongs and then looks for a token that starts with ‘status’ supplemented with the event id. So for example ‘status2’.

Example request

$ curl \
  -H "Content-Type: application/json" \
  https://exampledomain.com/wp-json/fast-events/v1//ordering/status/WzJQDnAvm7yswYzfSGVvro45q0IOScEXmdzzqO0K

Example response

{
    "success": true,
    "form": "<img src=  ....  tickets</a>",
}

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 false.

Changelog

Version

Description

1.3.0

Introduced.