Core resources


Administration


Booking flow

Product email templates

Automated emails active per unit

The product email template object

Attributes

iduuid

Unique identifier

email_template_iduuid
email_templates.id

Identifier of the related email template

product_iduuid
products.id

Identifier of the related unit

created_attimestamp with time zone

Creation timestamp

orderinteger

Order of the email template as displayed in the admin

The product email template object
{
"id": "00000000-0000-0000-0000-000000000000",
"email_template_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-06-21T07:13:59.112Z",
"order": 0
}

List product email templates

Filters

idFilter<uuid>

Unique identifier

email_template_idFilter<uuid>

Identifier of the related email template

product_idFilter<uuid>

Identifier of the related unit

created_atFilter<timestamp with time zone>

Creation timestamp

orderFilter<integer>

Order of the email template as displayed in the admin

Responses

200

A list of product email templates with the selected columns

206

Partial Content

GET/product_email_templates
curl -X GET "https://api.bookingmood.com/v1/product_email_templates?select=*" \
  -H "Authorization: Bearer YOUR_API_KEY"

Create product email templates

Body

Partial<ProductEmailTemplate>
| Array<Partial<ProductEmailTemplate>>

Responses

201

The newly created product email templates with the selected columns

POST/product_email_templates
curl -X POST "https://api.bookingmood.com/v1/product_email_templates" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '[]'

Delete product email templates

Filters

idFilter<uuid>

Unique identifier

email_template_idFilter<uuid>

Identifier of the related email template

product_idFilter<uuid>

Identifier of the related unit

created_atFilter<timestamp with time zone>

Creation timestamp

orderFilter<integer>

Order of the email template as displayed in the admin

Responses

204

The deleted product email templates with the selected columns

DELETE/product_email_templates
curl -X DELETE "https://api.bookingmood.com/v1/product_email_templates" \
  -H "Authorization: Bearer YOUR_API_KEY"

Update product email templates

Filters

idFilter<uuid>

Unique identifier

email_template_idFilter<uuid>

Identifier of the related email template

product_idFilter<uuid>

Identifier of the related unit

created_atFilter<timestamp with time zone>

Creation timestamp

orderFilter<integer>

Order of the email template as displayed in the admin

Body

Partial<ProductEmailTemplate>

Responses

204

The updated product email templates with the selected columns

PATCH/product_email_templates
curl -X PATCH "https://api.bookingmood.com/v1/product_email_templates" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{}'