Core resources
Administration
Booking flow
Coupon usage in bookings
id
uuid
Unique identifier
created_at
timestamp with time zone
Creation timestamp
{"id": "00000000-0000-0000-0000-000000000000","booking_id": "00000000-0000-0000-0000-000000000000","coupon_id": "00000000-0000-0000-0000-000000000000","created_at": "2024-11-21T08:56:34.081Z"}
id
Filter<>
Unique identifier
booking_id
Filter<>
The booking the coupon is used in
coupon_id
Filter<>
The coupon that is used
created_at
Filter<>
Creation timestamp
200
A list of coupon uses with the selected columns
206
Partial Content
GET
/coupon_uses
curl -X GET "https://api.bookingmood.com/v1/coupon_uses?select=*" \ -H "Authorization: Bearer YOUR_API_KEY"
Partial<CouponUse>
| Array<Partial<CouponUse>>
201
The newly created coupon uses with the selected columns
POST
/coupon_uses
curl -X POST "https://api.bookingmood.com/v1/coupon_uses" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '[]'
id
Filter<>
Unique identifier
booking_id
Filter<>
The booking the coupon is used in
coupon_id
Filter<>
The coupon that is used
created_at
Filter<>
Creation timestamp
204
The deleted coupon uses with the selected columns
DELETE
/coupon_uses
curl -X DELETE "https://api.bookingmood.com/v1/coupon_uses" \ -H "Authorization: Bearer YOUR_API_KEY"
id
Filter<>
Unique identifier
booking_id
Filter<>
The booking the coupon is used in
coupon_id
Filter<>
The coupon that is used
created_at
Filter<>
Creation timestamp
Partial<CouponUse>
204
The updated coupon uses with the selected columns
PATCH
/coupon_uses
curl -X PATCH "https://api.bookingmood.com/v1/coupon_uses" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{}'