cancel_visit
Cancel a previously approved visit by its visit ID to revoke gate access that is no longer needed.
Instructions
Cancel a previously pre-approved visit by its visit ID.
Use this when the user wants to cancel a delivery approval they no longer need. The visit_id is at response["data"][0] from the pre_approve call.
Call get_user_multiprofile_info first to obtain the apartment_id if not already known; skip if the user explicitly provided it.
Args: visit_id: The visit ID string returned when the visit was created. apartment_id: The apartment ID the visit belongs to. Fetch from get_user_multiprofile_info → data.apartments.apartment.id. fields: Dot-notation paths to filter the response. Omit to return everything.
Returns the raw API response dict on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| visit_id | Yes | ||
| apartment_id | Yes |