> ## Documentation Index
> Fetch the complete documentation index at: https://opencals.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Importing appointments

> Move bookings from Acuity, Square, Fresha or a spreadsheet into Opencals with one CSV: customers, appointments, orders and payments, checked before anything is created and revertible afterwards.

If a merchant is moving to Opencals from another booking system, their existing bookings come over through the dashboard import (**Appointments → Import**). It takes one CSV in the Opencals appointment format. Each row becomes an appointment with its customer, order and, if money was taken, a payment.

This page is the format reference. It's useful if you're writing the export script for a client, converting a competitor's export, or building a migration for an agency.

> [!NOTE]
>
> The import is a dashboard feature, not a Storefront API endpoint. Nothing on this page changes the public API or the SDK.

## How an import runs

**1. Upload**

Pick the source system and the timezone of the times in the file, then upload the CSV. The dashboard previews the first rows and rejects unknown columns before uploading. Files go straight to storage, up to 50 MB and 100,000 rows.

**2. Check**

Every row is checked against the store's products, locations, staff, add-ons and existing bookings. Nothing is created yet. Rows with errors are skipped, rows with warnings are imported, and rows already imported before are skipped. All issues can be downloaded as a CSV.

**3. Import**

Valid rows are written in small background batches. The import paces itself so the live booking site isn't slowed down; a 50,000-row file can take around ten minutes. It can be stopped between batches.

**4. Revert, if needed**

**Revert import** removes the appointments, orders and payments the import created, plus the customers it created who have no other bookings. Orders changed after the import (a new payment, a refund, an edit) are kept.

## The file

UTF-8 CSV with a header row. One row is one appointment. Header names are case-insensitive. Any column not listed here is an error, except columns starting with `attr:`.

Download the canonical example from the import page (**Download example CSV**). It uses every column.

```csv theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
external_id,source,start,end,timezone,status,cancel_reason,product,location,staff,attendees,customer_email,customer_first_name,customer_last_name,customer_phone,customer_external_id,add_ons,total,amount_paid,payment_method,paid_at,booked_at,order_ref,internal_note,guests,attr:booking_channel
A-10001,other,2026-03-14 10:00,2026-03-14 11:00,Europe/London,completed,,womens-haircut,soho,maya-chen,1,olivia.harper@example.com,Olivia,Harper,+447700900101,C-501,deep-conditioning:1,78.00,78.00,cash,2026-03-14 11:05,2026-02-28 18:20,,Prefers a quiet chair,,online
A-10002,other,2026-12-05 14:30,2026-12-05 16:00,,scheduled,,balayage,soho,,1,james.okafor@example.com,James,Okafor,+447700900102,,toner:1;deep-conditioning:1,210.00,50.00,bank_transfer,2026-11-20 09:00,2026-11-20 08:55,,£50 deposit,,phone
```

### Columns

| Column | Required | Format | Default |
| - | - | - | - |
| `external_id` | Yes | The booking's id in the source system | |
| `source` | | Lowercase name, e.g. `acuity` | The source picked on upload |
| `start` | Yes | Local time, `YYYY-MM-DD HH:MM` (seconds optional) | |
| `end` | Yes | Same as `start`, after it | |
| `timezone` | | IANA name, e.g. `Europe/London` | The timezone picked on upload (the store's timezone) |
| `status` | | `scheduled`, `pending`, `completed` or `canceled` | `completed` if `end` is in the past, otherwise `scheduled` |
| `cancel_reason` | | Free text, for `canceled` rows | |
| `product` | Yes | Product or variant id or slug | |
| `location` | When the product has several locations | Location id or slug | The product's only location |
| `staff` | When several staff members could take the booking | Staff member id or slug. The slug is the URL handle on the staff member's profile in the dashboard (**Staff**, then open the profile) | |
| `attendees` | | Whole number | `1` |
| `customer_email` | Yes | Email | |
| `customer_first_name` | | Text | |
| `customer_last_name` | | Text | |
| `customer_phone` | | Text | |
| `customer_external_id` | | The customer's id in the source system | |
| `add_ons` | | `slug[:qty[:unit_price]]`, items separated by `;` | Quantity and price from the store's add-on settings |
| `total` | | Decimal with `.`, add-ons included | The store's current prices |
| `amount_paid` | | Decimal, `0` up to `total` | `0` |
| `payment_method` | | `cash` or `bank_transfer` | `cash` |
| `paid_at` | | Local time, like `start` | `booked_at` |
| `booked_at` | | Local time, like `start` | `start` for past bookings, the import time for upcoming ones |
| `order_ref` | | Any text; rows with the same value share one order | One order per row |
| `internal_note` | | Text, visible to the team only | |
| `guests` | | Emails separated by `;` | |
| `attr:<name>` | | Any text, up to 5,000 characters | |

`confirmed` is accepted as `scheduled`, and `cancelled` as `canceled`.

### How values are used

**Customers.** `customer_email` finds an existing customer in the store or creates one. Name, phone and `customer_external_id` are only used when the customer is new; existing customers are never overwritten. Rows sharing an `order_ref` must have the same `customer_email`.

**Times.** `start`, `end`, `paid_at` and `booked_at` are wall-clock times in the row's timezone, converted to UTC on import, so summer time is handled. When `booked_at` is empty, a past booking is dated at its start time and an upcoming one at the moment of the import. `paid_at` defaults to `booked_at`. Past bookings without these columns therefore keep their real dates in order lists and revenue reports. A time that doesn't exist (inside a spring-forward gap) moves forward by the gap. A time that happens twice (fall-back) takes the first one.

**Money.** `total` is what the booking cost, add-ons included, and it wins over the store's current prices. Opencals prices the line with today's catalog first. If `total` is lower, the difference becomes a discount on the line; if it's higher, the base price is raised. The order total always equals `total`, and the check shows a `total_differs_from_catalog` warning so the merchant can see which rows changed. Leave `total` empty to use current prices.

**Payments.** `amount_paid` above `0` creates one recorded payment, cash or bank transfer, dated `paid_at`. The rest stays outstanding on the order. No card is charged and no payment link is sent. The money stays wherever it was collected, so refunds of imported payments are done in the old system.

**Custom attributes.** Every `attr:<name>` column becomes a key on the appointment's [custom attributes](https://opencals.com/docs/changelog/custom-attributes.md), keeping the name exactly as written. Use them for form answers, voucher codes, "rescheduled on" dates, anything worth keeping. Up to 250 per appointment.

## Checks

Errors skip the row. Warnings don't.

| Code | Kind | Meaning |
| - | - | - |
| `required` | Error | A required value is empty |
| `invalid_date`, `invalid_timezone`, `end_before_start` | Error | Time values can't be read, or `end` isn't after `start` |
| `unknown_product`, `unknown_location`, `unknown_staff`, `unknown_add_on` | Error | No match for the id or slug |
| `ambiguous_location`, `ambiguous_staff` | Error | Several could apply; set the column |
| `invalid_add_ons`, `invalid_number`, `invalid_status`, `invalid_payment_method`, `invalid_email`, `invalid_attributes` | Error | A value has the wrong format |
| `amount_paid_exceeds_total` | Error | Paid more than the total |
| `duplicate_in_file` | Error | The same `external_id` appears more than once |
| `order_ref_customer_mismatch` | Error | Rows of one `order_ref` have different customers |
| `unknown_column` | Error | A header isn't in the format |
| `already_imported` | Skipped | This `source` + `external_id` was imported before |
| `add_on_not_assigned`, `add_on_inactive` | Warning | Imported anyway |
| `duration_not_multiple` | Warning | The length isn't a multiple of the product duration |
| `total_differs_from_catalog` | Warning | `total` is kept |
| `overlaps_existing`, `overlaps_in_file` | Warning | Two bookings on the same staff member, or product and location, overlap |
| `overlaps_blocked_slot` | Warning | The booking falls on a blocked slot (day off) |
| `value_too_long` | Error | A value is longer than Opencals stores (the message names the column and limit) |
| `past_scheduled_completed` | Warning | `status` says scheduled but the booking has already started, so it's imported as completed |
| `add_on_quantity_adjusted` | Warning | The add-on quantity was corrected to the booking length or the add-on's maximum |
| `attendees_exceed_capacity` | Warning | More attendees than the product's capacity; overlaps only warn when a session is over capacity |

## What the import doesn't do

* **It sends nothing.** No confirmation or staff emails, no webhooks or Zapier events, no calendar invites, no Shopify orders. Upcoming imported appointments do get the store's normal reminders.
* **It doesn't check availability.** Bookings import as they happened, outside today's hours too. Upcoming ones block the calendar like any booking.
* **It doesn't count toward plan usage.**
* **It isn't available on Shopify stores yet.** Their bookings are tied to Shopify orders.

## Re-imports and blocked slots

Re-uploading a file skips rows whose `source` and `external_id` together were already imported. Use the same **Exported from** value (or `source` column) as the first upload; a different source counts as a different booking, and the row is imported again. With the same source, a corrected file only adds the fixed rows. After a revert, the same rows can be imported again.

Some merchants first copied their old bookings in as blocked slots (**Schedules → Days off → Import blocked slots**) to stop double-booking. After importing the same bookings as appointments, delete those blocked slots, or the time stays blocked twice. The `overlaps_blocked_slot` warning points at them.

## FAQ

> [accordion] Can you convert an Acuity export?
>
> Yes. Send the Acuity "Schedules" export to support and we convert it, including mapping appointment types and add-ons to the store's products and add-ons. For other systems, reshape the export to the columns above.

> [accordion] What if one booking has several customer emails?
>
> Put the main customer in `customer_email` and the others in `guests`, separated by `;`.

> [accordion] Do past bookings show up in analytics and the customer's history?
>
> Yes. They're ordinary appointments and orders, with `completed` status unless the file says otherwise.

> [accordion] How do I tell imported bookings apart?
>
> The appointment page shows "Imported from {source} · #{external_id}" and links to the import. Merchant API responses include `importId`, `importSource` and `importExternalId` on appointments. They're never in Storefront API responses.

> [accordion] What dates do orders and payments get?
>
> `booked_at` becomes the order date and `paid_at` the payment date. When `booked_at` is empty, a past booking is dated at its start time and an upcoming one at the moment of the import. `paid_at` defaults to `booked_at`.

> [accordion] Can two imports run at once?
>
> One per store at a time. Start the next when the current one finishes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.