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-09-08T00:39:02.808Z","updated_at": "2024-09-08T00:39:02.808Z","amount": 0,"fee_type": "fee","item_type": "rent","name": {},"quantity": 0}
id
Filter<uuid>
Unique identifier
booking_id
Filter<uuid>
Identifier of the related booking
invoice_id
Filter<uuid>
Identifier of the related invoice
service_id
Filter<uuid>
Identifier of the related service
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
amount
Filter<integer>
Amount of the line item
fee_type
Filter<"fee" | "deposit">
Type of the fee. fee
or deposit
item_type
Filter<text>
Type of the line item. Most commonly fee
name
Filter<jsonb>
Name of the line item
quantity
Filter<integer>
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<uuid>
Unique identifier
booking_id
Filter<uuid>
Identifier of the related booking
invoice_id
Filter<uuid>
Identifier of the related invoice
service_id
Filter<uuid>
Identifier of the related service
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
amount
Filter<integer>
Amount of the line item
fee_type
Filter<"fee" | "deposit">
Type of the fee. fee
or deposit
item_type
Filter<text>
Type of the line item. Most commonly fee
name
Filter<jsonb>
Name of the line item
quantity
Filter<integer>
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<uuid>
Unique identifier
booking_id
Filter<uuid>
Identifier of the related booking
invoice_id
Filter<uuid>
Identifier of the related invoice
service_id
Filter<uuid>
Identifier of the related service
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
amount
Filter<integer>
Amount of the line item
fee_type
Filter<"fee" | "deposit">
Type of the fee. fee
or deposit
item_type
Filter<text>
Type of the line item. Most commonly fee
name
Filter<jsonb>
Name of the line item
quantity
Filter<integer>
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 '{}'