Query
query BillingProducts($input: BillingProductsInput!) {
billingProducts(input: $input) {
nextPage
products {
description
id
name
plans {
active
description
id
name
prices {
__typename
}
}
prices {
amount
billingPeriod
chargeModel
discountPercent
id
usage
}
updatedAt
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"billingProducts": {
"nextPage": "string",
"products": [
{
"description": "string",
"id": "string",
"name": "string",
"plans": [
{
"active": true,
"description": "string",
"id": "string",
"name": "string",
"prices": [
{
"__typename": "BillingProductPrice"
}
]
}
],
"prices": [
{
"amount": 1.5,
"billingPeriod": "ANNUALLY",
"chargeModel": "string",
"discountPercent": 1.5,
"id": "string",
"usage": true
}
],
"updatedAt": "value"
}
]
}
}
}Queries
billingProducts
List billing products
QUERY
billingProducts(input: BillingProductsInput!): BillingProductsResult!Arguments
input
required
Returns
nextPage
String
Token for the next page of results
products
[BillingProduct!]!
List of found Billing products
Query
query BillingProducts($input: BillingProductsInput!) {
billingProducts(input: $input) {
nextPage
products {
description
id
name
plans {
active
description
id
name
prices {
__typename
}
}
prices {
amount
billingPeriod
chargeModel
discountPercent
id
usage
}
updatedAt
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"billingProducts": {
"nextPage": "string",
"products": [
{
"description": "string",
"id": "string",
"name": "string",
"plans": [
{
"active": true,
"description": "string",
"id": "string",
"name": "string",
"prices": [
{
"__typename": "BillingProductPrice"
}
]
}
],
"prices": [
{
"amount": 1.5,
"billingPeriod": "ANNUALLY",
"chargeModel": "string",
"discountPercent": 1.5,
"id": "string",
"usage": true
}
],
"updatedAt": "value"
}
]
}
}
}