query SubscriptionBillingCycleBulkResults($jobId: ID!, $first: Int!, $after: String) {
subscriptionBillingCycleBulkResults(first: $first, after: $after, jobId: $jobId) {
pageInfo {
startCursor
endCursor
}
edges {
node {
cycleIndex
}
}
}
}
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "query SubscriptionBillingCycleBulkResults($jobId: ID!, $first: Int!, $after: String) { subscriptionBillingCycleBulkResults(first: $first, after: $after, jobId: $jobId) { pageInfo { startCursor endCursor } edges { node { cycleIndex } } } }",
"variables": {
"jobId": "gid://shopify/Job/0faf9493-b523-4c92-8e6e-59139254b03b",
"first": 3
}
}'
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
query SubscriptionBillingCycleBulkResults($jobId: ID!, $first: Int!, $after: String) {
subscriptionBillingCycleBulkResults(first: $first, after: $after, jobId: $jobId) {
pageInfo {
startCursor
endCursor
}
edges {
node {
cycleIndex
}
}
}
}`,
{
variables: {
"jobId": "gid://shopify/Job/0faf9493-b523-4c92-8e6e-59139254b03b",
"first": 3
},
},
);
const data = await response.json();
session = ShopifyAPI::Auth::Session.new(
shop: "your-development-store.myshopify.com",
access_token: access_token
)
client = ShopifyAPI::Clients::Graphql::Admin.new(
session: session
)
query = <<~QUERY
query SubscriptionBillingCycleBulkResults($jobId: ID!, $first: Int!, $after: String) {
subscriptionBillingCycleBulkResults(first: $first, after: $after, jobId: $jobId) {
pageInfo {
startCursor
endCursor
}
edges {
node {
cycleIndex
}
}
}
}
QUERY
variables = {
"jobId": "gid://shopify/Job/0faf9493-b523-4c92-8e6e-59139254b03b",
"first": 3
}
response = client.query(query: query, variables: variables)
const client = new shopify.clients.Graphql({session});
const data = await client.query({
data: {
"query": `query SubscriptionBillingCycleBulkResults($jobId: ID!, $first: Int!, $after: String) {
subscriptionBillingCycleBulkResults(first: $first, after: $after, jobId: $jobId) {
pageInfo {
startCursor
endCursor
}
edges {
node {
cycleIndex
}
}
}
}`,
"variables": {
"jobId": "gid://shopify/Job/0faf9493-b523-4c92-8e6e-59139254b03b",
"first": 3
},
},
});
use Shopify\Clients\Graphql;
$client = new Graphql("your-development-store.myshopify.com", $accessToken);
$query = <<<QUERY
query SubscriptionBillingCycleBulkResults($jobId: ID!, $first: Int!, $after: String) {
subscriptionBillingCycleBulkResults(first: $first, after: $after, jobId: $jobId) {
pageInfo {
startCursor
endCursor
}
edges {
node {
cycleIndex
}
}
}
}
QUERY;
$variables = [
"jobId" => "gid://shopify/Job/0faf9493-b523-4c92-8e6e-59139254b03b",
"first" => 3,
];
$response = $client->query(["query" => $query, "variables" => $variables]);