Core resources


Administration


Booking flow

Taxes

Re-usable tax definitions

The tax object

Attributes

iduuid

Unique identifier

organization_iduuid

Identifier of the organization this tax is defined in

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

ftstsvector | null

Full text search index

labeljsonb

Localized label

percentagereal

Percentage of the tax

type"on-top" | "included"

Type of the tax. Either on-top or included

The tax object
{
"id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-11-23T09:42:25.181Z",
"updated_at": "2024-11-23T09:42:25.181Z",
"label": {},
"percentage": 0,
"type": "on-top"
}

List taxes

Filters

idFilter<>

Unique identifier

organization_idFilter<>

Identifier of the organization this tax is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

ftsFilter<>

Full text search index

labelFilter<>

Localized label

percentageFilter<>

Percentage of the tax

typeFilter<>

Type of the tax. Either on-top or included

Responses

200

A list of taxes with the selected columns

206

Partial Content

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

Create taxes

Body

Partial<Tax>
| Array<Partial<Tax>>

Responses

201

The newly created taxes with the selected columns

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

Delete taxes

Filters

idFilter<>

Unique identifier

organization_idFilter<>

Identifier of the organization this tax is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

ftsFilter<>

Full text search index

labelFilter<>

Localized label

percentageFilter<>

Percentage of the tax

typeFilter<>

Type of the tax. Either on-top or included

Responses

204

The deleted taxes with the selected columns

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

Update taxes

Filters

idFilter<>

Unique identifier

organization_idFilter<>

Identifier of the organization this tax is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

ftsFilter<>

Full text search index

labelFilter<>

Localized label

percentageFilter<>

Percentage of the tax

typeFilter<>

Type of the tax. Either on-top or included

Body

Partial<Tax>

Responses

204

The updated taxes with the selected columns

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