Chatilo
USDPrices shown in US dollars Sign in Start free trial
Guide

Build a form or page from code

Everything you can build under Pages and forms can be built with the API: a catalogue store, a form or order form, an event with e-tickets, an invitation, an appointment page, a poll or a bill payment page. This guide builds an order form, reads its entries, and shows the two calls used at an event door and for bills.

  1. Create the page #

    Pick a starting point with template and lay your own content over it. Prices are in the currency’s smallest unit, so 149900 is 1,499.00.

    Create an order form
    curl -X POST "https://chatilo.me/api/v1/pages" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "template": "form_order",
        "title": "Festive hamper order form",
        "publish": true,
        "content": {
            "headline": "Order your festive hamper",
            "intro": "Choose your hampers and tell us where to send them.",
            "button": "Place order",
            "items": [
                {
                    "name": "Classic hamper",
                    "price": 149900
                },
                {
                    "name": "Family hamper",
                    "price": 249900
                }
            ],
            "fields": [
                {
                    "label": "Delivery address",
                    "type": "textarea",
                    "required": true
                },
                {
                    "label": "Delivery slot",
                    "type": "select",
                    "required": true,
                    "options": [
                        "Morning",
                        "Evening"
                    ]
                }
            ],
            "style": {
                "font_head": "Playfair Display",
                "c_bg": "#fff7ed"
            }
        }
    }'

    The answer is the page, with its public url. Share that link in a broadcast, a flow or on your website.

  2. Change it later #

    Send only what changes. A list inside content, such as items or fields, replaces the whole list.

    Add an announcement strip
    curl -X PUT "https://chatilo.me/api/v1/pages/7" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "content": {
            "notice": "Order by Friday for weekend delivery"
        }
    }'
  3. Read what people sent #

    List paid entries
    curl "https://chatilo.me/api/v1/pages/7/entries?status=paid" \
      -H "Authorization: Bearer YOUR_API_KEY"

    Each entry has the person, their answers, the items, the amount and, when money is involved, the order_id that carries the payment. Use since to fetch only new ones on a schedule.

What each kind of page takes #

  • Form (form_order, form_enquiry, form_service, form_registration): items and fields.
  • Event (event_tickets, event_workshop, event_eticket): starts, venue, max_per_order and tickets as name, price and limit.
  • Invitation (invite_wedding, invite_birthday, invite_event, invite_housewarming): lead_in, starts, venue, map_url, dress, programme, rsvp_on, max_guests, rsvp_by.
  • Poll (poll_quick, poll_feedback): options, show_results, ask_contact.
  • Bill payments (bill_utility, bill_fees): account_label and mode (lookup or open).
  • Store (store_general, store_clothing, store_menu): categories, ask_address, delivery_note. Products come from Products.
  • Appointments (booking_doctor, booking_salon, booking_service): service_label, staff_label, ask_staff, pay_now. Services and hours come from Bookings.
  • Every kind: headline, intro, notice, button, thanks, about, fields, sections and style (fonts, sizes and colours).

At the door: check a ticket in #

A scanner app reads the QR code or the 8-character code and calls:

Check a ticket in by its code
curl -X POST "https://chatilo.me/api/v1/page-entries/TFKH6NKC/check-in" \
  -H "Authorization: Bearer YOUR_API_KEY"

A second call for the same ticket answers 409 already_checked_in. An unpaid or cancelled ticket answers 409 ticket_not_valid.

Bills from your billing system #

Push each bill to a bill payment page as it is issued. The payer finds it by account number, and it is marked paid when the payment arrives.

Add a bill
curl -X POST "https://chatilo.me/api/v1/pages/9/bills" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: bill-KL-4471-2026-11" \
  -H "Content-Type: application/json" \
  -d '{
    "account_no": "KL-4471",
    "amount": 184500,
    "name": "Logan Menon",
    "period": "November 2026",
    "due_on": "2026-12-15"
}'
List paid bills
curl "https://chatilo.me/api/v1/pages/9/bills?status=paid" \
  -H "Authorization: Bearer YOUR_API_KEY"

Cookies on this site

We use the cookies needed to run the site and keep you signed in. With your OK we also remember choices you make here, such as the currency for prices. We don’t use advertising or tracking cookies. Cookie policy