Core resources
Administration
Booking flow
Invoice lines for booking invoices
id
uuid
Unique identifier
created_at
timestamp with time zone
Creation timestamp
updated_at
timestamp with time zone
Last modification timestamp
amount
integer
Amount of the line item
fee_type
"fee" | "deposit"
Type of the fee. fee
or deposit
item_type
text
Type of the line item. Most commonly fee
name
jsonb
Name of the line item
quantity
integer
Quantity of the line item
{"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-21T18:42:12.646Z","updated_at": "2024-11-21T18:42:12.646Z","amount": 0,"fee_type": "fee","item_type": "rent","name": {},"quantity": 0}
id
Filter<>
Unique identifier
booking_id
Filter<>
Identifier of the related booking
invoice_id
Filter<>
Identifier of the related invoice
service_id
Filter<>
Identifier of the related service
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
amount
Filter<>
Amount of the line item
fee_type
Filter<>
Type of the fee. fee
or deposit
item_type
Filter<>
Type of the line item. Most commonly fee
name
Filter<>
Name of the line item
quantity
Filter<>
Quantity of the line item
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"
Partial<LineItem>
| Array<Partial<LineItem>>
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 '[]'
id
Filter<>
Unique identifier
booking_id
Filter<>
Identifier of the related booking
invoice_id
Filter<>
Identifier of the related invoice
service_id
Filter<>
Identifier of the related service
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
amount
Filter<>
Amount of the line item
fee_type
Filter<>
Type of the fee. fee
or deposit
item_type
Filter<>
Type of the line item. Most commonly fee
name
Filter<>
Name of the line item
quantity
Filter<>
Quantity of the line item
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"
id
Filter<>
Unique identifier
booking_id
Filter<>
Identifier of the related booking
invoice_id
Filter<>
Identifier of the related invoice
service_id
Filter<>
Identifier of the related service
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
amount
Filter<>
Amount of the line item
fee_type
Filter<>
Type of the fee. fee
or deposit
item_type
Filter<>
Type of the line item. Most commonly fee
name
Filter<>
Name of the line item
quantity
Filter<>
Quantity of the line item
Partial<LineItem>
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 '{}'