Create Benefit
Intent
Creates a benefit 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 benefit.
Access boundary
Authorize the request with a token that carries benefits:write.
Successful result
A successful request returns 201. The response schema below defines the body your integration receives.
Operational notes
Create a benefit.
Scopes: benefits:write
Authorizations
You can generate an Organization Access Token from your organization's settings.
Body
- BenefitCustomCreate
- BenefitDiscordCreate
- BenefitGitHubRepositoryCreate
- BenefitDownloadablesCreate
- BenefitLicenseKeysCreate
- BenefitMeterCreditCreate
- BenefitFeatureFlagCreate
Schema to create a benefit of type custom.
"custom"The description of the benefit. Will be displayed on products having this benefit.
3 - 42Properties for creating a benefit of type custom.
Key-value object allowing you to store additional information.
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.
The organization ID.
"1dbfc517-0bbf-4301-9ba8-555ca42b9737"
The visibility of the benefit in the customer portal.
draft, private, public Response
Benefit created.
- BenefitCustom
- BenefitDiscord
- BenefitGitHubRepository
- BenefitDownloadables
- BenefitLicenseKeys
- BenefitMeterCredit
- BenefitFeatureFlag
A benefit of type custom.
Use it to grant any kind of benefit that doesn't fit in the other types.
The ID of the benefit.
The time Ruba created this record.
The time this record last changed.
"custom"The description of the benefit.
Whether the benefit is selectable when creating a product.
Whether the benefit is deletable.
Whether the benefit is deleted.
The ID of the organization owning the benefit.
The visibility of the benefit in the customer portal.
draft, private, public Properties for a benefit of type custom.