Skip to main content

Create a product

POSThttps://api.radom.com/product/create

Authorization

Send your API key in the Authorization header. Scheme: radomToken.

Request body

namestringrequired

Name for the product.

descriptionstringrequired

Product description.

addOnsNewAddOn[]nullable

Additional cost add ons for the product.

namestringrequired

Name of the add on.

pricenumber<float>required

Price of the add on.

chargingIntervalSecondsinteger<int64>nullable>= 0

Frequency of subscription payments.

currencyCurrencyrequired
AllowedUSDCADGBPEURAEDINRSEKBRLNZDAUDHKDNOKDKKJPYCNYCHFSGDPLNMXNCZKHUFZARSARRUBTRYILSUSDCUSDTEURCBTCTEST0ETHBNBSOLTRXAVAXMATIC
pricenumber<float>required>= 0

Price of product (either one time payment or susbcription charge).

imagestring<binary>nullable

Image to use for the product.

meteredBudgetnumber<float>nullable>= 0

Metered budget for this product.

meteredChargingIntervalinteger<int64>nullable>= 0

Metered charging interval for this product.

allowanceDurationinteger<int64>nullable>= 0

Used to determine max allowance based on charging interval and price

sendSubscriptionEmailsbooleannullable
productTypeProductTypenullable
PresalePresalerequired
TokenTokenPresalerequired
tickerstringrequired
decimalsinteger<int32>required>= 0

Responses

200Product created successfully
idstring<uuid>required

Unique identifier for the product.

namestringrequired

Name of the product.

descriptionstringrequired

Product description.

productTypeProductTypenullable
PresalePresalerequired
TokenTokenPresalerequired
tickerstringrequired
decimalsinteger<int32>required>= 0
organizationIdstring<uuid>required

Product's owning organization ID.

addOnsAddOn[]required

Additional cost add ons for the product.

idstring<uuid>required

Unique identifier for the add on.

namestringrequired

Name of the add on.

pricenumber<float>required

Price of the add on.

chargingIntervalSecondsinteger<int64>required>= 0

Frequency of subscription payments.

currencyCurrencyrequired
AllowedUSDCADGBPEURAEDINRSEKBRLNZDAUDHKDNOKDKKJPYCNYCHFSGDPLNMXNCZKHUFZARSARRUBTRYILSUSDCUSDTEURCBTCTEST0ETHBNBSOLTRXAVAXMATIC
pricenumber<float>required>= 0

Product price (either one time payment or susbcription charge).

imageUrlstringrequired

URL of image to use for the product.

createdAtstring<date-time>required

Time at which product was created.

updatedAtstring<date-time>required

Time at which product was last updated.

isArchivedbooleanrequired

True if product is archived on dashboard

sendSubscriptionEmailsbooleannullable
400Bad Request
errorstringrequired
401Unauthorized
errorstringrequired
500Internal server error
errorstringrequired