Skip to main content

Build an offering

POST 

/subscriptions/offerings/build

An offering includes products and plans; products are combined with one or more plans to form an offering. An offering can include either:

Offerings represent a snapshot of their products and plans. If you make updates to products or plans within an offering, the original products and plans are not updated. Only the products and plans within the offering are updated. Alternatively, you can create new products or plans and attach them to an existing offering.

When you are building an offering:

  • you can create new plans and products.
  • you can modify an existing product and plans. For example, you can modify the product price or any attributes of a plan included in the offering.

Here's how you build an offering:

  1. Specify the product to build with the offering. A product can be:

    • subscription products. Specify the subscription product attributes.
    • Product Experience Manager products. Specify the Product Experience Manager product ID in external_ref in ProductAttributes. For the remaining product attributes, you can specify their values to match the values of the existing Product Experience Manager product attributes. However, you can also specify different values, depending on your requirements.
  2. Specify the plans to build with the offering. Plans are the rules that govern your subscription, for example, any discount. You can combine and reuse plans for as many products as you want, making it quick and easy to create your subscription offerings. An offering must have at least one plan.

Request

Body

    data BuildOfferingrequired
    external_ref ExternalRef (string)

    Possible values: <= 2048 characters

    A unique attribute that you could use to contain information from another company system, for example. The maximum length is 2048 characters.

    name stringrequired

    Possible values: >= 3 characters and <= 1024 characters

    The name of the offering.

    description string

    Possible values: <= 1024 characters

    The offering description to display to customers.

    products object[]required

    Possible values: >= 1

    Either references of existing products to be attached to the offering or product information to be created directly within the offering

  • Array [
  • anyOf

    string

    Possible values: <= 2048 characters

  • ]
  • plans object[]required

    Possible values: >= 1

    Either references of existing plans to be attached to the offering or plan information to be created directly within the offering

  • Array [
  • anyOf

    string

    Possible values: <= 2048 characters

  • ]

Responses

Success. The new subscription offering is created with the specified subscription products and plans attached to the offering.

Schema
    data Offering
    id UUID (string)

    The unique identifier.

    type SubscriptionOfferingType (string)required

    Possible values: [subscription_offering]

    attributes OfferingAttributesrequired
    external_ref ExternalRef (string)

    Possible values: <= 2048 characters

    A unique attribute that you could use to contain information from another company system, for example. The maximum length is 2048 characters.

    name stringrequired

    Possible values: >= 3 characters and <= 1024 characters

    The name of the offering.

    description string

    Possible values: <= 1024 characters

    The offering description to display to customers.

    updated_at stringrequired

    The date and time a resource was updated.

    created_at stringrequired

    The date and time a resource was created.

    relationships Relationships

    Relationships are established between different subscription entities. For example, a product and a plan are related to an offering, as both are attached to it.

    anyOf
    title
    meta OfferingMetarequired
    external_product_refs string[]required
    owner stringrequired

    The owner of a resource, either store or organization.

    timestamps Timestampsrequired
    updated_at stringrequired

    The date and time a resource was updated.

    created_at stringrequired

    The date and time a resource was created.

Loading...