Create Product
Intent
Creates a product from the values supplied in the request.
When to call it
Call this when your application has collected the required values and is ready to create a product.
Access boundary
Authorize the request with a token that carries products:write.
Successful result
A successful request returns 201. The response schema below defines the body your integration receives.
Authorizations
Body
- ProductCreateRecurring
- ProductCreateOneTime
Customer-facing name assigned to the product.
3 - 64Collection of available prices for this product. It may combine at most one fixed price with one seat-based price (billed as fixed + seat_charge), or contain a single custom or free price, plus any number of metered prices. A free price cannot be combined with other prices, and a custom price cannot be combined with a fixed or seat-based price. Metered prices are not supported on one-time purchase products.
1Schema used to create a fixed price.
- ProductPriceFixedCreate
- ProductPriceCustomCreate
- ProductPriceSeatBasedCreate
- ProductPriceMeteredUnitCreate
Recurring Interval: Recurring interval of the product.
day, week, month, year Metadata map for information your integration needs to retain.
The key must be a string with a maximum length of 40 characters. The value must be either:
- A string with a maximum length of 500 characters
- An integer
- A floating-point number
- A boolean
You can store up to 50 key-value pairs.
Customer-facing description attached to the product.
Controls where customers can discover the product.
draft, private, public Collection of file IDs. Each one must be on the same organization as the product, of type product_media and correctly uploaded.
Collection of custom fields to attach.
Identifier of the organization.
"1dbfc517-0bbf-4301-9ba8-555ca42b9737"
Unit used to measure the trial period.
day, week, month, year Length of the trial measured in the selected interval.
1 <= x <= 1000Count of interval units of the subscription. If this is set to 1 the charge will happen every interval (e.g. every month), if set to 2 it will be every other month, and so on.
1 <= x <= 999Response
Response: Product created.
Object representing product.
The stable identifier for this record.
The time Ruba created this record.
The time this record last changed.
Unit used to measure the trial period.
day, week, month, year Length of the trial measured in the selected interval.
Customer-facing name assigned to the product.
Customer-facing description attached to the product.
Controls where customers can discover the product.
draft, private, public Recurring Interval: Recurring interval of the product. If None, the product is a one-time purchase.
day, week, month, year Count of interval units of the subscription. If this is set to 1 the charge will happen every interval (e.g. every month), if set to 2 it will be every other month, and so on. None for one-time products.
Indicates whether the product is a subscription.
Indicates whether the product is archived and no longer available.
Unique identifier for the organization owning the product.
Collection of prices for this product.
A recurring price for a product, i.e. a subscription.
Deprecated: The recurring interval should be set on the product itself.
- LegacyRecurringProductPriceFixed
- LegacyRecurringProductPriceCustom
- ProductPriceFixed
- ProductPriceCustom
- ProductPriceSeatBased
- ProductPriceMeteredUnit
Collection of benefits granted by the product.
A benefit of type custom.
Use it to grant any kind of benefit that doesn't fit in the other types.
- BenefitCustom
- BenefitDiscord
- BenefitGitHubRepository
- BenefitDownloadables
- BenefitLicenseKeys
- BenefitMeterCredit
- BenefitFeatureFlag
Collection of medias associated to the product.
Collection of custom fields attached to the product.