Query
query CustomerSubscriptions {
customerSubscriptions {
edges {
cursor
node {
additionalMetaData
addons {
__typename
}
billingCycleAnchor
billingId
billingLinkUrl
billingPeriod
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"customerSubscriptions": {
"edges": [
{
"cursor": "value",
"node": {
"additionalMetaData": "value",
"addons": [
{
"__typename": "SubscriptionAddon"
}
],
"billingCycleAnchor": "value",
"billingId": "string",
"billingLinkUrl": "string",
"billingPeriod": "ANNUALLY"
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}Queries
customerSubscriptions
QUERY
customerSubscriptions(filter: CustomerSubscriptionFilter, paging: CursorPaging, sorting: [CustomerSubscriptionSort!]): CustomerSubscriptionConnection!Arguments
filter
default:{}
Specify to filter the records returned.
paging
default:{first: 10}
Limit or page results.
sorting
default:[{direction: DESC, field: createdAt}]
Specify to sort results.
Returns
edges
Array of edges.
pageInfo
Paging information
totalCount
Int!
Fetch total count of records
Query
query CustomerSubscriptions {
customerSubscriptions {
edges {
cursor
node {
additionalMetaData
addons {
__typename
}
billingCycleAnchor
billingId
billingLinkUrl
billingPeriod
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}Response
{
"data": {
"customerSubscriptions": {
"edges": [
{
"cursor": "value",
"node": {
"additionalMetaData": "value",
"addons": [
{
"__typename": "SubscriptionAddon"
}
],
"billingCycleAnchor": "value",
"billingId": "string",
"billingLinkUrl": "string",
"billingPeriod": "ANNUALLY"
}
}
],
"pageInfo": {
"endCursor": "value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "value"
},
"totalCount": 1
}
}
}