Skip to main content
An Offer represents a promotable product or bundle in your catalog. It has a name, availability window, optional localized data, one or more products (with tier and Content Provider), and an optional plan.

Attributes

offerId

Bango’s unique identifier of the offer.

name

The offer name.

availableFromTs

The date from which this offer is available to consumers (ISO 8601 date-time).

availableToTs

The date after which this offer is no longer available to consumers (ISO 8601 date-time).

localizedData

Optional locale-keyed object (e.g. en-US) for the offer. Contains:
  • description — Localized description of the offer
  • promotionTitle — Localized promo title
  • promotionBody — Localized promo details
  • termsAndConditionsUrl — Link to the offer’s terms and conditions

products

Array of products included in the offer. Each item contains:
  • productId — Bango’s unique identifier of the product
  • name — The product name
  • localizedData — Optional locale-keyed ProductLocalizedData
  • productTier — productTierId, name, optional localizedData
  • contentProvider — contentProviderId, name, optional merchantAccountKey, optional localizedData

plan

Optional plan object. Contains:
  • planId — Unique identifier of the offer’s plan
  • lifecycleStartTrigger — triggerSource, triggerEvent
  • type — Plan type (e.g. SUBSCRIPTION)
  • currency — ISO 4217 currency code
  • currencyAssetScale — Number of decimals for the currency
  • phases — Array of phase objects (sequence, priceType, renewalFrequency, duration, amount, displayAmount, billingDescription)
Possible value for type: SUBSCRIPTION (subscription plan). Possible values for priceType (within phases):