Skip to content

Instantly share code, notes, and snippets.

@daniel-sim
Last active March 9, 2021 08:26
Show Gist options
  • Save daniel-sim/35e66d5d83760a30171c83fed8b42ea2 to your computer and use it in GitHub Desktop.
Save daniel-sim/35e66d5d83760a30171c83fed8b42ea2 to your computer and use it in GitHub Desktop.
TRANSACTIONS_QUERY = ShopifyPartnerAPI.client.parse <<-'GRAPHQL'
query($cursor: String) {
transactions(types: [APP_SUBSCRIPTION_SALE], after: $cursor, first: 100) {
edges {
cursor
node {
id,
createdAt,
... on AppSubscriptionSale {
netAmount {
amount
},
app {
name
},
shop {
myshopifyDomain
}
},
... on ServiceSale {
netAmount {
amount
},
shop {
myshopifyDomain
}
}
}
},
pageInfo {
hasNextPage
}
}
}
GRAPHQL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment