HomeDocDocumentation QuoteFlowAPI Reference

API Reference

API Reference

Estimated reading: 1 minute 9 views

API Examples

Request/response examples for the main endpoints.

Create a calculator

POST /api/calculatorsapplication/json
// Body
{ "name": "T-Shirt Print Calculator", "status": "draft" }

// Response 201
{
  "id":        "clx1234abcd",
  "shop":      "myshop.myshopify.com",
  "name":      "T-Shirt Print Calculator",
  "status":    "draft",
  "createdAt": "2026-04-30T10:00:00Z"
}

Live formula preview

POST /api/formula/previewapplication/json
// Body
{
  "expression": "quantity * price_per_unit + setup_fee",
  "testValues": { "quantity": 100, "price_per_unit": 2.5, "setup_fee": 25 }
}

// Response 200
{ "result": 275, "valid": true }

Storefront quote submission

POST /submitmultipart/form-data — Public (App Proxy)
// Form fields
shop           = "myshop.myshopify.com"
calculator_id  = "clx1234abcd"
customer_email = "john@example.com"
values         = '{"quantity":100,"material":"cotton"}'
final_price    = "275"
file_upload_0  = [Binary File]

// Response 200
{ "success": true, "reference": "QF-1746000000" }

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this Doc

API Reference

Or copy link

CONTENTS