Your trip as a file: three exports, and one xplit reads back
A trip ends, the money changes hands, and then a quiet worry sets in: where does all of that live now? In someone's account, in an app, behind a login. For a weekend with friends that is usually fine. For the trip you organised for twelve people, or the one your accountant wants to see, it is not quite enough.
So xplit has had export for a while, and from this week it has three kinds, one of which it can read back.
The web page, for reading
Export sits beside the delete button of a trip or an activity. The first format is a single web page: the boxes from the top of the trip, then the participants with what each paid and where they stand, the activities with their transactions, and who owes whom, the way you had it set, individually or by group.
It is one file with nothing loaded from elsewhere. No scripts, no fonts, no images from our server, so it opens in any browser, now or in a decade, and it prints well. Each section folds by a click on its heading, which is the browser's own doing, not ours. Send it to the group and nobody has to take your word for the numbers.
The plain text, for pasting
The second format is the same information as text, for a message or an email. Less pretty, more portable. Someone on a flaky connection with an old phone can still read who owes whom.
The xplit data file, for xplit
The third is new, and different in kind. The first two are for people: they have names and sums. The data file is for the app: it has the rows. Every person, every activity, who took part in each and with what share, every transaction with who paid it, the transactions you have not placed yet, and the groups. It is JSON, readable, and documented field by field.
What it is for:
- Moving a trip to another account. Export on one, import on the other. The file remembers which of your friends each person was, and the import finds them again on the new account where it can, by their xplit account, by email, or failing that by name. One person can be marked as you.
- A backup that is yours. It needs nothing from us to open. If you only ever use it for that, it has earned its place.
- Making a trip from somewhere else. Only the amounts are required. A dozen lines written by hand, or a script that turns a spreadsheet into a file, gives you a trip with all the maths done. The smallest file that works is nine lines.
- Merging two people's records. Someone kept their own list of what they paid? Have them export their activity and import it into the trip. The dialog matches their names to the trip's participants and adds whoever is missing.
The import is careful on purpose. A file is read whole before anything is shown, and if anything is wrong, a payer who is nobody, a date that is not a date, an amount written as text, every reason is listed by its field and nothing is imported. A good file shows the people in it with the match found for each, and you can look that over and change it. Then it is one step: one save, one undo if you change your mind.
Clone, which is the same thing in one go
Beside Export there is now Clone. It copies a trip or an activity under a new name, as if you had exported it and imported it back: the same participants linked to the same friends, the activities, the transactions, the groups. The use we had in mind is the annual trip with the same people, where last year's list of names is most of the setup.
What it does not do
The data file is not a spreadsheet format. There is no CSV export, and the reason is that a trip is not a table: it is activities with participants with shares, and flattening that loses the part that matters. If you need rows for a spreadsheet, the plain text export pastes into one well enough, and the JSON is easy for a script to turn into whatever columns you want.
Since then
Two things have joined these. The web app saves a trip or an activity as a PDF too: pages to send or print, with its sections as bookmarks. And the iPhone app reads and writes the same data file. Export and Clone are in the ⋯ menu of a trip or an outing. Settings, in both apps, has Import data and Export all data, which puts every trip and outing in one file. Whatever one app saves, the other opens, the file of all your data included.
If you write a file by hand and the app refuses it, the message names the field. If the message is wrong, or the documentation is, we would like to hear about it.