Create a new promotion
Creates a new promotion for the workspace
Documentation Index
Fetch the complete documentation index at: https://ota-docs.calry.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Headers
Optional tenant ID to specify which tenant to operate as. Controls access to promotions and their associated listings. If not provided, the default tenant will be used.
Body
Name of the promotion
"Summer Sale 2023"
Thumbnail URL for the promotion
"https://example.com/promotions/summer-sale-2023"
Start date of the promotion
"2025-06-01T00:00:00.000Z"
End date of the promotion
"2025-08-31T23:59:59.999Z"
Start date of the booking period this promotion applies to
"2025-06-01T00:00:00.000Z"
End date of the booking period this promotion applies to
"2025-09-30T23:59:59.999Z"
Discount percentage to apply
0 <= x <= 10015
Description of the promotion
"Get 15% off on all summer bookings"
City this promotion is valid in
"San Francisco"
Optional coupon code for the promotion
"SUMMER2023"
Response
Promotion created successfully
Unique identifier for the promotion
"123e4567-e89b-12d3-a456-426614174000"
Name of the promotion
"Summer Sale 2023"
Discount percentage to apply
15
ID of the workspace this promotion belongs to
"123e4567-e89b-12d3-a456-426614174000"
Start date of the promotion
"2025-06-01T00:00:00.000Z"
End date of the promotion
"2025-08-31T23:59:59.999Z"
Start date of the booking period this promotion applies to
"2025-06-01"
End date of the booking period this promotion applies to
"2025-09-30"
Thumbnail URL for the promotion
"https://example.com/promotions/summer-sale-2023"
Status of the promotion
ACTIVE, INACTIVE "ACTIVE"
When the promotion was created
"2025-05-15T10:30:00.000Z"
When the promotion was last updated
"2025-05-16T14:45:00.000Z"
Description of the promotion
"Get 15% off on all summer bookings"
City this promotion is valid in
"San Francisco"
Coupon code for the promotion
"SUMMER2023"