Core resources
Administration
Booking flow
Defines for which products a coupon applies. Only checked when coupon.scope
is rent
or product
.
id
uuid
Unique identifier
created_at
timestamp with time zone
Creation timestamp
{"id": "00000000-0000-0000-0000-000000000000","coupon_id": "00000000-0000-0000-0000-000000000000","product_id": "00000000-0000-0000-0000-000000000000","created_at": "2024-11-21T11:21:13.191Z"}
id
Filter<>
Unique identifier
coupon_id
Filter<>
Coupon this coupon-product-link is related to
product_id
Filter<>
Product this coupon-product-link is related to
created_at
Filter<>
Creation timestamp
200
A list of coupon products with the selected columns
206
Partial Content
GET
/coupon_products
curl -X GET "https://api.bookingmood.com/v1/coupon_products?select=*" \ -H "Authorization: Bearer YOUR_API_KEY"
Partial<CouponProduct>
| Array<Partial<CouponProduct>>
201
The newly created coupon products with the selected columns
POST
/coupon_products
curl -X POST "https://api.bookingmood.com/v1/coupon_products" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '[]'
id
Filter<>
Unique identifier
coupon_id
Filter<>
Coupon this coupon-product-link is related to
product_id
Filter<>
Product this coupon-product-link is related to
created_at
Filter<>
Creation timestamp
204
The deleted coupon products with the selected columns
DELETE
/coupon_products
curl -X DELETE "https://api.bookingmood.com/v1/coupon_products" \ -H "Authorization: Bearer YOUR_API_KEY"
id
Filter<>
Unique identifier
coupon_id
Filter<>
Coupon this coupon-product-link is related to
product_id
Filter<>
Product this coupon-product-link is related to
created_at
Filter<>
Creation timestamp
Partial<CouponProduct>
204
The updated coupon products with the selected columns
PATCH
/coupon_products
curl -X PATCH "https://api.bookingmood.com/v1/coupon_products" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{}'