Core resources


Administration


Booking flow

Line items

Invoice lines for booking invoices

The line item object

Attributes

iduuid

Unique identifier

booking_iduuid
bookings.id

Identifier of the related booking

invoice_iduuid | null
invoices.id

Identifier of the related invoice

service_iduuid | null
services.id

Identifier of the related service

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

amountinteger

Amount of the line item

fee_type"fee" | "deposit"

Type of the fee. fee or deposit

item_typetext

Type of the line item. Most commonly fee

namejsonb

Name of the line item

quantityinteger

Quantity of the line item

The line item object
{
"id": "00000000-0000-0000-0000-000000000000",
"booking_id": "00000000-0000-0000-0000-000000000000",
"invoice_id": "00000000-0000-0000-0000-000000000000",
"service_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-11-23T10:09:23.629Z",
"updated_at": "2024-11-23T10:09:23.629Z",
"amount": 0,
"fee_type": "fee",
"item_type": "rent",
"name": {},
"quantity": 0
}

List line items

Filters

idFilter<>

Unique identifier

booking_idFilter<>

Identifier of the related booking

invoice_idFilter<>

Identifier of the related invoice

service_idFilter<>

Identifier of the related service

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

amountFilter<>

Amount of the line item

fee_typeFilter<>

Type of the fee. fee or deposit

item_typeFilter<>

Type of the line item. Most commonly fee

nameFilter<>

Name of the line item

quantityFilter<>

Quantity of the line item

Responses

200

A list of line items with the selected columns

206

Partial Content

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

Create line items

Body

Partial<LineItem>
| Array<Partial<LineItem>>

Responses

201

The newly created line items with the selected columns

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

Delete line items

Filters

idFilter<>

Unique identifier

booking_idFilter<>

Identifier of the related booking

invoice_idFilter<>

Identifier of the related invoice

service_idFilter<>

Identifier of the related service

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

amountFilter<>

Amount of the line item

fee_typeFilter<>

Type of the fee. fee or deposit

item_typeFilter<>

Type of the line item. Most commonly fee

nameFilter<>

Name of the line item

quantityFilter<>

Quantity of the line item

Responses

204

The deleted line items with the selected columns

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

Update line items

Filters

idFilter<>

Unique identifier

booking_idFilter<>

Identifier of the related booking

invoice_idFilter<>

Identifier of the related invoice

service_idFilter<>

Identifier of the related service

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

amountFilter<>

Amount of the line item

fee_typeFilter<>

Type of the fee. fee or deposit

item_typeFilter<>

Type of the line item. Most commonly fee

nameFilter<>

Name of the line item

quantityFilter<>

Quantity of the line item

Body

Partial<LineItem>

Responses

204

The updated line items with the selected columns

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