Digitalsac DigiCrm icon

Digitalsac DigiCrm

Interact with the Digitalsac DigiCrm API (WhatsApp, tickets, scheduling, WABA templates and more).

Actions396

Wallet → Create Schedule

AI-generated

Summary

Create a new schedule (appointment) for a service with specified details including service ID, date, time, attendant user ID, contact name and phone, optional notes, WhatsApp connection, custom message, reminders, interval duration, and optionally close the related ticket.

Inputs

  • Service ID (required) — ID of the service to schedule.
  • Date (required) — Date of the schedule in YYYY-MM-DD format.
  • Time (required) — Time of the schedule in HH:mm format.
  • User ID (required) — ID of the attendant/user assigned to the schedule.
  • Contact Name (required) — Name of the customer or contact person.
  • Contact Phone (required) — Phone number of the customer or contact, e.g., '5511999999999'.
  • Notes — Optional notes associated with the schedule.
  • WhatsApp Connection ID — Optional WhatsApp connection ID; defaults to the first available if not provided.
  • Custom Message — Optional custom message to be included with the schedule.
  • Reminders (Minutes) — Comma-separated list of reminder intervals in minutes before the schedule; defaults to '60,240'.
  • Interval Duration (Minutes) (required) — Duration in minutes of the schedule interval; default is 30.
  • Close Ticket After Scheduling — Boolean flag indicating whether to close the related ticket after creating the schedule; default is false.

Output shape

a single JSON object representing the created schedule or an error object if the operation fails

Returns the API response for the newly created schedule, including its details. If multiple input items are provided, an array of corresponding results is returned. Errors are returned per item if 'continueOnFail' is enabled.

Examples

Example 1: User creates a schedule for a service on a specific date and time with attendant and contact details, including optional reminders and message.

serviceId=1, scheduleDate='2025-08-07', scheduleTime='09:00', scheduleAttendantId=1, contactName='John Doe', contactPhone='5511999999999', scheduleNotes='Bring documents', whatsappId=0, customMessage='Reminder: Appointment scheduled.', reminders='60,240', intervalDuration=30, closeTicket=false

Links

Discussion