View as Markdown

Demo Funnel

Category: Public Base URL: /demo-funnel Authentication: Mixed Routes: 4 routes documented

Overview#

This section documents 4 API routes for demo funnel.

Quick Reference#

Method Endpoint Description
GET /demo-funnel GET /demo-funnel Redirect to the checkout page to create a c...
GET /demo-funnel/:page GET /demo-funnel/:page Serve the Flow Builder demo HTML for ...
GET /demo-funnel/app.js GET /demo-funnel/app.js Serve the Flow Builder demo JavaScri...
GET /demo-funnel/styles.css GET /demo-funnel/styles.css Serve the Flow Builder demo CSS ...

GET Demo-funnel#

Endpoint: GET /demo-funnel Authentication: Public (Optional)

Description#

GET /demo-funnel Redirect to the checkout page to create a cart first

Response#

The handler does not return an object literal, so the response shape is not derivable from the source.

Example Request#

curl -X GET 'https://your-store.omnicart.cc/demo-funnel' \
  -H 'Content-Type: application/json'

GET Demo-funnel :page#

Endpoint: GET /demo-funnel/:page Authentication: Public (Optional)

Description#

GET /demo-funnel/:page Serve the Flow Builder demo HTML for a specific page e.g., /demo-funnel/entry, /demo-funnel/upsell1, etc.

URL Parameters#

Parameter Type Required Description
page string Yes Page identifier

Response#

Error (404):

{
  error,
  validPages,
}

Error (404):

{
  error,
  path,
}

Example Request#

curl -X GET 'https://your-store.omnicart.cc/demo-funnel/:page' \
  -H 'Content-Type: application/json'

GET Demo-funnel App.js#

Endpoint: GET /demo-funnel/app.js Authentication: Public (Optional)

Description#

GET /demo-funnel/app.js Serve the Flow Builder demo JavaScript file

Response#

Error (404):

{
  error,
  path,
}

Example Request#

curl -X GET 'https://your-store.omnicart.cc/demo-funnel/app.js' \
  -H 'Content-Type: application/json'

GET Demo-funnel Styles.css#

Endpoint: GET /demo-funnel/styles.css Authentication: Public (Optional)

Description#

GET /demo-funnel/styles.css Serve the Flow Builder demo CSS file

Response#

Error (404):

{
  error,
  path,
}

Example Request#

curl -X GET 'https://your-store.omnicart.cc/demo-funnel/styles.css' \
  -H 'Content-Type: application/json'