Last updated May 4, 2023

Rate this page:

Overview

This example query will return pricing information for Statuspage as well as the pricing information for the related apps.

More on the offering details query and response

Use-Case

  • Complete product and app pricing integration into external systems. e.g. Salesforce
  • Experiences could leverage this query as a back-end service to fetch products by key and/or to fetch thier related apps

GraphQL Query

Launch the AGG Playground

1
2
query FetchCloudOfferingDetails {
  partnerCatalogApi {
    partnerOfferingDetails(
      where: {
        cloudProduct: {
          key: "0b8ea1e2-52df-11ea-8d77-2e728ce88125" # Statuspage
        }
      }
    ) {
      cloudApps {
        billingType
        hostingType
        key
        level
        name
        parent
        pricingType
        sku
        supportedBillingSystems
      }
      cloudProducts {
        chargeElements
        key
        name
        offerings {
          billingType
          hostingType
          key
          level
          name
          parent
          pricingPlans {
            currency
            description
            items {
              chargeElement
              chargeType
              cycle {
                count
                interval
                name
              }
              tiers {
                amount
                ceiling
                flatAmount
                floor
                policy
                unitAmount
              }
              tiersMode
            }
            key
            sku
            primaryCycle {
              count
              interval
              name
            }
            type
          }
          pricingType
          sku
          supportedBillingSystems
        }
        uncollectibleAction {
          destination {
            offeringKey
          }
          type
        }
      }
    }
  }
}

cURL

1
2
curl --location 'https://api.atlassian.com/graphql' \
--header 'Authorization: Basic <encrypted_credencials>;' \
--header 'Content-Type: application/json' \
--data '{"query":"query FetchCloudOfferingDetails {\n  partnerCatalogApi {\n    partnerOfferingDetails(\n      where: {\n        cloudProduct: {\n          key: \"0b8ea1e2-52df-11ea-8d77-2e728ce88125\" # Statuspage\n        }\n      }\n    ) {\n      cloudApps {\n        billingType\n        hostingType\n        key\n        level\n        name\n        parent\n        pricingType\n        sku\n        supportedBillingSystems\n      }\n      cloudProducts {\n        chargeElements\n        key\n        name\n        offerings {\n          billingType\n          hostingType\n          key\n          level\n          name\n          parent\n          pricingPlans {\n            currency\n            description\n            items {\n              chargeElement\n              chargeType\n              cycle {\n                count\n                interval\n                name\n              }\n              tiers {\n                amount\n                ceiling\n                flatAmount\n                floor\n                policy\n                unitAmount\n              }\n              tiersMode\n            }\n            key\n            sku\n            primaryCycle {\n              count\n              interval\n              name\n            }\n            type\n          }\n          pricingType\n          sku\n          supportedBillingSystems\n        }\n        uncollectibleAction {\n          destination {\n            offeringKey\n          }\n          type\n        }\n      }\n    }\n  }\n}","variables":{}}'

Rate this page: