Last active
March 9, 2021 08:26
-
-
Save daniel-sim/35e66d5d83760a30171c83fed8b42ea2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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