Core resources


Administration


Booking flow

Coupon products

Defines for which products a coupon applies. Only checked when coupon.scope is rent or product.

The coupon product object

Attributes

iduuid

Unique identifier

coupon_iduuid
coupons.id

Coupon this coupon-product-link is related to

product_iduuid
products.id

Product this coupon-product-link is related to

created_attimestamp with time zone

Creation timestamp

The coupon product object
{
"id": "00000000-0000-0000-0000-000000000000",
"coupon_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-04-20T04:40:46.269Z"
}

List coupon products

Filters

idFilter<uuid>

Unique identifier

coupon_idFilter<uuid>

Coupon this coupon-product-link is related to

product_idFilter<uuid>

Product this coupon-product-link is related to

created_atFilter<timestamp with time zone>

Creation timestamp

Responses

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"

Create coupon products

Body

Partial<CouponProduct>
| Array<Partial<CouponProduct>>

Responses

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 '[]'

Delete coupon products

Filters

idFilter<uuid>

Unique identifier

coupon_idFilter<uuid>

Coupon this coupon-product-link is related to

product_idFilter<uuid>

Product this coupon-product-link is related to

created_atFilter<timestamp with time zone>

Creation timestamp

Responses

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"

Update coupon products

Filters

idFilter<uuid>

Unique identifier

coupon_idFilter<uuid>

Coupon this coupon-product-link is related to

product_idFilter<uuid>

Product this coupon-product-link is related to

created_atFilter<timestamp with time zone>

Creation timestamp

Body

Partial<CouponProduct>

Responses

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 '{}'