Core resources


Administration


Booking flow

Invoices

Invoices for bookings

The invoice object

Attributes

iduuid

Unique identifier

booking_iduuid | null
bookings.id

Identifier of the related booking

organization_iduuid

Identifier of the organization this invoice is defined in

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

referencetext

Invoice reference

The invoice object
{
"id": "00000000-0000-0000-0000-000000000000",
"booking_id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-12-06T04:58:12.944Z",
"updated_at": "2024-12-06T04:58:12.944Z",
"reference": ""
}

List invoices

Filters

idFilter<>

Unique identifier

booking_idFilter<>

Identifier of the related booking

organization_idFilter<>

Identifier of the organization this invoice is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

referenceFilter<>

Invoice reference

Responses

200

A list of invoices with the selected columns

206

Partial Content

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

Create invoices

Body

Partial<Invoice>
| Array<Partial<Invoice>>

Responses

201

The newly created invoices with the selected columns

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

Delete invoices

Filters

idFilter<>

Unique identifier

booking_idFilter<>

Identifier of the related booking

organization_idFilter<>

Identifier of the organization this invoice is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

referenceFilter<>

Invoice reference

Responses

204

The deleted invoices with the selected columns

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

Update invoices

Filters

idFilter<>

Unique identifier

booking_idFilter<>

Identifier of the related booking

organization_idFilter<>

Identifier of the organization this invoice is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

referenceFilter<>

Invoice reference

Body

Partial<Invoice>

Responses

204

The updated invoices with the selected columns

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