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-09-08T01:30:42.840Z"}
id
Filter<uuid>
Unique identifier
booking_id
Filter<uuid>
The booking the coupon is used in
coupon_id
Filter<uuid>
The coupon that is used
created_at
Filter<timestamp with time zone>
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<uuid>
Unique identifier
booking_id
Filter<uuid>
The booking the coupon is used in
coupon_id
Filter<uuid>
The coupon that is used
created_at
Filter<timestamp with time zone>
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<uuid>
Unique identifier
booking_id
Filter<uuid>
The booking the coupon is used in
coupon_id
Filter<uuid>
The coupon that is used
created_at
Filter<timestamp with time zone>
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 '{}'