Core resources


Administration


Booking flow

Service payment moments

Payment schedule per service

The service payment 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 payment should be made. Formatted as { type: "check-in" | "checkout" | "confirmation" | "on-site" | "request", offset: integer }

valuejsonb

Value of the payment

The service payment moment object
{
"id": "00000000-0000-0000-0000-000000000000",
"service_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-10-05T00:42:23.383Z",
"updated_at": "2024-10-05T00:42:23.383Z",
"moment": {},
"value": {}
}

List service payment moments

Filters

idFilter<>

Unique identifier

service_idFilter<>

Identifier of the related service

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

momentFilter<>

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

valueFilter<>

Value of the payment

Responses

200

A list of service payment moments with the selected columns

206

Partial Content

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

Create service payment moments

Body

Partial<ServicePaymentMoment>
| Array<Partial<ServicePaymentMoment>>

Responses

201

The newly created service payment moments with the selected columns

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

Delete service payment moments

Filters

idFilter<>

Unique identifier

service_idFilter<>

Identifier of the related service

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

momentFilter<>

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

valueFilter<>

Value of the payment

Responses

204

The deleted service payment moments with the selected columns

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

Update service payment moments

Filters

idFilter<>

Unique identifier

service_idFilter<>

Identifier of the related service

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

momentFilter<>

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

valueFilter<>

Value of the payment

Body

Partial<ServicePaymentMoment>

Responses

204

The updated service payment moments with the selected columns

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