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

# Keeping your data in sync

> Fetch only what changed since your last sync.

Events, orders and tickets have an `updatedAt`. To keep your own copy up to date without fetching
everything each time:

1. Remember the time you start a sync.

2. Fetch the changes since the start of your previous sync, sorted on `updatedAt`:

   ```bash theme={null}
   curl -g "https://api.weticket.io/public/v1/orders?filters[updatedAt][\$gte]=2026-12-01T06:00:00Z&sort=updatedAt:asc&pagination[limit]=100" \
     -H "Authorization: Bearer wt_live_..."
   ```

3. Page through all results and save each item by its `id`, replacing what you had.

4. Store the time from step 1 for the next sync.

Using the start time of the previous sync (not its end) means you never miss a change made while a
sync was running. You may get some items twice; saving by `id` handles that.

## What changes `updatedAt`

| Item | Changes when |
| - | - |
| Event | The event or one of its timeslots changes. |
| Order | The order itself changes, for example its status or the buyer's details. A refund or a change to one of its tickets does not. |
| Ticket | The ticket changes, for example a scan at the door, a cancellation or a new holder. |

Run a full sync now and then, for example once a night, to pick up refunds on older orders.


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