API reference
Account
The Red Hat Marketplace Account API provides an interface to manage account profiles.
Fetch accounts
get
/account/api/v1/accounts
Get a list of accounts by specifying at least one query parameter
URL parameters
string
optional
identifier of account to fetch
string
optional
billingAccount identifier of account(s) to fetch, use comma delimited for multiple (eg. billingAccountId=123,321)
number
optional
number of records to skip in results
number
optional
number of records to show in results (max 100)
string
optional
company name of account to fetch
number
optional
level of user details to fetch (eg. includeNestedLevel=1 for user role, includeNestedLevel=2 for detailed user data)
Body parameters
No parameters.
curl --location --request GET '/account/api/v1/accounts?5ee98dd2790490b6281a2402 \--header 'Content-Type: application/json' \--header 'Authorization: Bearer ACCESS_TOKEN' \
Success responses
HTTP status 202
The message was understood and all events were accepted. The result of the processing is determined by the returned content.
number
optional
Total accounts returned
array
optional
An array of matching accounts
- _id
string
optional
ID of the account record
namestring
optional
Company name of the account
isCompanyboolean
optional
True if a company account
billingAccountIdstring
optional
Billing account ID of the account
billingAddressobject
optional
Billing address of the account
- companyName
string
optional
Name of the company
firstNamestring
optional
First name of the billing address
lastNamestring
optional
Last name of the billing address
address1string
optional
Address line 1 of the billing address
address2string
optional
Address line 2 of the billing address
citystring
optional
City of the billing address
stateProvincestring
optional
State/Province of the billing address
postalCodestring
optional
Postal/Zip code of the billing address
phoneNumberstring
optional
Phone number of the billing address
countryCodestring
optional
Country code of the billing address
vatNumberstring
optional
VAT number of the account
taxCodestring
optional
Tax code of the account
statusstring
optional
Status of the account
- PENDINGACTIVESUSPENDED
vendorStatusstring
optional
Status of the vendor account
- PENDINGACTIVESUSPENDED
billingAccountRefsobject
optional
Billing references of the account
- zuoraAccountId
string
optional
Reference to zuora account ID
sapSiteNumberstring
optional
Reference to SAP site number
ibmCustomerNumberstring
optional
Reference to IBM customer number (ICN)
mppNumberstring
optional
Reference to MPP number
isCustomerboolean
optional
True if account is type customer
isVendorboolean
optional
True if account is type vendor
partnerConnectIdstring
optional
Partner connect ID of the account
accountRHIdLinkstring
optional
Red Hat ID linked to the account
loginRHIdLinkstring
optional
Red Hat login linked to the account
companyRefstring
optional
Reference to the ID record of the corresponding company for the account
vendorAccountobject
optional
Vendor details if a vendor account
- addressVerified
boolean
optional
True if address is verified
vendorLegalAddressobject
optional
The legal address for the vendor account
- companyName
string
optional
Name of the company
firstNamestring
optional
First name of the vendor legal address
lastNamestring
optional
Last name of the vendor legal address
address1string
optional
Address line 1 of the vendor legal address
address2string
optional
Address line 2 of the vendor legal address
citystring
optional
City of the vendor legal address
stateProvincestring
optional
State/Province of the vendor legal address
postalCodestring
optional
Postal/Zip code of the vendor legal address
phoneNumberstring
optional
Phone number of the vendor legal address
countryCodestring
optional
Country code of the vendor legal address
vatNumberstring
optional
VAT number for the vendor account
taxCodestring
optional
Tax code for the vendor account
vendorTypestring
optional
Type of the vendor, can be IBM or ISV
- IBMISV
bssAccountIdstring
optional
BSS account ID of the account
createdAtstring
optional
Created at timestamp of the account
paymentInfoarray
optional
An array of payment information objects.
- _id
string
optional
ID of the payment record
typestring
optional
Type of payment - can be Invoice or Credit Card
isDefaultboolean
optional
True if this is the default payment method
cardTypestring
optional
Type of credit card
scrambledNumberstring
optional
Masked credit card number showing last 4 digits only
expiryDatestring
optional
Expiry date MMYY of credit card
customerNumberstring
optional
Customer number for Invoice payment method
poNumberstring
optional
PO number for Invoice payment method
verifiedboolean
optional
True if payment method has been verified
walletIdstring
optional
Wallet ID corresponding to the payment method
accountIdstring
optional
Account ID corresponding to the payment method
accountCreationStatusobject
optional
Creation status of the account
- _id
string
optional
ID of the account create record
accountIdstring
optional
The account ID for the account
updatedOnstring
optional
Last update timestamp of the account
lastProcessingAttemptstring
optional
Last processing attempt of the account
stuckAlertboolean
optional
Flag for stuck account
zuoraboolean
optional
Flag for zuora account
customerCreateboolean
optional
Flag for customer create account
icnboolean
optional
Flag for ICN
orderContainerboolean
optional
Flag for order container
OMRolesarray
optional
Roles of the users of the account
- userId
string
optional
The ID of the user record, only shown when includeNestedLevel=1
roleNamestring
optional
The role of the user
- AccountOwnerAccountMemberAccountAdminClusterAdminPurchaserVendorProductAdminVendorSalesAdminVendorLegalAdminPartner
OMUserobject
optional
Details of the user, only shown when includeNestedLevel=2
- _id
string
optional
The ID of the user record
iamIdstring
optional
Cloud IAM ID of the user
emailAddressstring
optional
Email address of the user
firstNamestring
optional
First name of the user
lastNamestring
optional
Last name of the user
preferredLanguagestring
optional
Preferred language of the user
enterpriseMarketplaceobject
optional
Details of the enterprise marketplace account
- name
string
optional
Display name of the EM enabled account
themeobject
optional
Theme details of the EM enabled account
- primary
string
optional
Primary background color (in hex) for the EM enabled account
secondarystring
optional
Generated gradient background color (in hex) for the EM enabled account
fontColorstring
optional
Generated font color (in hex) for the EM enabled account
enabledboolean
optional
True if EM account is enabled
isTaxExemptboolean
optional
True if account is tax exempt
{"totalResults": 1,"OMAccounts": [{"_id": "5ee98dd2790490b6281a2402","name": "ABC Account","isCompany": true,"billingAccountId": "ACCT000004261","billingAddress": {"companyName": "ABC Test Company","firstName": "John","lastName": "Doe","address1": "123 Test Street","address2": "Suite 456","city": "New York","stateProvince": "New York","postalCode": "10001","phoneNumber": "(123)4567890","countryCode": "US"},"vatNumber": "12345","taxCode": "123","status": "PENDING","vendorStatus": "PENDING","billingAccountRefs": {"zuoraAccountId": "2c92c0fb72e0de460172f21985ae6d5a","sapSiteNumber": "0004134380","ibmCustomerNumber": "1990789","mppNumber": "0198098765"},"isCustomer": true,"isVendor": true,"partnerConnectId": "12345","accountRHIdLink": "13337759","loginRHIdLink": "redHatuserLogin","companyRef": "5ee39b052ea9a08821470e4a","vendorAccount": {"addressVerified": true,"vendorLegalAddress": {"companyName": "ABC Vendor Company","firstName": "Jane","lastName": "Doe","address1": "123 Test Street","address2": "Suite 456","city": "New York","stateProvince": "New York","postalCode": "10001","phoneNumber": "(123)4567890","countryCode": "US"},"vatNumber": "12345","taxCode": "123","vendorType": "IBM"},"bssAccountId": "OMP-2f88191ae209449aae23884437c8c36b","createdAt": "2020-06-17T03:28:18.050Z","paymentInfo": [{"_id": "5f982c6b7fb6b5e2d31214ee","type": "CREDIT_CARD","isDefault": true,"cardType": "VISA","scrambledNumber": "****1234","expiryDate": "1123","verified": true,"walletId": "61ef13f0185f11eb8d4b35c4e7bebf44","accountId": "5f982b957fb6b5e2d31214eb"},{"_id": "5f99f2aa7fb6b5e2d31214f6","type": "CREDIT_CARD","isDefault": false,"cardType": "MASTERCARD","scrambledNumber": "****1111","expiryDate": "0123","walletId": "61ef13f0185f11eb8d4b35c4e7bebf44","accountId": "5f982b957fb6b5e2d31214eb"}],"accountCreationStatus": {"_id": "2c92c0fb72e0de460172f21985ae6d5a","accountId": "5ee98dd2790490b6281a2402","updatedOn": "2020-06-17T03:28:18.050Z","lastProcessingAttempt": "2020-06-17T03:28:18.050Z","stuckAlert": false,"zuora": true,"customerCreate": true,"icn": true,"orderContainer": true},"OMRoles": [{"roleName": "AccountOwner","OMUser": {"_id": "5f7dcdce501cf8bcadc40c54","iamId": "IBMid-55000950RA","emailAddress": "test@mail.test.ibm.com","firstName": "Userfirstname","lastName": "Userlastname","preferredLanguage": "en-us"}},{"roleName": "AccountMember","OMUser": {"_id": "5f7de18b501cf8bcadc40c56","iamId": "IBMid-55000951R4","emailAddress": "test1@mail.test.ibm.com","firstName": "Userfirstname1","lastName": "Userlastname1","preferredLanguage": "en-us"}}],"enterpriseMarketplace": {"name": "ABC Test Company","theme": {"primary": "#ABC123","secondary": "#321DEF","fontColor": "#000000"},"enabled": true},"isTaxExempt": false}]}
Error response
HTTP status default
Any unrecoverable failure, the platform will give up sending the event
No error response parameters.
Commerce
The Red Hat Marketplace Commerce API provides an interface to access product edition data and units of measure.
Fetch all units of measure
get
/commerce/api/v2/uoms
Get all units of measure
URL parameters
string
optional
Locale code to return translation for (default en-us)
Body parameters
No parameters.
curl --location --request GET '/commerce/api/v2/uoms' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer ACCESS_TOKEN' \
Success responses
HTTP status 200
List of units of measure
string
required
Unique identifier
number
required
Unit multiplier
boolean
required
True if this UOM supports usage charges
object
optional
Locale specific text values for UOM
- de
object
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
enobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
esobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
frobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
itobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
number
required
Unix timestamp of creation
number
required
Unix timestamp of last update
[{"identifier": "ActiveUser","multiplier": 1,"created": 1583808165047,"updated": 1583808165047,"supportUsageChargeType": false,"singularName": "Active User","pluralName": "Active Users","suffix": "per active user","inputLabel": "Enter number of active users","summaryLabel": "Number of active users"},{"identifier": "Agent","multiplier": 1,"created": 1593701055699,"updated": 1593701055699,"supportUsageChargeType": false,"singularName": "Agent","pluralName": "Agents","suffix": "per agent","inputLabel": "Enter number of agents","summaryLabel": "Number of agents"},{"identifier": "ApplicationInstance","multiplier": 1,"created": 1583808165879,"updated": 1583808165879,"supportUsageChargeType": false,"singularName": "Application Instance","pluralName": "Application Instances","suffix": "per application instance","inputLabel": "Enter number of application instances","summaryLabel": "Number of application instances"}]
Error response
HTTP status default
No error response parameters.
Fetch unit of measure
get
/commerce/api/v2/uoms/{identifier}
Get unit of measure
URL parameters
string
required
UOM identifier of entity to return
string
optional
Locale code to return translation for (default en-us)
Body parameters
No parameters.
curl --location --request GET '/commerce/api/v2/uoms/Asset' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer ACCESS_TOKEN' \
Success responses
HTTP status 200
Unit of Measure
string
required
Unique identifier
number
required
Unit multiplier
boolean
required
True if this UOM supports usage charges
object
optional
Locale specific text values for UOM
- de
object
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
enobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
esobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
frobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
itobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
number
required
Unix timestamp of creation
number
required
Unix timestamp of last update
{"identifier": "Asset","multiplier": 1,"created": 1583808166311,"updated": 1583808166311,"supportUsageChargeType": false,"singularName": "Asset","pluralName": "Assets","suffix": "per asset","inputLabel": "Enter number of assets","summaryLabel": "Number of assets"}
Error response
HTTP status default
No error response parameters.
Fetch lastest edition version
get
/commerce/api/v3/edition/{id}
Get latest edition version
URL parameters
string
required
Id of edition to return
string
optional
Locale code to return translation for (default en-us)
boolean
optional
Set to true to include edition metadata (default false)
boolean
optional
Set to true to allow draft edition to be returned if latest (default false)
Body parameters
No parameters.
curl --location --request GET '/commerce/api/v3/edition/EIDHJLN9' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer ACCESS_TOKEN' \
Success responses
HTTP status 200
Edition
string
optional
Edition ID
string
required
Edition ID
string
required
Edition type
- PURCHASETRIALFREE
object
required
Product data
- id
string
required
Product ID
string
required
Product name
string
required
Edition name
string
required
Edition description
string
required
Subscription term units
- MONTHSDAYS
number
required
Edition version
number
required
Unix timestamp of creation
number
required
Unix timestamp of last update
array
optional
Allowed billing frequencies for edition
- MONTHLYQUARTERLYANNUALUPFRONT
array
optional
Allowed subscription terms for edition
- 1361224364860
number
optional
Minimum number of days allowed between subscriptions to this edition
number
optional
Length of the trial subscription to this edition
number
optional
Number of days product will remain active after trial expiration
string
optional
Trial edition part number
string
optional
URL of edition logo
string
optional
Billing system which processes edition subscriptions
- ZUORADSW
array
optional
Rules governing edition charges
- id
string
required
Charge ID
sequencestring
required
Charge display sequence
typestring
required
Charge type
- RecurringUsageOneTime
priceModelstring
required
Price model
- StandardVolumePricingTierPricing
requiredboolean
required
Charge required
minimumQuantitynumber
required
Minimum charge quantity
maximumQuantitynumber
required
Maximum charge quantity
defaultQuantitynumber
required
Default charge quantity
incrementnumber
optional
Charge quantity increment
useInStartingPriceCalculationboolean
required
Include charge in edition starting price
creatednumber
required
Unix timestamp of creation
updatednumber
required
Unix timestamp of last update
tiersarray
required
Charge pricing tiers
- startingUnit
number
required
Tier starting unit
endingUnitnumber
optional
Tier ending unit
pricingarray
required
Charge tier pricing
- currency
string
required
Price currency
pricenumber
required
Price amount
overagePricenumber
optional
Overage price
usageReportingTypestring
optional
Type of usage reporting
- CumulativeHighWaterMark
vendorChargeIdstring
optional
Vendor defined ID for charge
ibmPartNumberstring
optional
IBM part number for charge
ibmOveragePartNumberstring
optional
IBM part number for charge overage
priceFrequencystring
optional
Charge frequency
- ANNUALMONTHLY
usageReportingIdstring
optional
Usage reporting ID
uomobject
required
- identifier
string
required
Unique identifier
multipliernumber
required
Unit multiplier
supportUsageChargeTypeboolean
required
True if this UOM supports usage charges
translationsobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
creatednumber
required
Unix timestamp of creation
updatednumber
required
Unix timestamp of last update
singularNamestring
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
metadataobject
optional
- chargeSyncRequired
boolean
optional
Charge sync required
ibmPartNumberstring
optional
IBM part number for charge
ibmOveragePartNumberstring
optional
IBM part number for overage
zuoraRatePlanIdstring
optional
Zuora rate plan ID
zuoraRatePlanChargeIdstring
optional
Zuora rate plan charge ID
zuoraRatePlanOveragesarray
optional
Zuora rate plan overage metadata
- startingUnit
number
required
Tier starting unit
zuoraRatePlanOverageChargeIdstring
required
Zuora rate plan overage charge ID
array
optional
Rules governing edition charges
- id
string
required
Edition rule ID
typestring
required
Edition rule type
- QuantitySyncRuleMaxQuantityDependencyRuleAddonQuantityLimiterRuleQuantityDetermineAddonsRequiredRuleEnableChargeIfSourceSelectedRuleDisableChargeIfSourceSelectedRule
sourceChargeIdsarray
required
Source charge IDs
targetChargeIdsarray
optional
Target charge IDs
quantityThresholdnumber
optional
Quantity threshold for rule
string
optional
SLA part number for edition
string
optional
Vendor defined ID for trial edition
string
optional
Edition category
- PRODUCTPLATFORM
{"_id": "5e94eecd4509e00013c7f171","id": "EIDHJLN9","type": "Purchase","productId": "7fa13fdf607424ec566e38b8cd29a11e","productName": "Cortex Certifai","name": "Cortex Certifai Platinum Edition","description": "Cortex Certifai empowers enterprises to identify and mitigate risk and vulnerabilities within AI and deploy trusted AI systems into production.","created": 1586816464726,"updated": 1586817236565,"metadata": {"status": "Published","billingSystem": "ZUORA","approverComment": "","publishAttemptCount": 0},"version": 1,"termUnit": "Month","allowedBillingFrequencies": ["Monthly"],"allowedSubscriptionTerms": [1],"trialTerm": null,"editionCharges": [{"sequence": 0,"type": "Recurring","priceModel": "Standard","required": true,"minimumQuantity": 1,"maximumQuantity": 1,"defaultQuantity": 1,"useInStartingPriceCalculation": true,"vendorChargeId": "cortexplatinum","tiers": [{"startingUnit": 1,"pricing": [{"currency": "USD","price": 52000}],"id": "2ec04ba9-3097-4628-a7ec-248cdb0b512f"}],"id": "5e94e8ca4509e00013c7f16f","created": 1586817226391,"updated": 1586817226391,"usageReportingType": "Cumulative","metadata": {"chargeSyncRequired": false,"ibmPartNumber": "D02FCZX","zuoraRatePlanChargeId": "2c92c0f8715cd199017175ad7dfb71de","zuoraRatePlanId": "2c92c0f9715ce772017175ad7be134e4"},"name": "Cortex certifai platinum edition","uom": {"identifier": "Instance","multiplier": 1,"created": 1583808172371,"updated": 1583808172371,"supportUsageChargeType": false,"singularName": "Instance","pluralName": "Instances","suffix": "per instance","inputLabel": "Enter number of instances","summaryLabel": "Number of instances"}}],"logoUrl": "https://mp.s81c.com/pwb-production/7fa13fdf607424ec566e38b8cd29a11e/productLogoImg_da446f1b-6605-45ec-990f-a6ad1e756970_aa0b6f7c-f647-40d4-b27a-94053b0cb51d.png"}
Error response
HTTP status default
No error response parameters.
Fetch edition version
get
/commerce/api/v3/edition/{id}/{version}
Get edition version
URL parameters
string
required
Id of edition to return
number
required
version number of edition to return
string
optional
Locale code to return translation for (default en-us)
boolean
optional
Set to true to include edition metadata (default false)
string
optional
If provided, retrieves edition pricing for the specified quote
Body parameters
No parameters.
curl --location --request GET '/commerce/api/v3/edition/EIDHJLN9/1' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer ACCESS_TOKEN' \
Success responses
HTTP status 200
Edition
string
optional
Edition ID
string
required
Edition ID
string
required
Edition type
- PURCHASETRIALFREE
object
required
Product data
- id
string
required
Product ID
string
required
Product name
string
required
Edition name
string
required
Edition description
string
required
Subscription term units
- MONTHSDAYS
number
required
Edition version
number
required
Unix timestamp of creation
number
required
Unix timestamp of last update
array
optional
Allowed billing frequencies for edition
- MONTHLYQUARTERLYANNUALUPFRONT
array
optional
Allowed subscription terms for edition
- 1361224364860
number
optional
Minimum number of days allowed between subscriptions to this edition
number
optional
Length of the trial subscription to this edition
number
optional
Number of days product will remain active after trial expiration
string
optional
Trial edition part number
string
optional
URL of edition logo
string
optional
Billing system which processes edition subscriptions
- ZUORADSW
array
optional
Rules governing edition charges
- id
string
required
Charge ID
sequencestring
required
Charge display sequence
typestring
required
Charge type
- RecurringUsageOneTime
priceModelstring
required
Price model
- StandardVolumePricingTierPricing
requiredboolean
required
Charge required
minimumQuantitynumber
required
Minimum charge quantity
maximumQuantitynumber
required
Maximum charge quantity
defaultQuantitynumber
required
Default charge quantity
incrementnumber
optional
Charge quantity increment
useInStartingPriceCalculationboolean
required
Include charge in edition starting price
creatednumber
required
Unix timestamp of creation
updatednumber
required
Unix timestamp of last update
tiersarray
required
Charge pricing tiers
- startingUnit
number
required
Tier starting unit
endingUnitnumber
optional
Tier ending unit
pricingarray
required
Charge tier pricing
- currency
string
required
Price currency
pricenumber
required
Price amount
overagePricenumber
optional
Overage price
usageReportingTypestring
optional
Type of usage reporting
- CumulativeHighWaterMark
vendorChargeIdstring
optional
Vendor defined ID for charge
ibmPartNumberstring
optional
IBM part number for charge
ibmOveragePartNumberstring
optional
IBM part number for charge overage
priceFrequencystring
optional
Charge frequency
- ANNUALMONTHLY
usageReportingIdstring
optional
Usage reporting ID
uomobject
required
- identifier
string
required
Unique identifier
multipliernumber
required
Unit multiplier
supportUsageChargeTypeboolean
required
True if this UOM supports usage charges
translationsobject
optional
Translations
- singularName
string
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
creatednumber
required
Unix timestamp of creation
updatednumber
required
Unix timestamp of last update
singularNamestring
required
Singular name
pluralNamestring
required
Plural name
suffixstring
required
Suffix
inputLabelstring
required
Input label
summaryLabelstring
required
Summary label
metadataobject
optional
- chargeSyncRequired
boolean
optional
Charge sync required
ibmPartNumberstring
optional
IBM part number for charge
ibmOveragePartNumberstring
optional
IBM part number for overage
zuoraRatePlanIdstring
optional
Zuora rate plan ID
zuoraRatePlanChargeIdstring
optional
Zuora rate plan charge ID
zuoraRatePlanOveragesarray
optional
Zuora rate plan overage metadata
- startingUnit
number
required
Tier starting unit
zuoraRatePlanOverageChargeIdstring
required
Zuora rate plan overage charge ID
array
optional
Rules governing edition charges
- id
string
required
Edition rule ID
typestring
required
Edition rule type
- QuantitySyncRuleMaxQuantityDependencyRuleAddonQuantityLimiterRuleQuantityDetermineAddonsRequiredRuleEnableChargeIfSourceSelectedRuleDisableChargeIfSourceSelectedRule
sourceChargeIdsarray
required
Source charge IDs
targetChargeIdsarray
optional
Target charge IDs
quantityThresholdnumber
optional
Quantity threshold for rule
string
optional
SLA part number for edition
string
optional
Vendor defined ID for trial edition
string
optional
Edition category
- PRODUCTPLATFORM
{"_id": "5e94eecd4509e00013c7f171","id": "EIDHJLN9","type": "Purchase","productId": "7fa13fdf607424ec566e38b8cd29a11e","productName": "Cortex Certifai","name": "Cortex Certifai Platinum Edition","description": "Cortex Certifai empowers enterprises to identify and mitigate risk and vulnerabilities within AI and deploy trusted AI systems into production.","created": 1586816464726,"updated": 1586817236565,"metadata": {"status": "Published","billingSystem": "ZUORA","approverComment": "","publishAttemptCount": 0},"version": 1,"termUnit": "Month","allowedBillingFrequencies": ["Monthly"],"allowedSubscriptionTerms": [1],"trialTerm": null,"editionCharges": [{"sequence": 0,"type": "Recurring","priceModel": "Standard","required": true,"minimumQuantity": 1,"maximumQuantity": 1,"defaultQuantity": 1,"useInStartingPriceCalculation": true,"vendorChargeId": "cortexplatinum","tiers": [{"startingUnit": 1,"pricing": [{"currency": "USD","price": 52000}],"id": "2ec04ba9-3097-4628-a7ec-248cdb0b512f"}],"id": "5e94e8ca4509e00013c7f16f","created": 1586817226391,"updated": 1586817226391,"usageReportingType": "Cumulative","metadata": {"chargeSyncRequired": false,"ibmPartNumber": "D02FCZX","zuoraRatePlanChargeId": "2c92c0f8715cd199017175ad7dfb71de","zuoraRatePlanId": "2c92c0f9715ce772017175ad7be134e4"},"name": "Cortex certifai platinum edition","uom": {"identifier": "Instance","multiplier": 1,"created": 1583808172371,"updated": 1583808172371,"supportUsageChargeType": false,"singularName": "Instance","pluralName": "Instances","suffix": "per instance","inputLabel": "Enter number of instances","summaryLabel": "Number of instances"}}],"logoUrl": "https://mp.s81c.com/pwb-production/7fa13fdf607424ec566e38b8cd29a11e/productLogoImg_da446f1b-6605-45ec-990f-a6ad1e756970_aa0b6f7c-f647-40d4-b27a-94053b0cb51d.png"}
Error response
HTTP status default
No error response parameters.
Orders
Red Hat Marketplace Orders API provides an interface to create orders for approved products.
Check order
post
/subscriptions/api/v1/orders/check
Verifies the user can place an order for a specific product edition, like trials and approved software.
URL parameters
No url parameters.
Body parameters
string
required
The Red Hat Marketplace Account Id
required
The edition being requested
curl -X 'POST' 'https://marketplace.redhat.com/subscriptions/api/v1/orders/check' \-H 'accept: application/json' \-H 'Content-Type: application/json' \-H 'Authorization: Bearer ACCESS_TOKEN' \--data-raw '{"accountId": "5dea935af2ecbc0012b6bca9","editionId": "EID1ZRAI"}'
Success responses
HTTP status 204
Order is allowed.
No success response parameters.
Error response
HTTP status 400
The request could not be processed.
No error response parameters.
Create order
post
/subscriptions/api/vi/orders
Places an order for a specific product edition.
URL parameters
No url parameters.
Body parameters
string
optional
A unique identifier for the request.
string
required
The Red Hat Marketplace Account Id.
object
optional
An object with user data.
- iamId
string
optional
The user's IAM Id. Available after login or auth token generation.
emailstring
optional
The user's email address. Available using the iamId.
object
optional
An object with payment information.
- purchaseOrderNumber
string
optional
The purchase order number to bill against.
paymentAuthRefstring
optional
The authorization reference for the credit card.
array
required
An array of subscriptions to create.
- id
string
optional
For when a subscription already exists. For example, an order for a subscription renewal would include an id.
typestring
optional
Indicateds the subscription type.
- TRIALPURCHASEFREE
editionIdstring
required
The ID of the subscription's edition from the catalog.
editionRevisionnumber
required
The edition version number.
termstring
required
The length of the subscription term for purchases.
termUnitstring
required
The unit for term.
- MONTHSYEARS
billingFrequencystring
required
How often billing will be done.
- MONTHLYQUARTERLYANNUAL
currencystring
optional
The currency for this purchase order.
lineItemsarray
required
An array of line items that make up the subscription.
- chargeId
string
required
The Charge ID of this line item from Commerce Configuration.
quantitynumber
required
The quantity to take of this line item.
pricenumber
optional
The price per billing frequency for this line item.
unitPricenumber
optional
The unit price per billing frequency for this line item.
overagePricenumber
optional
The overage price for this line item.
taxnumber
optional
The tax percentage for this line item.
startDatenumber
optional
The start date of the subscription.
autoRenewalboolean
optional
Automatically renews subscription at the end of term. True by default.
byolMessagestring
optional
Customer message to the ISV for the BYOL subscription.
byolboolean
optional
Indicates BYOL subscription. False by default.
draftContentboolean
optional
Indicates that draft content should be used for this subscription. False by default.
string
optional
Used to override any matching tiers in the Red Hat Marketplace Commerce API.
curl -X 'POST' 'https://marketplace.redhat.com/subscriptions/api/vi/orders' \-H 'accept: application/json' \-H 'Content-Type: application/json' \-H 'Authorization: Bearer ACCESS_TOKEN' \--data-raw '{"requestId": "cb14422c-3b8c-4648-be17-4dac61785ce0","accountId": "5dea935af2ecbc0012b6bca9","quoteId": "1234567","requestor": {"iamId": "ibmid-9934114LQD"},"payment": {"purchaseOrderNumber": "8923DJ302"},"subscriptions": [{"id": "5e3d48aa4cb19936a82a42d4","type": "PURCHASE","editionId": "EID1ZRAI","editionRevision": 2,"term": 12,"termUnit": "MONTHS","billingFrequency": "MONTHLY","currency": "USD","lineItems": [{"chargeId": "D029DZX","quantity": 1,"price": 0,"unitPrice": 0,"overagePrice": 0,"tax": 0}]}]}'
Success responses
HTTP status 202
Order placed successfully.
array
optional
An array of subscription objects.
- accountId
number
optional
Tier starting unit
editionIdstring
optional
Zuora rate plan overage charge ID
editionRevisionnumber
optional
Zuora rate plan overage charge ID
productKeystring
optional
Zuora rate plan overage charge ID
termnumber
optional
Zuora rate plan overage charge ID
termUnitstring
optional
The unit for term.
- MONTHSYEARS
billingFrequencystring
optional
How often billing will be done.
- MONTHLYQUARTERLYANNUAL
categorystring
optional
- PRODUCT
typestring
optional
Indicateds the subscription type.
- TRIALPURCHASEFREE
statestring
optional
- INPROGRESS
renewalTypestring
optional
- RENEW_CURRENT_TERM
currentOperationstring
optional
- CREATING
lineItemsarray
optional
An array of line items that make up the subscription.
- chargeId
string
required
The Charge ID of this line item from Commerce Configuration.
quantitynumber
required
The quantity to take of this line item.
pricenumber
optional
The price per billing frequency for this line item.
unitPricenumber
optional
The unit price per billing frequency for this line item.
overagePricenumber
optional
The overage price for this line item.
taxnumber
optional
The tax percentage for this line item.
provisioningInputobject
optional
idstring
optional
object
optional
An object with create order response metadata.
- count
number
optional
{"data": [{"accountId": "5dea935af2ecbc0012b6bca9","editionId": "EID1ZRAI","editionRevision": 2,"productKey": "7fa13fdf607424ec566e38b8cd29a11e","term": 12,"termUnit": "MONTHS","billingFrequency": "MONTHLY","category": "PRODUCT","type": "PURCHASE","state": "IN_PROGRESS","renewalType": "RENEW_CURRENT_TERM","currentOperation": "CREATING","lineItems": [{"chargeId": "D029DZX","quantity": 1,"price": 0,"tax": 0}],"provisioningInput": {},"id": "5e64d18fda3f692c7da08ab5"}],"metadata": {"count": 1}}
Error response
HTTP status 400
The request could not be processed.
No error response parameters.
Subscriptions
Red Hat Marketplace Subscriptions API provides an interface to get and create subscriptions for approved products.
Get subscription by ID
get
/subscriptions/api/v1/subscriptions/{id}
Gets subscription associated to the subscription ID.
URL parameters
string
required
Subscription ID.
Body parameters
No parameters.
curl --location --request GET 'https://marketplace.redhat.com/subscriptions/api/v1/subscriptions/5e4bdabc21a8e05a2753bd2f' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer ACCESS_TOKEN' \
Success responses
HTTP status 202
Success.
string
optional
Subscription ID.
string
required
The Red Hat Marketplace Account Id
string
required
The ID of the subscription's edition from the catalog.
number
optional
string
optional
Used to override any matching tiers in the Red Hat Marketplace Commerce API.
object
optional
An object with user data.
- iamId
string
optional
The user's IAM Id. Available after login or auth token generation.
emailstring
required
The user's email address. Available using the iamId.
string
optional
Return only subscriptions that match given workflow version Can be V1 or V2.
string
optional
number
optional
string
optional
The unit for term.
- MONTHSYEARS
string
optional
How often billing will be done.
- MONTHLYQUARTERLYANNUAL
string
optional
Subscription category.
- PRODUCTPLATFORMUSAGE_CONTAINER
string
optional
Indicateds the subscription type.
- TRIALPURCHASEFREE
string
optional
- INPROGRESS
string
optional
- RENEW_CURRENT_TERM
string
optional
- CREATING
array
optional
An array of line items that make up the subscription.
- chargeId
string
required
The Charge ID of this line item from Commerce Configuration.
quantitynumber
required
The quantity to take of this line item.
pricenumber
optional
The price per billing frequency for this line item.
unitPricenumber
optional
The unit price per billing frequency for this line item.
overagePricenumber
optional
The overage price for this line item.
taxnumber
optional
The tax percentage for this line item.
externalReferenceobject
optional
object
optional
object
optional
An object of tags.
- tags
array
optional
An array of tag objects.
- accountId
string
optional
namestring
optional
valuestring
optional
descriptionstring
optional
createdDate