Square icon

Square

Consume Square API

Booking → Cancel

AI-generated

Overview

This node operation cancels a booking in the Square system. It requires the booking ID and a cancellation reason to process the cancellation. This is useful in scenarios where a scheduled booking needs to be invalidated due to customer or seller requests, or if the customer did not show up. For example, a business can automate the cancellation of appointments when customers request it or when no-shows occur, ensuring the booking system stays up-to-date.

Use Case Examples

  1. Cancel a booking with ID '12345' due to customer request.
  2. Automatically cancel bookings marked as 'Customer No Show' after a certain time.

Properties

Name Meaning
Booking ID The ID of the booking to cancel.
Cancellation Reason The reason for cancelling the booking, such as customer requested, seller requested, or customer no show.

Output

JSON

  • id - The unique identifier of the cancelled booking.
  • status - The status of the booking after cancellation.
  • cancellation_reason - The reason provided for the cancellation.
  • updated_at - Timestamp when the booking was last updated.

Dependencies

  • Square API with appropriate API key credentials

Troubleshooting

  • Ensure the booking ID provided is valid and exists in the Square system to avoid errors.
  • The cancellation reason must be one of the predefined options; otherwise, the API request will fail.
  • If the booking is already cancelled or completed, the cancellation request may be rejected by the API.

Links

Discussion