---
title: Moving and canceling visits
summary: A visit is confirmed, moved, canceled with a reason, closed or deleted as a whole. A move is all or nothing, a cancellation keeps the visit in the client's history, and deleting asks twice.
tools: [talemo_confirm_visit, talemo_move_visit, talemo_cancel_visit, talemo_complete_visit, talemo_update_visit, talemo_delete_visit]
related: [visits, finding-times, visit-notices, resource-schedule]
search: [reschedule, cancel appointment, no-show]
---

# Moving and canceling visits

Every change of a visit takes `dry_run` in the tools: the answer is the visit as it
would be, and nothing is saved. A change always applies to the whole visit.

## Confirm

**Confirm** turns a booked visit into a confirmed one. Confirming it again gives the
same result. It is a person's mark; it sends nothing to the client (see
[Visit notices](visit-notices.md)).

## Move

**Move** takes the visit to another start, and optionally to other resources, for
example another master. Everything the visit takes moves together. The new time goes
through the same checks as a booking: on the booking step, in the future, inside open
time and free. The master stays, and the table and the couch stay while they are free at the new time; taken ones are replaced by the finder by the same rule as a booking.

A move is all or nothing. If anything is taken meanwhile, the visit stays where it
was. A canceled visit and a visit that took place cannot be moved. Talemo writes the client a move
message with the new time and the time the visit stood at, when it has where to write, and the reminder is recalculated
for the new time. The answer of the move says at once whether the client gets the message and why not; when not, the
person tells the client the new time themselves (see [Visit notices](visit-notices.md)).

A visit whose time has passed while it is still booked or confirmed is unclosed: nothing
is ahead of it, it may have taken place, and a move would take it out of the past. The
assistant and a program do not move it on their own: they say that nothing is ahead, name
the visit with its date and ask whether it took place, the client did not come, or it is
to be moved, and move it only after the person said to. A person at the screen moves it
by hand.

When the client has more than one visit ahead, the assistant and a program move one only
after the person singled it out, by its day, month, time, service or master, as the nearest
or the last, or as the one booked a moment ago in the conversation; when nothing tells the
visits apart, as with two visits in December to the same master, they name each visit with
its date and time and ask which one.

## Cancel with a reason

**Cancel with a reason** asks for a reason:

- **Client asked**;
- **Master can't** (the word follows the industry: specialist, trainer, artist,
  teacher);
- **Didn't come**;
- **Other**.

The time is freed at once for every resource the visit took, and the visit stays in
the client's history as canceled. The reason is seen by the team only. A client
who simply did not come is recorded as a cancellation with the reason Didn't come;
there is no separate status for it. Canceling again gives the same result, and a canceled visit
cannot be confirmed or moved. A visit that took place cannot be canceled.

Talemo itself writes "booking canceled" to the client, unless the person says not to.
In the **Cancel with a reason** window the box **Message the client about the
cancellation** is checked, and the person clears it if they will tell the client
themselves. For **Didn't come**, and for a visit whose time has passed, there is no box
and nothing is written. If Talemo cannot write to the client anyway — the client
replied STOP, the card says not to write, or the card has no WhatsApp number or
Instagram account the client wrote from — the window says so instead of the box and
asks to tell the client yourself. How the message goes and what it says is in
[Visit notices](visit-notices.md).

The online admin can ask to cancel a visit, for the client of its chat only. A person of
the business decides it in Waiting for you; the client is told that the business will
confirm.

## Close, change the price

**Close the visit** and **Change the price** are described in
[Visits](visits.md). Both stay available after the visit took place.

## Delete

**Delete the visit** removes it for good. It asks twice, and the second question
says what disappears: the visit leaves the grid and the client's card, the time is
freed, and the takings of the day become smaller. The log keeps who deleted it,
when, and what the visit was. If the details were wrong, **Change the visit** is
better, and a client who did not come is better canceled.

## Who can do it

Confirming and changing prices is one right, moving another, canceling another,
recording a fact another, and deleting another, all at branch level and all possible
to limit to own. The Administrator role has them.

## Tools and refusals

- Every tool below takes `dry_run`: the answer is the visit as it would be, and nothing is saved. A change always applies to the whole visit.
- `party_live_visits` is in every visit of the answers of `talemo_list_visits`, `talemo_get_visit` and `talemo_get_calendar`: how many live visits — booked or confirmed, not yet ended — its contact has, this one included. When it is above 1 and the person named the contact but did not say which visit — its day, time or service, or the nearest or the last one — read the contact's visits with `party_id` and `live`, name each with its date and time and ask which one; do not pick one for them. `live` is by status, not by time: a visit that has ended and is still booked or confirmed comes with `live` too, has `unclosed` true and is not a visit ahead; the next or upcoming visit of a contact is one that has not ended. When `party_live_visits` is 0, nothing is ahead: say so, name the unclosed visit apart with its date and ask what to do with it — it took place, the client did not come, or it is to be moved.
- `talemo_confirm_visit` marks that a person confirmed a booked visit. Confirming again returns it as it is; a canceled visit is refused with status 409, code `visit.cancelled`, and one that took place with `visit.done`.
- `talemo_move_visit` takes `start` and optionally `resource_ids` and `extend_schedule`: all the time moves or none of it. Another visit in the way is status 409, code `slot.overlap` with `params.resource_id`; time outside the open time is `visit.outside_schedule`, unless `extend_schedule` opens it; the past is `visit.past`; a visit that took place or was canceled is `visit.done` or `visit.cancelled`. Find the new time with `talemo_find_times` first, passing `visit_id`. `extend_schedule` works as in booking (see [Visits](visits.md)): when the person says yes, it opens exactly the time of the visit in the day of a named resource, or of one the visit already stands on, and moves in the same step. The answer lists what was opened in `opened`, and `asks` holds `opens_time` and, when Talemo writes to the client at once about the new time, `client_message`. `client_hears` of the answer says whether Talemo writes to the client about the move now and, when it does not, why: say the client gets a message only for an entry that goes, and otherwise name the reason and say that the person tells the client the new time themselves. The assistant of a person in the mode **Ask what matters** moves on its own while `asks` is empty and otherwise shows a card and waits for **Allow**. A visit whose time has ended and that is still booked or confirmed is unclosed, not ahead: `move_past_visit` true says the person asked to move it, and the assistant and a program pass it only after the person said so; without it such a visit is refused with status 400, code `request.body_invalid` and `params.field` `move_past_visit`, and `dry_run` is refused the same. A visit that has not ended never needs it, and a person at the screen is not asked. When the contact has more than one visit ahead, `visit_singled_out` true says the person singled out this visit, and the assistant and a program pass it only after that; without it the move is refused with status 400, code `request.body_invalid` and `params.field` `visit_singled_out`, and `dry_run` is refused the same. A contact with one visit ahead is never asked, and neither is a person at the screen.
- `talemo_cancel_visit` takes a `reason` and `tell_client`; the time is free again. `tell_client` says whether Talemo writes to the client that the visit is canceled: it is required from a person, the assistant and a program: pass `true` unless the person said not to write to the client or that they will tell the client themselves; a call without it is refused with status 400, code `request.body_invalid` and `params.field` `tell_client`. With `no_show` it can only be `false`, and for a visit whose time has passed nothing is written either way. The online admin does not choose it: Talemo tells the client after its turn, unless the online admin said so itself. For the others `client_hears` of the answer says whether the cancellation goes to the client now and, when it does not, why: name the reason and say that the person tells the client themselves. A client who did not come is canceled with `no_show`. A canceled visit comes back as it is; one that took place is refused with status 409, code `visit.done`.
- `talemo_complete_visit` records that a visit took place: when it really was, who did it, the services and prices. What is left out stays as booked. The real time is the master's, and a place and a device keep the time they were booked for. The record replaces the plan, and a done visit is corrected the same way. It ends no later than now, or it is refused with `visit.future`; time outside the open time is `visit.outside_schedule` unless `extend_schedule` opens it; a canceled visit is `visit.cancelled`.
- `talemo_update_visit` changes the prices of the services of a visit, booked or done: all of them in order, `null` for no price. The price list does not change.
- `talemo_delete_visit` deletes a visit for good, and the history of the contact keeps a line about it. Ask the person first, and show the `dry_run`. A second call is `not_found`. To keep the history, cancel instead.
