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-05-11T08:22:12.193Z",
"updated_at": "2024-05-11T08:22:12.193Z",
"reference": ""
}

List invoices

Filters

idFilter<uuid>

Unique identifier

booking_idFilter<uuid>

Identifier of the related booking

organization_idFilter<uuid>

Identifier of the organization this invoice is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

referenceFilter<text>

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<uuid>

Unique identifier

booking_idFilter<uuid>

Identifier of the related booking

organization_idFilter<uuid>

Identifier of the organization this invoice is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

referenceFilter<text>

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<uuid>

Unique identifier

booking_idFilter<uuid>

Identifier of the related booking

organization_idFilter<uuid>

Identifier of the organization this invoice is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

referenceFilter<text>

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 '{}'