Loyalty API
Offer1
Represents an offer that a customer can redeem. An offer is a reward obtainable for points.
Properties
id
stringrequiredUnique ID of the offer in the Bubblehouse system, used with RedeemOffer1 endpoint.
type
OfferTyperequiredA string that identifies a particular kind of offer.
title
stringrequiredA title of the offer, suitable to be a list item title.
desc
stringoptionalLonger description of the offer, if available.
points
integerrequired unless zeroNumber of points required to redeem the offer. If an offer does not require points to redeem (e.g. is already redeemed and can be used right away), this field will be 0 or omitted.
available
booleanrequiredWhether the offer is available for use (via RedeemOffer1).
section
stringrequiredSection of the loyalty page that the object is normally displayed in.
product
ProductView2optionalIf the offer is about a single specific product, describes the product.
variant
ProductVariantView2optionalIf the offer is about a single specific product variant, describes the variant.
image_url
stringoptionalURL of the offer's image, if available.
For vendibles, this will be the URL of the vendible's image. The URL is absolute and can be used directly in image tags.
If the vendible has no image configured, this field will be empty or omitted.