The Appointment object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
{
"id": "appointment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"customer_phone_number": "customer_phone_number_example",
"customer_skype": "customer_skype_example",
"customer_details": "customer_details_example",
"scheduled_time": "scheduled_time_example",
"status": "draft",
"calendar_event": "calendar_event_example",
"customer_email": "[email protected]",
"appointment_with": "appointment_with_example",
"party": "party_example"
} /api/crm/appointment/{id} Retrieve a appointment
Retrieves the details of an existing appointment. Supply the unique appointment ID that was returned from a previous request.
Path parameters
The identifier of the appointment to retrieve.
Returns
Returns the appointment object if a valid identifier was provided.
curl https://api.overplane.dev/api/crm/appointment/appointment_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "appointment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"customer_phone_number": "customer_phone_number_example",
"customer_skype": "customer_skype_example",
"customer_details": "customer_details_example",
"scheduled_time": "scheduled_time_example",
"status": "draft",
"calendar_event": "calendar_event_example",
"customer_email": "[email protected]",
"appointment_with": "appointment_with_example",
"party": "party_example"
} /api/crm/appointment List all appointments
Returns a list of appointments. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of appointment objects.
curl https://api.overplane.dev/api/crm/appointment \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "appointment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"customer_phone_number": "customer_phone_number_example",
"customer_skype": "customer_skype_example",
"customer_details": "customer_details_example",
"scheduled_time": "scheduled_time_example",
"status": "draft",
"calendar_event": "calendar_event_example",
"customer_email": "[email protected]",
"appointment_with": "appointment_with_example",
"party": "party_example"
}
],
"has_more": false,
"total": 1
} /api/crm/appointment Create a appointment
Creates a new appointment object.
Body parameters
Returns
Returns the newly created appointment object if the call succeeded.
curl https://api.overplane.dev/api/crm/appointment \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"customer_name":"customer_name_example","scheduled_time":"scheduled_time_example","status":"draft","customer_email":"[email protected]"}' {
"id": "appointment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"customer_phone_number": "customer_phone_number_example",
"customer_skype": "customer_skype_example",
"customer_details": "customer_details_example",
"scheduled_time": "scheduled_time_example",
"status": "draft",
"calendar_event": "calendar_event_example",
"customer_email": "[email protected]",
"appointment_with": "appointment_with_example",
"party": "party_example"
} /api/crm/appointment/{id} Update a appointment
Updates the specified appointment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the appointment to update.
Body parameters
Returns
Returns the updated appointment object.
curl https://api.overplane.dev/api/crm/appointment/appointment_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"customer_name":"customer_name_example","customer_phone_number":"customer_phone_number_example"}' {
"id": "appointment_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"customer_phone_number": "customer_phone_number_example",
"customer_skype": "customer_skype_example",
"customer_details": "customer_details_example",
"scheduled_time": "scheduled_time_example",
"status": "draft",
"calendar_event": "calendar_event_example",
"customer_email": "[email protected]",
"appointment_with": "appointment_with_example",
"party": "party_example"
} /api/crm/appointment/{id} Delete a appointment
Permanently deletes a appointment. This cannot be undone.
Path parameters
The identifier of the appointment to delete.
Returns
Returns a confirmation that the appointment has been deleted.
curl https://api.overplane.dev/api/crm/appointment/appointment_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "appointment_abc123",
"deleted": true
}