Developer Reference

API Payload Reference

Developer-friendly API payload reference for COLORJET website forms and Odoo integration.

API Reference

Website Lead Payload Structure

Use this structure when connecting PHP forms to Odoo, CRM, Google Sheet or another backend.

JSON Payload

{
  "source": "colorjetbd.com",
  "form_type": "quote_request",
  "customer_name": "Customer Name",
  "phone": "01XXXXXXXXX",
  "email": "customer@example.com",
  "business_type": "Signage / Textile / Garment / Print Shop",
  "interested_product": "PRINTDOT 1.9M Eco Solvent Printer",
  "category": "Eco Solvent Printers",
  "location": "Dhaka, Bangladesh",
  "message": "Customer requirement details",
  "lead_priority": "Hot / Warm / Cold",
  "utm_source": "facebook",
  "utm_medium": "paid_social",
  "utm_campaign": "eco_solvent_printer_leads"
}

PHP Middleware Example

<?php
$payload = [
  "source" => "colorjetbd.com",
  "form_type" => $_POST["form_type"] ?? "website_lead",
  "customer_name" => $_POST["name"] ?? "",
  "phone" => $_POST["phone"] ?? "",
  "email" => $_POST["email"] ?? "",
  "interested_product" => $_POST["product"] ?? "",
  "message" => $_POST["message"] ?? "",
  "created_at" => date("c")
];
echo json_encode(["status" => "ready", "payload" => $payload]);
?>
WhatsApp Smart Inquiryস্মার্ট ইনকোয়ারি