Core resources


Administration


Booking flow

Service deposit moments

Deposit schedule per service

The service deposit moment object

Attributes

iduuid

Unique identifier

service_iduuid
services.id

Identifier of the related service

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

momentjsonb

Moment at which the deposit should be paid. Formatted as { type: "check-in" | "checkout" | "confirmation" | "on-site" | "request", offset: integer }

valuejsonb

Value of the deposit

The service deposit moment object
{
"id": "00000000-0000-0000-0000-000000000000",
"service_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-06-21T07:19:33.184Z",
"updated_at": "2024-06-21T07:19:33.184Z",
"moment": {},
"value": {}
}

List service deposit moments

Filters

idFilter<uuid>

Unique identifier

service_idFilter<uuid>

Identifier of the related service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

momentFilter<jsonb>

Moment at which the deposit should be paid. Formatted as { type: "check-in" | "checkout" | "confirmation" | "on-site" | "request", offset: integer }

valueFilter<jsonb>

Value of the deposit

Responses

200

A list of service deposit moments with the selected columns

206

Partial Content

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

Create service deposit moments

Body

Partial<ServiceDepositMoment>
| Array<Partial<ServiceDepositMoment>>

Responses

201

The newly created service deposit moments with the selected columns

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

Delete service deposit moments

Filters

idFilter<uuid>

Unique identifier

service_idFilter<uuid>

Identifier of the related service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

momentFilter<jsonb>

Moment at which the deposit should be paid. Formatted as { type: "check-in" | "checkout" | "confirmation" | "on-site" | "request", offset: integer }

valueFilter<jsonb>

Value of the deposit

Responses

204

The deleted service deposit moments with the selected columns

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

Update service deposit moments

Filters

idFilter<uuid>

Unique identifier

service_idFilter<uuid>

Identifier of the related service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

momentFilter<jsonb>

Moment at which the deposit should be paid. Formatted as { type: "check-in" | "checkout" | "confirmation" | "on-site" | "request", offset: integer }

valueFilter<jsonb>

Value of the deposit

Body

Partial<ServiceDepositMoment>

Responses

204

The updated service deposit moments with the selected columns

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